diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lhs-test.latex | 27 | ||||
-rw-r--r-- | tests/lhs-test.latex+lhs | 27 | ||||
-rw-r--r-- | tests/writer.latex | 28 |
3 files changed, 36 insertions, 46 deletions
diff --git a/tests/lhs-test.latex b/tests/lhs-test.latex index 0b83f9c0a..30475bdba 100644 --- a/tests/lhs-test.latex +++ b/tests/lhs-test.latex @@ -38,23 +38,20 @@ \ifxetex \usepackage[setpagesize=false, % page size defined by xetex unicode=false, % unicode breaks when used with xetex - xetex, - bookmarks=true, - pdfauthor={}, - pdftitle={}, - colorlinks=true, - urlcolor=blue, - linkcolor=blue]{hyperref} + xetex]{hyperref} \else - \usepackage[unicode=true, - bookmarks=true, - pdfauthor={}, - pdftitle={}, - colorlinks=true, - urlcolor=blue, - linkcolor=blue]{hyperref} + \usepackage[unicode=true]{hyperref} \fi -\hypersetup{breaklinks=true, pdfborder={0 0 0}} +\hypersetup{breaklinks=true, + bookmarks=true, + pdfauthor={}, + pdftitle={}, + colorlinks=true, + urlcolor=blue, + linkcolor=black, + pdfborder={0 0 0}} +% Uncomment next line if you want links as footnotes instead of hotlinks: +% \renewcommand{\href}[2]{#2\footnote{\url{#1}}} \setlength{\parindent}{0pt} \setlength{\parskip}{6pt plus 2pt minus 1pt} \setlength{\emergencystretch}{3em} % prevent overfull lines diff --git a/tests/lhs-test.latex+lhs b/tests/lhs-test.latex+lhs index 05cd4dc14..e372ed359 100644 --- a/tests/lhs-test.latex+lhs +++ b/tests/lhs-test.latex+lhs @@ -20,23 +20,20 @@ \ifxetex \usepackage[setpagesize=false, % page size defined by xetex unicode=false, % unicode breaks when used with xetex - xetex, - bookmarks=true, - pdfauthor={}, - pdftitle={}, - colorlinks=true, - urlcolor=blue, - linkcolor=blue]{hyperref} + xetex]{hyperref} \else - \usepackage[unicode=true, - bookmarks=true, - pdfauthor={}, - pdftitle={}, - colorlinks=true, - urlcolor=blue, - linkcolor=blue]{hyperref} + \usepackage[unicode=true]{hyperref} \fi -\hypersetup{breaklinks=true, pdfborder={0 0 0}} +\hypersetup{breaklinks=true, + bookmarks=true, + pdfauthor={}, + pdftitle={}, + colorlinks=true, + urlcolor=blue, + linkcolor=black, + pdfborder={0 0 0}} +% Uncomment next line if you want links as footnotes instead of hotlinks: +% \renewcommand{\href}[2]{#2\footnote{\url{#1}}} \setlength{\parindent}{0pt} \setlength{\parskip}{6pt plus 2pt minus 1pt} \setlength{\emergencystretch}{3em} % prevent overfull lines diff --git a/tests/writer.latex b/tests/writer.latex index b6572eb2d..402126a78 100644 --- a/tests/writer.latex +++ b/tests/writer.latex @@ -23,7 +23,6 @@ {\setlength{\labelwidth}{4em}} }\makeatother \usepackage{enumerate} -\usepackage{url} \usepackage{graphicx} % We will generate all images so they have a width \maxwidth. This means % that they will get their normal width if they fit onto the page, but @@ -37,23 +36,20 @@ \ifxetex \usepackage[setpagesize=false, % page size defined by xetex unicode=false, % unicode breaks when used with xetex - xetex, - bookmarks=true, - pdfauthor={John MacFarlane; Anonymous}, - pdftitle={Pandoc Test Suite}, - colorlinks=true, - urlcolor=blue, - linkcolor=blue]{hyperref} + xetex]{hyperref} \else - \usepackage[unicode=true, - bookmarks=true, - pdfauthor={John MacFarlane; Anonymous}, - pdftitle={Pandoc Test Suite}, - colorlinks=true, - urlcolor=blue, - linkcolor=blue]{hyperref} + \usepackage[unicode=true]{hyperref} \fi -\hypersetup{breaklinks=true, pdfborder={0 0 0}} +\hypersetup{breaklinks=true, + bookmarks=true, + pdfauthor={John MacFarlane; Anonymous}, + pdftitle={Pandoc Test Suite}, + colorlinks=true, + urlcolor=blue, + linkcolor=black, + pdfborder={0 0 0}} +% Uncomment next line if you want links as footnotes instead of hotlinks: +% \renewcommand{\href}[2]{#2\footnote{\url{#1}}} \usepackage[normalem]{ulem} % avoid problems with \sout in headers with hyperref: \pdfstringdefDisableCommands{\renewcommand{\sout}{}} |