From 4136ec0f4ae30d2b2a41260d3af3c894c79fe705 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 7 Jun 2016 10:08:49 -0700 Subject: latex template: 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. --- tests/lhs-test.latex+lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/lhs-test.latex+lhs') diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs index 8ab9a2ef0..b6db76e6f 100644 --- a/tests/lhs-test.latex+lhs +++ b/tests/lhs-test.latex+lhs @@ -21,8 +21,8 @@ \usepackage{microtype} \UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts }{} -\usepackage{hyperref} -\hypersetup{unicode=true, +\usepackage[unicode=true]{hyperref} +\hypersetup{ pdfborder={0 0 0}, breaklinks=true} \urlstyle{same} % don't use monospace font for urls -- cgit v1.2.3