diff options
| author | Andrew Dunning <[email protected]> | 2019-03-13 20:22:28 -0400 |
|---|---|---|
| committer | John MacFarlane <[email protected]> | 2019-03-13 18:22:28 -0600 |
| commit | bbe2da390e5ec49ce6c88e00ba5f1c7f2b4c7c80 (patch) | |
| tree | 88a21744322ef4bd74d51c6f70323541147d62a1 /test/writer.latex | |
| parent | 8d58c6170242bea5b281f8ff78e16b2008f1eb50 (diff) | |
LaTeX template: Improve readability (#5363)
+ LaTeX template: Improve template readability
Use `hidelinks` option for hyperref, which has the same effect as `pdfborder={0 0 0}`,
but its purpose is clearer. Use a simpler conditional for Polyglossia/Babel. Format
comments more consistently.
+ Update tests
+ Remove hyperref breaklinks option. According to the documentation, hyperref
sets this automatically as appropriate to the driver.
Diffstat (limited to 'test/writer.latex')
| -rw-r--r-- | test/writer.latex | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/test/writer.latex b/test/writer.latex index 8e4df8694..e96c663f8 100644 --- a/test/writer.latex +++ b/test/writer.latex @@ -1,4 +1,5 @@ -\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere +% Options for packages loaded elsewhere +\PassOptionsToPackage{unicode=true}{hyperref} \PassOptionsToPackage{hyphens}{url} % \documentclass[ @@ -15,7 +16,7 @@ \defaultfontfeatures{Scale=MatchLowercase} \defaultfontfeatures[\rmfamily]{Ligatures=TeX,Scale=1} \fi -% use upquote if available, for straight quotes in verbatim environments +% Use upquote if available, for straight quotes in verbatim environments \IfFileExists{upquote.sty}{\usepackage{upquote}}{} \IfFileExists{microtype.sty}{% use microtype if available \usepackage[]{microtype} @@ -38,9 +39,9 @@ \hypersetup{ pdftitle={Pandoc Test Suite}, pdfauthor={John MacFarlane; Anonymous}, - pdfborder={0 0 0}, - breaklinks=true} -\urlstyle{same} % don't use monospace font for urls + hidelinks, +} +\urlstyle{same} % disable monospaced font for URLs \VerbatimFootnotes % allows verbatim text in footnotes \usepackage{graphicx,grffile} \makeatletter @@ -52,9 +53,9 @@ % 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: +% Avoid problems with \sout in headers with hyperref \pdfstringdefDisableCommands{\renewcommand{\sout}{}} -\setlength{\emergencystretch}{3em} % prevent overfull lines +\setlength{\emergencystretch}{3em} % prevent overfull lines \providecommand{\tightlist}{% \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} \setcounter{secnumdepth}{-\maxdimen} % remove section numbering @@ -68,7 +69,7 @@ \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} \fi -% set default figure placement to htbp +% Set default figure placement to htbp \makeatletter \def\fps@figure{htbp} \makeatother |
