diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-04-05 21:44:06 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-04-05 21:44:06 -0700 |
commit | 64a929d7eec7f2c0b741433b30d6b904354a4e74 (patch) | |
tree | 12c8aadf5861950e18e01b388e291f9456c45579 /default.latex | |
parent | acc1f5bbaca5c5eb213c93a46ea336b63ea70b8c (diff) | |
download | pandoc-templates-64a929d7eec7f2c0b741433b30d6b904354a4e74.tar.gz pandoc-templates-64a929d7eec7f2c0b741433b30d6b904354a4e74.zip |
Updated templates for pandoc 2.7.2
Diffstat (limited to 'default.latex')
-rw-r--r-- | default.latex | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/default.latex b/default.latex index bb83755..336aeb3 100644 --- a/default.latex +++ b/default.latex | |||
@@ -1,5 +1,5 @@ | |||
1 | % Options for packages loaded elsewhere | 1 | % Options for packages loaded elsewhere |
2 | \PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} | 2 | \PassOptionsToPackage{unicode$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} |
3 | \PassOptionsToPackage{hyphens}{url} | 3 | \PassOptionsToPackage{hyphens}{url} |
4 | $if(colorlinks)$ | 4 | $if(colorlinks)$ |
5 | \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} | 5 | \PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} |
@@ -93,15 +93,14 @@ $else$ | |||
93 | $endif$ | 93 | $endif$ |
94 | $if(linestretch)$ | 94 | $if(linestretch)$ |
95 | \usepackage{setspace} | 95 | \usepackage{setspace} |
96 | \setstretch{$linestretch$} | ||
97 | $endif$ | 96 | $endif$ |
98 | \usepackage{amssymb,amsmath} | 97 | \usepackage{amssymb,amsmath} |
99 | \usepackage{ifxetex,ifluatex} | 98 | \usepackage{ifxetex,ifluatex} |
100 | \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex | 99 | \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex |
101 | \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} | 100 | \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc} |
102 | \usepackage[utf8]{inputenc} | 101 | \usepackage[utf8]{inputenc} |
103 | \usepackage{textcomp} % provides euro and other symbols | 102 | \usepackage{textcomp} % provide euro and other symbols |
104 | \else % if luatex or xelatex | 103 | \else % if luatex or xetex |
105 | $if(mathspec)$ | 104 | $if(mathspec)$ |
106 | \ifxetex | 105 | \ifxetex |
107 | \usepackage{mathspec} | 106 | \usepackage{mathspec} |
@@ -221,10 +220,10 @@ $if(colorlinks)$ | |||
221 | $else$ | 220 | $else$ |
222 | hidelinks, | 221 | hidelinks, |
223 | $endif$ | 222 | $endif$ |
224 | } | 223 | pdfcreator={LaTeX via pandoc}} |
225 | \urlstyle{same} % disable monospaced font for URLs | 224 | \urlstyle{same} % disable monospaced font for URLs |
226 | $if(verbatim-in-note)$ | 225 | $if(verbatim-in-note)$ |
227 | \VerbatimFootnotes % allows verbatim text in footnotes | 226 | \VerbatimFootnotes % allow verbatim text in footnotes |
228 | $endif$ | 227 | $endif$ |
229 | $if(geometry)$ | 228 | $if(geometry)$ |
230 | \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} | 229 | \usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry} |
@@ -253,6 +252,11 @@ $if(beamer)$ | |||
253 | \def\fnum@table{\tablename~\thetable} | 252 | \def\fnum@table{\tablename~\thetable} |
254 | \makeatother | 253 | \makeatother |
255 | $else$ | 254 | $else$ |
255 | % Correct order of tables after \paragraph or \subparagraph | ||
256 | \usepackage{etoolbox} | ||
257 | \makeatletter | ||
258 | \patchcmd\longtable{\par}{\if@noskipsec\mbox{}\fi\par}{}{} | ||
259 | \makeatother | ||
256 | % Allow footnotes in longtable head/foot | 260 | % Allow footnotes in longtable head/foot |
257 | \IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} | 261 | \IfFileExists{footnotehyper.sty}{\usepackage{footnotehyper}}{\usepackage{footnote}} |
258 | \makesavenoteenv{longtable} | 262 | \makesavenoteenv{longtable} |
@@ -268,6 +272,10 @@ $if(graphics)$ | |||
268 | % margins by default, and it is still possible to overwrite the defaults | 272 | % margins by default, and it is still possible to overwrite the defaults |
269 | % using explicit options in \includegraphics[width, height, ...]{} | 273 | % using explicit options in \includegraphics[width, height, ...]{} |
270 | \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} | 274 | \setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} |
275 | % Set default figure placement to htbp | ||
276 | \makeatletter | ||
277 | \def\fps@figure{htbp} | ||
278 | \makeatother | ||
271 | $endif$ | 279 | $endif$ |
272 | $if(links-as-notes)$ | 280 | $if(links-as-notes)$ |
273 | % Make links footnotes instead of hotlinks: | 281 | % Make links footnotes instead of hotlinks: |
@@ -288,9 +296,8 @@ $else$ | |||
288 | $endif$ | 296 | $endif$ |
289 | $if(beamer)$ | 297 | $if(beamer)$ |
290 | $else$ | 298 | $else$ |
291 | $if(subparagraph)$ | 299 | $if(block-headings)$ |
292 | $else$ | 300 | % Make \paragraph and \subparagraph free-standing |
293 | % Redefines (sub)paragraphs to behave more like sections | ||
294 | \ifx\paragraph\undefined\else | 301 | \ifx\paragraph\undefined\else |
295 | \let\oldparagraph\paragraph | 302 | \let\oldparagraph\paragraph |
296 | \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} | 303 | \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} |
@@ -304,12 +311,6 @@ $endif$ | |||
304 | $if(pagestyle)$ | 311 | $if(pagestyle)$ |
305 | \pagestyle{$pagestyle$} | 312 | \pagestyle{$pagestyle$} |
306 | $endif$ | 313 | $endif$ |
307 | |||
308 | % Set default figure placement to htbp | ||
309 | \makeatletter | ||
310 | \def\fps@figure{htbp} | ||
311 | \makeatother | ||
312 | |||
313 | $for(header-includes)$ | 314 | $for(header-includes)$ |
314 | $header-includes$ | 315 | $header-includes$ |
315 | $endfor$ | 316 | $endfor$ |
@@ -431,6 +432,9 @@ $endif$ | |||
431 | $if(lof)$ | 432 | $if(lof)$ |
432 | \listoffigures | 433 | \listoffigures |
433 | $endif$ | 434 | $endif$ |
435 | $if(linestretch)$ | ||
436 | \setstretch{$linestretch$} | ||
437 | $endif$ | ||
434 | $if(has-frontmatter)$ | 438 | $if(has-frontmatter)$ |
435 | \mainmatter | 439 | \mainmatter |
436 | $endif$ | 440 | $endif$ |