Math & ScienceMath code in Footnotes that appear in text

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
kaioh
Posts: 7
Joined: Thu Aug 18, 2011 7:12 pm

Math code in Footnotes that appear in text

Post by kaioh »

Hello I would like to do the following:

Code: Select all

... are not orthogonal\footnote{The two states $|0\rangle$ and $|1\rangle$ are
used to design Alice's measurement observables $\hat{C}_0$ and $\hat{C}_1$.}
$\langle 0|1 \rangle = \cos \theta$, with $\theta \in (0,\pi /2)$.
However I cannot use math code inside a footnote which is in text.
All solutions that I have found are for the use of footnotes inside equations, but thats not my case.

If someone can help me, I'd appreciate. (I'm using revtex4-1).

Regards.
Last edited by Stefan Kottwitz on Fri Apr 12, 2013 2:26 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Math code in Footnotes that appear in text

Post by Stefan Kottwitz »

This code works in standard documents. However, REVTeX uses BibTeX for footnote, which causes an error here. You can fix it by enclosing the footnote text within additional braces, so protecting the inner part:

Code: Select all

\footnote{{The two states $|0\rangle$ ...}}
Stefan
LaTeX.org admin
kaioh
Posts: 7
Joined: Thu Aug 18, 2011 7:12 pm

Re: Math code in Footnotes that appear in text

Post by kaioh »

It works perfectly. Thank you so much.
Post Reply