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 want to use math symbols including underline (e.g. $\underline{R}_{H,V}$) in a section title in a document in amsart documentclass with table of contents. So I typed (roughly)

\documentclass{amsart}
\begin{document}
\tableofcontents

\section{The functor ${\underline{R}}_{H,V}$}

\end{document}

If I compile this file, I get the section title as wanted, but without the underline in the table of contents. If I compile once more, I get the following error message:

Missing } inserted
            }
...elax }_{H,V}$ 

I checked this site and found advices suggesting to use sectsty or titlesec packages. But they seem to be useful only when you want to underline the whole section title in article documentclass. Can anybody help?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

since \section has a "floating" argument, what i'd try first is \protect\underline.

absence of \protect is a very frequent cause of the missing } error for chapter and section titles and captions, and not just with ams document classes.

share|improve this answer
    
Wow, \proctect command solved the problem. Thank you very much! –  Sejong Oct 30 '12 at 15:19
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.