summaryrefslogtreecommitdiffstats
path: root/default.latex
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-03-14 09:25:29 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2019-03-14 09:25:29 -0700
commit727d53274c555392e4a868aa52e21bb44f7ecd97 (patch)
tree4f1a291530877cde0b5ee4e6fff5971772972151 /default.latex
parentc47460fce5cebb17f2ecb1ad195d244c75887d8c (diff)
downloadpandoc-templates-727d53274c555392e4a868aa52e21bb44f7ecd97.tar.gz
pandoc-templates-727d53274c555392e4a868aa52e21bb44f7ecd97.zip
Updated templates for pandoc 2.7.1
Diffstat (limited to 'default.latex')
-rw-r--r--default.latex49
1 files changed, 25 insertions, 24 deletions
diff --git a/default.latex b/default.latex
index aacb48b..bb83755 100644
--- a/default.latex
+++ b/default.latex
@@ -1,4 +1,5 @@
1\PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref} % options for packages loaded elsewhere 1% Options for packages loaded elsewhere
2\PassOptionsToPackage{unicode=true$for(hyperrefoptions)$,$hyperrefoptions$$endfor$}{hyperref}
2\PassOptionsToPackage{hyphens}{url} 3\PassOptionsToPackage{hyphens}{url}
3$if(colorlinks)$ 4$if(colorlinks)$
4\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor} 5\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
@@ -46,7 +47,7 @@ $endif$
46$for(beameroption)$ 47$for(beameroption)$
47\setbeameroption{$beameroption$} 48\setbeameroption{$beameroption$}
48$endfor$ 49$endfor$
49% Prevent slide breaks in the middle of a paragraph: 50% Prevent slide breaks in the middle of a paragraph
50\widowpenalties 1 10000 51\widowpenalties 1 10000
51\raggedbottom 52\raggedbottom
52$if(section-titles)$ 53$if(section-titles)$
@@ -173,7 +174,7 @@ $if(outertheme)$
173\useoutertheme{$outertheme$} 174\useoutertheme{$outertheme$}
174$endif$ 175$endif$
175$endif$ 176$endif$
176% use upquote if available, for straight quotes in verbatim environments 177% Use upquote if available, for straight quotes in verbatim environments
177\IfFileExists{upquote.sty}{\usepackage{upquote}}{} 178\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
178\IfFileExists{microtype.sty}{% use microtype if available 179\IfFileExists{microtype.sty}{% use microtype if available
179 \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype} 180 \usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
@@ -218,10 +219,10 @@ $if(colorlinks)$
218 citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$, 219 citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
219 urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$, 220 urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
220$else$ 221$else$
221 pdfborder={0 0 0}, 222 hidelinks,
222$endif$ 223$endif$
223 breaklinks=true} 224}
224\urlstyle{same} % don't use monospace font for urls 225\urlstyle{same} % disable monospaced font for URLs
225$if(verbatim-in-note)$ 226$if(verbatim-in-note)$
226\VerbatimFootnotes % allows verbatim text in footnotes 227\VerbatimFootnotes % allows verbatim text in footnotes
227$endif$ 228$endif$
@@ -247,7 +248,7 @@ $if(tables)$
247\usepackage{longtable,booktabs} 248\usepackage{longtable,booktabs}
248$if(beamer)$ 249$if(beamer)$
249\usepackage{caption} 250\usepackage{caption}
250% These lines are needed to make table captions work with longtable: 251% Make caption package work with longtable
251\makeatletter 252\makeatletter
252\def\fnum@table{\tablename~\thetable} 253\def\fnum@table{\tablename~\thetable}
253\makeatother 254\makeatother
@@ -274,16 +275,16 @@ $if(links-as-notes)$
274$endif$ 275$endif$
275$if(strikeout)$ 276$if(strikeout)$
276\usepackage[normalem]{ulem} 277\usepackage[normalem]{ulem}
277% avoid problems with \sout in headers with hyperref: 278% Avoid problems with \sout in headers with hyperref
278\pdfstringdefDisableCommands{\renewcommand{\sout}{}} 279\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
279$endif$ 280$endif$
280\setlength{\emergencystretch}{3em} % prevent overfull lines 281\setlength{\emergencystretch}{3em} % prevent overfull lines
281\providecommand{\tightlist}{% 282\providecommand{\tightlist}{%
282 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} 283 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
283$if(numbersections)$ 284$if(numbersections)$
284\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$} 285\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
285$else$ 286$else$
286\setcounter{secnumdepth}{-2} 287\setcounter{secnumdepth}{-\maxdimen} % remove section numbering
287$endif$ 288$endif$
288$if(beamer)$ 289$if(beamer)$
289$else$ 290$else$
@@ -304,7 +305,7 @@ $if(pagestyle)$
304\pagestyle{$pagestyle$} 305\pagestyle{$pagestyle$}
305$endif$ 306$endif$
306 307
307% set default figure placement to htbp 308% Set default figure placement to htbp
308\makeatletter 309\makeatletter
309\def\fps@figure{htbp} 310\def\fps@figure{htbp}
310\makeatother 311\makeatother
@@ -313,23 +314,23 @@ $for(header-includes)$
313$header-includes$ 314$header-includes$
314$endfor$ 315$endfor$
315$if(lang)$ 316$if(lang)$
316\ifnum 0\ifxetex 1\fi=0 % if pdftex or luatex 317\ifxetex
317 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} 318 % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
318$if(babel-newcommands)$
319 $babel-newcommands$
320$endif$
321\else % if xetex
322 % load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
323 \usepackage{polyglossia} 319 \usepackage{polyglossia}
324 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$} 320 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
325$for(polyglossia-otherlangs)$ 321$for(polyglossia-otherlangs)$
326 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$} 322 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
327$endfor$ 323$endfor$
324\else
325 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
326$if(babel-newcommands)$
327 $babel-newcommands$
328$endif$
328\fi 329\fi
329$endif$ 330$endif$
330$if(dir)$ 331$if(dir)$
331\ifxetex 332\ifxetex
332 % load bidi as late as possible as it modifies e.g. graphicx 333 % Load bidi as late as possible as it modifies e.g. graphicx
333 \usepackage{bidi} 334 \usepackage{bidi}
334\fi 335\fi
335\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex 336\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
@@ -383,10 +384,10 @@ $endif$
383$endif$ 384$endif$
384 385
385\begin{document} 386\begin{document}
386$if(title)$ 387$if(has-frontmatter)$
387$if(book-class)$
388\frontmatter 388\frontmatter
389$endif$ 389$endif$
390$if(title)$
390$if(beamer)$ 391$if(beamer)$
391\frame{\titlepage} 392\frame{\titlepage}
392$else$ 393$else$
@@ -430,18 +431,18 @@ $endif$
430$if(lof)$ 431$if(lof)$
431\listoffigures 432\listoffigures
432$endif$ 433$endif$
433$if(book-class)$ 434$if(has-frontmatter)$
434\mainmatter 435\mainmatter
435$endif$ 436$endif$
436$body$ 437$body$
437 438
438$if(book-class)$ 439$if(has-frontmatter)$
439\backmatter 440\backmatter
440$endif$ 441$endif$
441$if(natbib)$ 442$if(natbib)$
442$if(bibliography)$ 443$if(bibliography)$
443$if(biblio-title)$ 444$if(biblio-title)$
444$if(book-class)$ 445$if(has-chapters)$
445\renewcommand\bibname{$biblio-title$} 446\renewcommand\bibname{$biblio-title$}
446$else$ 447$else$
447\renewcommand\refname{$biblio-title$} 448\renewcommand\refname{$biblio-title$}