summaryrefslogtreecommitdiff
path: root/tests/writer.latex
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-05-27 12:23:45 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-05-27 12:30:10 -0700
commit68b460db92ec0cdc920ef9b77f469917b70a17e8 (patch)
treeec95a5e9928a6934b2dad218acde052df9586e24 /tests/writer.latex
parent4a9aaf6fd6be3c0c6df21c93ac1275acd199ab64 (diff)
LaTeX template: Move hyperref before polyglossia.
This avoids an error "Please load package hyperref before bidi package, and then try to run xelatex on your document again". See jgm/pandoc-templates #96.
Diffstat (limited to 'tests/writer.latex')
-rw-r--r--tests/writer.latex22
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/writer.latex b/tests/writer.latex
index e06c58cc4..566b2beca 100644
--- a/tests/writer.latex
+++ b/tests/writer.latex
@@ -23,17 +23,6 @@
\usepackage{microtype}
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
}{}
-\usepackage{fancyvrb}
-\VerbatimFootnotes
-\usepackage{graphicx,grffile}
-\makeatletter
-\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
-\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
-\makeatother
-% Scale images if necessary, so that they will not overflow the page
-% margins by default, and it is still possible to overwrite the defaults
-% using explicit options in \includegraphics[width, height, ...]{}
-\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
\ifxetex
\usepackage[setpagesize=false, % page size defined by xetex
unicode=false, % unicode breaks when used with xetex
@@ -51,6 +40,17 @@
linkcolor=magenta,
pdfborder={0 0 0}}
\urlstyle{same} % don't use monospace font for urls
+\usepackage{fancyvrb}
+\VerbatimFootnotes
+\usepackage{graphicx,grffile}
+\makeatletter
+\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
+\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
+\makeatother
+% Scale images if necessary, so that they will not overflow the page
+% margins by default, and it is still possible to overwrite the defaults
+% using explicit options in \includegraphics[width, height, ...]{}
+\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
\usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref:
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}