Skip to main content
Created an MWE
Source Link
Mico
  • 556.7k
  • 57
  • 760
  • 1.3k

Redefine \gg in unicode‘unicode-math with Lualatexmath’

I have:

\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{STIX Two Text}[Ligatures=TeX]
\setmathfont{STIX Two Math}
\usepackage{amsmath}
% need a suitable redefinition of ‘\gg’

\begin{document}
$\gg$
\end{document}

with Lualatex but I want to redefine \gg to print a boldface g (such as \symbf{g}). I even asked ChatGPT but it could not find any solution which would work. Is there any? (of course I know that I could use a different command....)

Redefine \gg in unicode-math with Lualatex

I have:

\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{STIX Two Text}[Ligatures=TeX]
\setmathfont{STIX Two Math}
\usepackage{amsmath}

with Lualatex but I want to redefine \gg to print a boldface g (such as \symbf{g}). I even asked ChatGPT but it could not find any solution which would work. Is there any? (of course I know that I could use a different command....)

Redefine \gg in ‘unicode-math’

I have:

\documentclass{article}
\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{STIX Two Text}[Ligatures=TeX]
\setmathfont{STIX Two Math}
\usepackage{amsmath}
% need a suitable redefinition of ‘\gg’

\begin{document}
$\gg$
\end{document}

with Lualatex but I want to redefine \gg to print a boldface g (such as \symbf{g}). I even asked ChatGPT but it could not find any solution which would work. Is there any? (of course I know that I could use a different command....)

Became Hot Network Question
added 4 characters in body
Source Link

I have:

\usepackage{fontspec} \usepackage{unicode-math} \setmainfont{STIX Two Text}[Ligatures=TeX] \setmathfont{STIX Two Math} \usepackage{amsmath}

\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{STIX Two Text}[Ligatures=TeX]
\setmathfont{STIX Two Math}
\usepackage{amsmath}

with Lualatex but I want to redefine \gg\gg to print a boldface g (such as \symbf{g}\symbf{g}). I even asked ChatGPT but it could not find any solution which would work. Is there any? (of course I know that I could use a different command....)

Thanks Maurizio

I have:

\usepackage{fontspec} \usepackage{unicode-math} \setmainfont{STIX Two Text}[Ligatures=TeX] \setmathfont{STIX Two Math} \usepackage{amsmath}

with Lualatex but I want to redefine \gg to print a boldface g (such as \symbf{g}). I even asked ChatGPT but it could not find any solution which would work. Is there any? (of course I know that I could use a different command....)

Thanks Maurizio

I have:

\usepackage{fontspec}
\usepackage{unicode-math}
\setmainfont{STIX Two Text}[Ligatures=TeX]
\setmathfont{STIX Two Math}
\usepackage{amsmath}

with Lualatex but I want to redefine \gg to print a boldface g (such as \symbf{g}). I even asked ChatGPT but it could not find any solution which would work. Is there any? (of course I know that I could use a different command....)

Source Link
mvs
  • 181
  • 12

Redefine \gg in unicode-math with Lualatex

I have:

\usepackage{fontspec} \usepackage{unicode-math} \setmainfont{STIX Two Text}[Ligatures=TeX] \setmathfont{STIX Two Math} \usepackage{amsmath}

with Lualatex but I want to redefine \gg to print a boldface g (such as \symbf{g}). I even asked ChatGPT but it could not find any solution which would work. Is there any? (of course I know that I could use a different command....)

Thanks Maurizio