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.

How one can use mathematics in footnote using ReVteX? I have a particular problem with \rangle

Minimal Example:

\documentclass[aps,amsmath,amssymb, prl]{revtex4-1}

\begin{document}

TEST\footnote{footnote with math $ \langle X \rangle$ }

\end{document}

enter image description here

share|improve this question
    
Welcome to TeX.SE! –  tohecz Jan 22 '13 at 13:38
    
Congrats on this nice little, really minimal working example. We don't see such here too often by new users. –  Benedikt Bauer Jan 22 '13 at 15:33
    
thnx! I was really in a puzzle, with the footnote.. –  KrzysiekP Jan 23 '13 at 9:00

2 Answers 2

up vote 6 down vote accepted

This happens only when the footnotes are inserted in the reference section. The problem is that \langle becomes written as \delimiter "426830A (and similarly for \rangle.

Those double quotes confuse the BibTeX parser.

There are a few strategies available:

  1. Safest. Enclose the math into \unexpanded:

    \footnote{footnote with math \unexpanded{$ \langle X \rangle$}}
    
  2. Safe. Use \protect before commands that can go after \left and \right

    \footnote{footnote with math $\protect\langle X \protect\rangle$}
    
  3. Hack. Enclose the math in braces.

share|improve this answer
    
Yes, now it is working. Thanks for all solutions!! –  KrzysiekP Jan 23 '13 at 8:54

Often helps, and here as well:

  • If something surprisingly doesn't work, put it into a box :-)

    \footnote{footnote with math \mbox{$ \langle X \rangle$}}
    

    (Version: if line breaks don't work, use \parbox)

  • If something with BibTeX doesn't work, try putting it into braces:

    \footnote{footnote with math {$ \langle X \rangle$}}
    

Both ways work here. Simple braces are preferable.

Footnote with REVTeX

Note for readers who test: BibTeX is required for footnotes with REVTeX.

share|improve this answer
    
Even just putting the math inside curly braces does the job. (I.e., the \mbox can be omitted.) –  John Collins Jan 22 '13 at 14:49
    
@JohnCollins very good remark, thanks! –  Stefan Kottwitz Jan 22 '13 at 15:23

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.