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.

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
add comment

1 Answer

up vote 10 down vote accepted

You could define a macro for this expression:

\newcommand{\Cq}{C_q}

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

\rhead{\nouppercase\leftmark}
share|improve this answer
    
Thanks, worked like a charm. The expression exactly already was a macro, but I had never used \protect before: my LaTeX knowledge is a bit fragmented. –  nvcleemp Jan 8 '12 at 10:54
add comment

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.