diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-11-22 09:20:16 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-11-22 09:20:16 -0800 |
commit | a2d9d54ae9fa5b1fa7d36d94b7375f522adff7c3 (patch) | |
tree | beffa4c88f32b4d159c3a26b4070f00c097b15e5 /default.latex | |
parent | db59a5e77b0a5629f0801eb82103814842f2e2ed (diff) | |
download | pandoc-templates-a2d9d54ae9fa5b1fa7d36d94b7375f522adff7c3.tar.gz pandoc-templates-a2d9d54ae9fa5b1fa7d36d94b7375f522adff7c3.zip |
Updated templates for pandoc 2.8
Diffstat (limited to 'default.latex')
-rw-r--r-- | default.latex | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/default.latex b/default.latex index 4e8911e..20d5493 100644 --- a/default.latex +++ b/default.latex | |||
@@ -137,7 +137,7 @@ $endif$ | |||
137 | $endif$ | 137 | $endif$ |
138 | $if(CJKmainfont)$ | 138 | $if(CJKmainfont)$ |
139 | \ifxetex | 139 | \ifxetex |
140 | \usepackage{xeCJK} | 140 | \usepackage[space]{xeCJK} |
141 | \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} | 141 | \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$} |
142 | \fi | 142 | \fi |
143 | $endif$ | 143 | $endif$ |
@@ -270,7 +270,7 @@ $else$ | |||
270 | $endif$ | 270 | $endif$ |
271 | $endif$ | 271 | $endif$ |
272 | $if(graphics)$ | 272 | $if(graphics)$ |
273 | \usepackage{graphicx,grffile} | 273 | \usepackage{graphicx} |
274 | \makeatletter | 274 | \makeatletter |
275 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} | 275 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi} |
276 | \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} | 276 | \def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi} |
@@ -359,6 +359,14 @@ $for(bibliography)$ | |||
359 | \addbibresource{$bibliography$} | 359 | \addbibresource{$bibliography$} |
360 | $endfor$ | 360 | $endfor$ |
361 | $endif$ | 361 | $endif$ |
362 | $if(csl-refs)$ | ||
363 | \newlength{\cslhangindent} | ||
364 | \setlength{\cslhangindent}{1.5em} | ||
365 | \newenvironment{cslreferences}% | ||
366 | {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}% | ||
367 | \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}% | ||
368 | {\par} | ||
369 | $endif$ | ||
362 | 370 | ||
363 | $if(title)$ | 371 | $if(title)$ |
364 | \title{$title$$if(thanks)$\thanks{$thanks$}$endif$} | 372 | \title{$title$$if(thanks)$\thanks{$thanks$}$endif$} |