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'm working on my thesis, and I've realized that, any time I try to use \( \)-type inline delimiters in captions, that pdflatex breaks. While I can weasel out of actually \needing\ math in my captions, it's very inconvenient. I'm pretty perplexed.

Here's a (relatively) minimal example that breaks for me:

\documentclass{uafthesis}

\usepackage{amsmath}
\usepackage{graphicx} % Graphics stuff

\begin{document}

\listoffigures

\begin{figure}[h]
\centering
\includegraphics[width=0.3\textwidth]{angle.png}
\caption{\(\theta \)}
\end{figure}


\end{document}

Here's a sample of the output:

! LaTeX Error: Bad math environment delimiter.

See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ...

l.1 ...k or to continue without it.}}}{2}

? ! Extra }, or forgotten $. ...r to continue without it.}}

l.1 ...k or to continue without it.}}}{2}

?

Some things:

  • uafthesis is the unofficial official document class for my university. It has been written mostly by physics grad students by hacking at other document classes. My fork is here.

  • This only happens if I include amsmath.

  • The minimal example and the resulting log file are gisted here.

I'm defending tomorrow, and I have to turn in my thesis pretty soon, so hopefully we can figure this out within a day or so! If not, I understand, and thanks anyway.

share|improve this question

1 Answer 1

I asked irc://freenode.com/#latex, and they said to use the fixltx2e package, or alternately, to use dollar signs instead. Also learned that article has \listoffigures.

Derp. Oh well.

share|improve this answer
    
fixltx2e makes several other things robust as well. See this question. –  TH. Apr 4 '11 at 6:58
    
Also, you should accept your answer. –  TH. Apr 4 '11 at 6:59
    
@TH. self-accepting is only available 48h after the question has been posted. –  Caramdir Apr 4 '11 at 16:07
    
@Caramdir: Oh. Well, in that case, he should accept in 38 hours. –  TH. Apr 4 '11 at 16:10

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.