diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-06-07 10:07:02 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-06-07 10:07:02 -0700 |
commit | feffd7c64abab863abd3f6458d1c445d6bfe7fc4 (patch) | |
tree | d54cbad3511250d737f3668756811ed61fdffd8d | |
parent | 1a62e83904c9dee869b0b2b33613e4c4c07977b3 (diff) | |
download | pandoc-feffd7c64abab863abd3f6458d1c445d6bfe7fc4.tar.gz |
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.
-rw-r--r-- | default.latex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/default.latex b/default.latex index bc84520a3..219756982 100644 --- a/default.latex +++ b/default.latex @@ -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$ |