Fix for obscure hyperref/xelatex issue.

Here's a minimal case:

    \documentclass[]{article}
    \usepackage{hyperref}
    \begin{document}
    \section{\%á}
    \end{document}

Without this change, this fails on the second invocation of xelatex.
See https://tex.stackexchange.com/questions/313266/and-non-ascii-characters-in-headings

This affects inputs this like

    # %á

with pdf output via xelatex.
This commit is contained in:
John MacFarlane
2016-06-07 10:07:02 -07:00
parent 1a62e83904
commit feffd7c64a
+2 -2
View File
@@ -57,11 +57,11 @@ $endif$
$if(geometry)$
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
$endif$
\usepackage{hyperref}
\usepackage[unicode=true]{hyperref}
$if(colorlinks)$
\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
$endif$
\hypersetup{unicode=true,
\hypersetup{
$if(title-meta)$
pdftitle={$title-meta$},
$endif$