GeneralSuperscripts and subscripts in sections?

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
balpo
Posts: 2
Joined: Wed Aug 04, 2010 2:23 am

Superscripts and subscripts in sections?

Post by balpo »

Hello LaTex experts.
I am writing a report in LaTex and one of the sections name is 4^3000 (appropriately formatted, of course).
How can I use the superscript without entering mathmode?
Also, hyperref gives me warnings like Underfull \hbox and warnings like:
./appndxb.tex:5: Token not allowed in a PDF string (Unicode),(hyperref) removing `math shift' on input line 5. Token not allowed in a PDF string (Unicode),(hyperref) removing `math shift'
I am using this trick: http://anthony.liekens.net/index.php/LaTeX/SubscriptAndSuperscriptInTextMode, which enables me to use
superscript and subscript in text mode.

Thank you all in advance,

Balpo :shock:

Recommended reading 2024:

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

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

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

Superscripts and subscripts in sections?

Post by Stefan Kottwitz »

Hi Balpo,

the hyperref-problem can be avoided if you use \texorpdfstring:

Code: Select all

\section{\texorpdfstring{Title containing math}{Title without math}}
Stefan
LaTeX.org admin
balpo
Posts: 2
Joined: Wed Aug 04, 2010 2:23 am

Superscripts and subscripts in sections?

Post by balpo »

Stefan_K wrote:Hi Balpo,

the hyperref-problem can be avoided if you use \texorpdfstring:

Code: Select all

\section{\texorpdfstring{Title containing math}{Title without math}}
Stefan
Thanx Stefan,

that solution has a slight problem, the exponent is in a different font than the base.
That is because I am using Sans-Serif font for the chapter titles and (sub)sections.

Balpo
Post Reply