2

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?

3

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.

  • Wow, \proctect command solved the problem. Thank you very much! – Sejong Park Oct 30 '12 at 15:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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