Skip to content

Error on using math in section name with hyperref #532

@navdeeprana

Description

@navdeeprana

Description

I get the following error

Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `math shift'
Package hyperref Warning: Token not allowed in a PDF string (Unicode): removing `math shift'
Error: Improper alphabetic constant.
Error: Fatal error occurred, no output PDF file produced!

when I compile the following code

\documentclass[a4,12pt]{report}                                                                                                
\usepackage{fontspec}      
\usepackage{libertine}                                                                                                         
\usepackage{unicode-math}                                                                                                      
\usepackage[unicode=true]{hyperref}                                                                                            
\begin{document}                                                                                                               
\section{$\lambda = 1$}                                                                                                              
\end{document}    

Add info or delete as appropriate:

  • Relevant for XeTeX
  • Relevant for LuaTeX

#530 says something similar, but there it's a warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions