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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10360
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