@@ -1,19 +1,21 @@
1\documentclass[]{article}
1\documentclass[]{article}
2+\usepackage[T1]{fontenc}
2\usepackage{amssymb,amsmath}
4\usepackage{amssymb,amsmath}
3−\usepackage{ifxetex,ifluatex}
5+\usepackage{iftex}
4\usepackage{fixltx2e} % provides \textsubscript
6\usepackage{fixltx2e} % provides \textsubscript
5−\ifxetex
7+\ifPDFTeX % use microtype with pdflatex if available
6− \usepackage{fontspec,xltxtra,xunicode}
8+ \IfFileExists{microtype.sty}{\usepackage{microtype}}{}
7− \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
9+\fi
8− \newcommand{\euro}{€}
10+\ifPDFTeX
11+ \usepackage[utf8]{inputenc}
11− \usepackage{fontspec}
13+ \usepackage{fontspec}
12− \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
14+ \ifXeTeX
13− \newcommand{\euro}{€}
15+ \usepackage{xltxtra,xunicode}
15− \usepackage[utf8]{inputenc}
17+ \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
18+ \newcommand{\euro}{€}
18\usepackage{fancyvrb}
20\usepackage{fancyvrb}
19% Redefine labelwidth for lists; otherwise, the enumerate package will cause
21% Redefine labelwidth for lists; otherwise, the enumerate package will cause
@@ -33,7 +35,7 @@
33\makeatother
35\makeatother
34\let\Oldincludegraphics\includegraphics
36\let\Oldincludegraphics\includegraphics
35\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
37\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
37 \usepackage[setpagesize=false, % page size defined by xetex
39 \usepackage[setpagesize=false, % page size defined by xetex
38 unicode=false, % unicode breaks when used with xetex
40 unicode=false, % unicode breaks when used with xetex
39 xetex]{hyperref}
41 xetex]{hyperref}
@@ -46,10 +48,8 @@
46 pdftitle={Pandoc Test Suite},
48 pdftitle={Pandoc Test Suite},
47 colorlinks=true,
49 colorlinks=true,
48 urlcolor=blue,
50 urlcolor=blue,
49− linkcolor=black,
51+ linkcolor=blue,
50 pdfborder={0 0 0}}
52 pdfborder={0 0 0}}
51−% Uncomment next line if you want links as footnotes instead of hotlinks:
52−% \renewcommand{\href}[2]{#2\footnote{\url{#1}}}
53\usepackage[normalem]{ulem}
53\usepackage[normalem]{ulem}
54% avoid problems with \sout in headers with hyperref:
54% avoid problems with \sout in headers with hyperref:
55\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
55\pdfstringdefDisableCommands{\renewcommand{\sout}{}}