diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-10-23 19:20:18 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-10-23 19:20:18 -0700 |
commit | 7a882201db01a8af8988ac252357b8eefdcb3bfe (patch) | |
tree | 6b30903c9966e71a9e8618725e81d61217e014b8 | |
parent | 466c90ed5bb489d9cafe41b59fff47a3c5eb858c (diff) | |
download | pandoc-templates-7a882201db01a8af8988ac252357b8eefdcb3bfe.tar.gz pandoc-templates-7a882201db01a8af8988ac252357b8eefdcb3bfe.zip |
Updated templates for pandoc 2.15
-rw-r--r-- | default.latex | 38 | ||||
-rw-r--r-- | default.revealjs | 3 |
2 files changed, 14 insertions, 27 deletions
diff --git a/default.latex b/default.latex index d6a6208..3874813 100644 --- a/default.latex +++ b/default.latex | |||
@@ -4,11 +4,6 @@ | |||
4 | $if(colorlinks)$ | 4 | $if(colorlinks)$ |
5 | \PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} | 5 | \PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} |
6 | $endif$ | 6 | $endif$ |
7 | $if(dir)$ | ||
8 | $if(latex-dir-rtl)$ | ||
9 | \PassOptionsToPackage{RTLdocument}{bidi} | ||
10 | $endif$ | ||
11 | $endif$ | ||
12 | $if(CJKmainfont)$ | 7 | $if(CJKmainfont)$ |
13 | \PassOptionsToPackage{space}{xeCJK} | 8 | \PassOptionsToPackage{space}{xeCJK} |
14 | $endif$ | 9 | $endif$ |
@@ -17,9 +12,6 @@ $endif$ | |||
17 | $if(fontsize)$ | 12 | $if(fontsize)$ |
18 | $fontsize$, | 13 | $fontsize$, |
19 | $endif$ | 14 | $endif$ |
20 | $if(lang)$ | ||
21 | $babel-lang$, | ||
22 | $endif$ | ||
23 | $if(papersize)$ | 15 | $if(papersize)$ |
24 | $papersize$paper, | 16 | $papersize$paper, |
25 | $endif$ | 17 | $endif$ |
@@ -370,35 +362,27 @@ $if(csl-refs)$ | |||
370 | \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} | 362 | \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} |
371 | \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} | 363 | \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} |
372 | $endif$ | 364 | $endif$ |
373 | $for(header-includes)$ | ||
374 | $header-includes$ | ||
375 | $endfor$ | ||
376 | $if(lang)$ | 365 | $if(lang)$ |
377 | \ifXeTeX | 366 | \ifLuaTeX |
378 | % Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic) | 367 | \usepackage[bidi=basic]{babel} |
379 | \usepackage{polyglossia} | ||
380 | \setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$} | ||
381 | $for(polyglossia-otherlangs)$ | ||
382 | \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$} | ||
383 | $endfor$ | ||
384 | \else | 368 | \else |
385 | \usepackage[$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} | 369 | \usepackage[bidi=default]{babel} |
370 | \fi | ||
371 | \babelprovide[main,import]{$babel-lang$} | ||
372 | $for(babel-otherlangs)$ | ||
373 | \babelprovide[import]{$babel-otherlangs$} | ||
374 | $endfor$ | ||
386 | % get rid of language-specific shorthands (see #6817): | 375 | % get rid of language-specific shorthands (see #6817): |
387 | \let\LanguageShortHands\languageshorthands | 376 | \let\LanguageShortHands\languageshorthands |
388 | \def\languageshorthands#1{} | 377 | \def\languageshorthands#1{} |
389 | $if(babel-newcommands)$ | ||
390 | $babel-newcommands$ | ||
391 | $endif$ | ||
392 | \fi | ||
393 | $endif$ | 378 | $endif$ |
379 | $for(header-includes)$ | ||
380 | $header-includes$ | ||
381 | $endfor$ | ||
394 | \ifLuaTeX | 382 | \ifLuaTeX |
395 | \usepackage{selnolig} % disable illegal ligatures | 383 | \usepackage{selnolig} % disable illegal ligatures |
396 | \fi | 384 | \fi |
397 | $if(dir)$ | 385 | $if(dir)$ |
398 | \ifXeTeX | ||
399 | % Load bidi as late as possible as it modifies e.g. graphicx | ||
400 | \usepackage{bidi} | ||
401 | \fi | ||
402 | \ifPDFTeX | 386 | \ifPDFTeX |
403 | \TeXXeTstate=1 | 387 | \TeXXeTstate=1 |
404 | \newcommand{\RL}[1]{\beginR #1\endR} | 388 | \newcommand{\RL}[1]{\beginR #1\endR} |
diff --git a/default.revealjs b/default.revealjs index 2039835..45727e2 100644 --- a/default.revealjs +++ b/default.revealjs | |||
@@ -19,6 +19,9 @@ $endif$ | |||
19 | <link rel="stylesheet" href="$revealjs-url$/dist/reset.css"> | 19 | <link rel="stylesheet" href="$revealjs-url$/dist/reset.css"> |
20 | <link rel="stylesheet" href="$revealjs-url$/dist/reveal.css"> | 20 | <link rel="stylesheet" href="$revealjs-url$/dist/reveal.css"> |
21 | <style> | 21 | <style> |
22 | .reveal .sourceCode { /* see #7635 */ | ||
23 | overflow: visible; | ||
24 | } | ||
22 | $styles.html()$ | 25 | $styles.html()$ |
23 | </style> | 26 | </style> |
24 | $if(theme)$ | 27 | $if(theme)$ |