[Tex/LaTex] Different symbol for g

symbols

How can I write in "curly" form of g enter image description here
in an equation?

Just "g" gives me this enter image description here

Best Answer

As noted in the comments the standard slanted font has a g of this form. You can use it as \textsl{g}:

Sample output

\documentclass{article}

\usepackage{amstext}

\begin{document}

\( g_{\alpha,\beta,\gamma} \) vs. \( \textsl{g}_{\alpha,\beta,\gamma} \)

\end{document}

The package amstext is automatically loaded if you use amsmath or mathtools. In the above example the package is not needed, but without it you will not get good results if you use the symbol as a superscript or subscript.

Another caveat is that in the above code the symbol \textsl{g} will change with the surrounding text, for example \textbf{A bold sentence containing $\textsl{g}$ will have the symbol bold. That may or may not be what you want. If you need the symbol to be exactly the same regardless define a macro

\newcommand{\cg}{\textnormal{\textsl{g}}}

and use \cg instead.

Related Question