20

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

Benedikt Bauer
  • 6,590
  • 2
  • 34
  • 60
KrzysiekP
  • 303

2 Answers2

13

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.

egreg
  • 1,121,712
7

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.

Stefan Kottwitz
  • 231,401