# Capital gothic letter in headings

One of the section of my thesis is called: representation of $\mathfrak{g}_2$, but every heading package transforms it in representation of $\mathfrak{G}_2$ (capital Gothic letter).

How can i solve this problem?

-
I think \MakeTextUppercase from textcase package is intended exactly for this. –  Manuel Jul 4 at 8:57

LaTeX's standard classes use \MakeUppercase to convert the letters of section titles to uppercase. The conversion does not know about arguments, math, ...

Workarounds:

• The letter "g" can be hidden inside a macro, e.g.:

\documentclass{article}
\usepackage{amssymb}
\DeclareRobustCommand{\mathfrakg}{\mathfrak{g}}
\begin{document}
\section{Test $\mathfrakg_2$}
\end{document}


\DeclareRobustCommand prevents \makefrakg from expanding inside \MakeUppercase.

• Converting back to lowercase:

\documentclass{article}
\usepackage{amssymb}
\begin{document}
\section{Test $\mathfrak{\lowercase{g}}_2$}
\end{document}


First \MakeUppercase will change g to G. Later \lowercase is executed and converts G back to g.

-

Use the textcase package:

\documentclass{article}
\usepackage{amssymb}
\begin{document}
\section{Test $\mathfrak{g}_2$}
\end{document}


However, the best is to avoid the dreaded automatic uppercasing done by the standard classes, which is, in my opinion, the biggest flaw in their design. When headers contain math, uppercase is out of the question.

\documentclass{article}
\usepackage{amssymb}
\usepackage{fancyhdr}

\pagestyle{fancy}
\fancyhf{}
\section{Test $\mathfrak{g}_2$}