From feffd7c64abab863abd3f6458d1c445d6bfe7fc4 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 7 Jun 2016 10:07:02 -0700 Subject: Fix for obscure hyperref/xelatex issue. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- default.latex | 4 ++-- 1 file 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$ -- cgit v1.2.3