Fonts & Character SetsMath Expressions in Headings

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Math Expressions in Headings

Post by svend_tveskaeg »

Hi all.

Consider the following MWE:

Code: Select all

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[bookmarks=true]{hyperref}

\begin{document}
  \section{$\chi^{2}$ Test}
    Something.
\end{document}
When compiling, I get the following warnings:

Code: Select all

Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `math shift' on input line 8.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `\chi' on input line 8.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)                removing `superscript' on input line 8.


Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding):
(hyperref)
How do I get rid of these warnings?

Thank you in advance!
Last edited by svend_tveskaeg on Thu Sep 01, 2011 5:20 pm, edited 1 time in total.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)

Recommended reading 2024:

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

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

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Math Expressions in Headings

Post by localghost »

Search the hyperref manual for the \texorpdfstring command.


Thorsten
User avatar
svend_tveskaeg
Posts: 478
Joined: Sun Jul 12, 2009 5:31 am

Re: Math Expressions in Headings

Post by svend_tveskaeg »

Sweet!

Thank you very much.
``In the game of chess, you can never let your adversary see your pieces.''
-- Zapp Brannigan, Futurama (season 1, episode 4)
Post Reply