Skip to content

Commit

Permalink
Updated templates for pandoc 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Mar 8, 2021
1 parent 81a523a commit bea0059
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 18 deletions.
8 changes: 5 additions & 3 deletions article.jats_publishing
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ $if(journal.abbrev-title)$
$endif$
</journal-title-group>
$if(journal.pissn)$
<issn pub-type="ppub">$journal.pissn$</issn>
<issn publication-format="print">$journal.pissn$</issn>
$endif$
$if(journal.eissn)$
<issn pub-type="epub">$journal.eissn$</issn>
<issn publication-format="electronic">$journal.eissn$</issn>
$endif$
$-- At least one issn element is required; use empty issn as fallback
$if(journal.pissn)$
Expand Down Expand Up @@ -95,6 +95,8 @@ $if(author.surname)$
<surname>$author.surname$</surname>
<given-names>$author.given-names$</given-names>
</name>
$elseif(author.name)$
<string-name>$author.name$</string-name>
$else$
<string-name>$author$</string-name>
$endif$
Expand Down Expand Up @@ -128,7 +130,7 @@ $endif$
</author-notes>
$endif$
$if(date)$
<pub-date pub-type="epub"$if(date.iso-8601)$ iso-8601-date="$date.iso-8601$"$endif$>
<pub-date date-type="$if(date.type)$$date.type$$else$pub$endif$" publication-format="electronic"$if(date.iso-8601)$ iso-8601-date="$date.iso-8601$"$endif$>
$if(date.day)$
<day>$date.day$</day>
$endif$
Expand Down
10 changes: 10 additions & 0 deletions default.biblatex
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$for(header-includes)$
$header-includes$
$endfor$
$for(include-before)$
$include-before$
$endfor$
$body$
$for(include-after)$
$include-after$
$endfor$
10 changes: 10 additions & 0 deletions default.bibtex
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$for(header-includes)$
$header-includes$
$endfor$
$for(include-before)$
$include-before$
$endfor$
$body$
$for(include-after)$
$include-after$
$endfor$
2 changes: 2 additions & 0 deletions default.jats_articleauthoring
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ $if(author.surname)$
<surname>$author.surname$</surname>
<given-names>$author.given-names$</given-names>
</name>
$elseif(author.name)$
<string-name>$author.name$</string-name>
$else$
<string-name>$author$</string-name>
$endif$
Expand Down
30 changes: 15 additions & 15 deletions default.latex
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,14 @@ $endif$
$if(linestretch)$
\usepackage{setspace}
$endif$
\usepackage{ifxetex,ifluatex}
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage{iftex}
\ifPDFTeX
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{textcomp} % provide euro and other symbols
\else % if luatex or xetex
$if(mathspec)$
\ifxetex
\ifXeTeX
\usepackage{mathspec}
\else
\usepackage{unicode-math}
Expand All @@ -129,7 +129,7 @@ $for(fontfamilies)$
$endfor$
$if(mathfont)$
$if(mathspec)$
\ifxetex
\ifXeTeX
\setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
\else
\setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
Expand All @@ -139,18 +139,18 @@ $else$
$endif$
$endif$
$if(CJKmainfont)$
\ifxetex
\ifXeTeX
\usepackage{xeCJK}
\setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
\fi
$endif$
$if(luatexjapresetoptions)$
\ifluatex
\ifLuaTeX
\usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
\fi
$endif$
$if(CJKmainfont)$
\ifluatex
\ifLuaTeX
\usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
\setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
\fi
Expand Down Expand Up @@ -219,10 +219,10 @@ $if(keywords)$
$endif$
$if(colorlinks)$
colorlinks=true,
linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
filecolor=$if(filecolor)$$filecolor$$else$Maroon$endif$,
citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
linkcolor={$if(linkcolor)$$linkcolor$$else$Maroon$endif$},
filecolor={$if(filecolor)$$filecolor$$else$Maroon$endif$},
citecolor={$if(citecolor)$$citecolor$$else$Blue$endif$},
urlcolor={$if(urlcolor)$$urlcolor$$else$Blue$endif$},
$else$
hidelinks,
$endif$
Expand Down Expand Up @@ -329,7 +329,7 @@ $for(header-includes)$
$header-includes$
$endfor$
$if(lang)$
\ifxetex
\ifXeTeX
% Load polyglossia as late as possible: uses bidi with RTL langages (e.g. Hebrew, Arabic)
\usepackage{polyglossia}
\setmainlanguage[$for(polyglossia-lang.options)$$polyglossia-lang.options$$sep$,$endfor$]{$polyglossia-lang.name$}
Expand All @@ -346,15 +346,15 @@ $if(babel-newcommands)$
$endif$
\fi
$endif$
\ifluatex
\ifLuaTeX
\usepackage{selnolig} % disable illegal ligatures
\fi
$if(dir)$
\ifxetex
\ifXeTeX
% Load bidi as late as possible as it modifies e.g. graphicx
\usepackage{bidi}
\fi
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\ifPDFTeX
\TeXXeTstate=1
\newcommand{\RL}[1]{\beginR #1\endR}
\newcommand{\LR}[1]{\beginL #1\endL}
Expand Down
4 changes: 4 additions & 0 deletions default.revealjs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ $endif$
// Full list of configuration options available at:
// https://revealjs.com/config/
Reveal.initialize({
$if(center)$
// Determines whether slide content should be vertically centered
center: $center$,
$endif$
$if(controls)$
// Display controls in the bottom right corner
controls: $controls$,
Expand Down

0 comments on commit bea0059

Please sign in to comment.