Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

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

2 Answers 2

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}}
    \pagestyle{headings}
    \begin{document}
    \section{Test $\mathfrakg_2$}
    \end{document}
    

    Result

    \DeclareRobustCommand prevents \makefrakg from expanding inside \MakeUppercase.

  • Converting back to lowercase:

    \documentclass{article}
    \usepackage{amssymb}
    \pagestyle{headings}
    \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.

share|improve this answer

Use the textcase package:

\documentclass{article}
\usepackage{amssymb}
\usepackage[overload]{textcase}
\pagestyle{headings}
\begin{document}
\section{Test $\mathfrak{g}_2$}
\end{document}

enter image description here

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{}
\fancyhead[L]{\itshape\nouppercase{\leftmark}}
\fancyhead[R]{\thepage}
\renewcommand{\headrulewidth}{0pt}

\begin{document}
\section{Test $\mathfrak{g}_2$}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.