TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just came across this small problem which I can't seem to fix. I have a section which looks like this:

\section{Properties of $C_q$}

The problem is that the header of the page uses upper case and so it displays this section title as if I had written

\section{Properties of $C_Q$}

How can I make sure the q is always lower case?

share|improve this question
up vote 10 down vote accepted

You could define a macro for this expression:


and protect it when you use it in such headings:

\section{Properties of $\protect\Cq$}

\protect prevents early expansion of the macro, this way also becoming uppercase is prevented. You may use this macro later in your math expression as well, of course, that's why I did not start math mode inside the macro.

Btw. I would not use all caps headers. In case of fancyhdr, for example, uppercasing can be disabled by \nouppercase, such as

share|improve this answer

Your Answer


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.