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.

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 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)


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


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

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.