Skip to content

Commit

Permalink
Updated templates for pandoc 2.18
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Apr 4, 2022
1 parent a7a3a7b commit 67ca7bf
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 54 deletions.
17 changes: 11 additions & 6 deletions article.jats_publishing
Original file line number Diff line number Diff line change
Expand Up @@ -174,20 +174,25 @@ $if(history)$
$endif$
$if(copyright)$
<permissions>
$if(copyright.statement)$
$for(copyright.statement)$
<copyright-statement>$copyright.statement$</copyright-statement>
$endif$
$if(copyright.year)$
$endfor$
$for(copyright.year)$
<copyright-year>$copyright.year$</copyright-year>
$endif$
$if(copyright.holder)$
$endfor$
$for(copyright.holder)$
<copyright-holder>$copyright.holder$</copyright-holder>
$endif$
$endfor$
$if(copyright.text)$
<license license-type="$copyright.type$" xlink:href="$copyright.link$">
<license-p>$copyright.text$</license-p>
</license>
$endif$
$for(license)$
<license$if(it.type)$ license-type="${it.type}"$endif$$if(it.link)$ xlink:href="${it.link}"$endif$>
<license-p>$if(it.text)$${it.text}$else$${it}$endif$</license-p>
</license>
$endfor$
</permissions>
$endif$
$if(abstract)$
Expand Down
17 changes: 11 additions & 6 deletions default.jats_articleauthoring
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,25 @@ $endfor$
$endif$
$if(copyright)$
<permissions>
$if(copyright.statement)$
$for(copyright.statement)$
<copyright-statement>$copyright.statement$</copyright-statement>
$endif$
$if(copyright.year)$
$endfor$
$for(copyright.year)$
<copyright-year>$copyright.year$</copyright-year>
$endif$
$if(copyright.holder)$
$endfor$
$for(copyright.holder)$
<copyright-holder>$copyright.holder$</copyright-holder>
$endif$
$endfor$
$if(copyright.text)$
<license license-type="$copyright.type$" xlink:href="$copyright.link$">
<license-p>$copyright.text$</license-p>
</license>
$endif$
$for(license)$
<license$if(it.type)$ license-type="${it.type}"$endif$$if(it.link)$ xlink:href="${it.link}"$endif$>
<license-p>$if(it.text)$${it.text}$else$${it}$endif$</license-p>
</license>
$endfor$
</permissions>
$endif$
<abstract>
Expand Down
68 changes: 34 additions & 34 deletions default.latex
Original file line number Diff line number Diff line change
Expand Up @@ -210,38 +210,6 @@ $if(verbatim-in-note)$
\usepackage{fancyvrb}
$endif$
\usepackage{xcolor}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\hypersetup{
$if(title-meta)$
pdftitle={$title-meta$},
$endif$
$if(author-meta)$
pdfauthor={$author-meta$},
$endif$
$if(lang)$
pdflang={$lang$},
$endif$
$if(subject)$
pdfsubject={$subject$},
$endif$
$if(keywords)$
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
$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$},
$else$
hidelinks,
$endif$
pdfcreator={LaTeX via pandoc}}
\urlstyle{same} % disable monospaced font for URLs
$if(verbatim-in-note)$
\VerbatimFootnotes % allow verbatim text in footnotes
$endif$
$if(geometry)$
$if(beamer)$
\geometry{$for(geometry)$$geometry$$sep$,$endfor$}
Expand Down Expand Up @@ -309,8 +277,6 @@ $endif$
$if(strikeout)$
$-- also used for underline
\usepackage[normalem]{ulem}
% Avoid problems with \sout in headers with hyperref
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
$endif$
\setlength{\emergencystretch}{3em} % prevent overfull lines
\providecommand{\tightlist}{%
Expand Down Expand Up @@ -368,7 +334,9 @@ $if(lang)$
\else
\usepackage[bidi=default]{babel}
\fi
$if(babel-lang)$
\babelprovide[main,import]{$babel-lang$}
$endif$
$for(babel-otherlangs)$
\babelprovide[import]{$babel-otherlangs$}
$endfor$
Expand Down Expand Up @@ -407,6 +375,38 @@ $endif$
$if(csquotes)$
\usepackage{csquotes}
$endif$
\IfFileExists{bookmark.sty}{\usepackage{bookmark}}{\usepackage{hyperref}}
\IfFileExists{xurl.sty}{\usepackage{xurl}}{} % add URL line breaks if available
\urlstyle{same} % disable monospaced font for URLs
$if(verbatim-in-note)$
\VerbatimFootnotes % allow verbatim text in footnotes
$endif$
\hypersetup{
$if(title-meta)$
pdftitle={$title-meta$},
$endif$
$if(author-meta)$
pdfauthor={$author-meta$},
$endif$
$if(lang)$
pdflang={$lang$},
$endif$
$if(subject)$
pdfsubject={$subject$},
$endif$
$if(keywords)$
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
$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$},
$else$
hidelinks,
$endif$
pdfcreator={LaTeX via pandoc}}

$if(title)$
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
Expand Down
42 changes: 34 additions & 8 deletions default.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,45 @@
$if(titleblock)$
$titleblock$

$endif$
$for(author)$
:Author: $author$
:Author: $^$$author$
$endfor$
$if(date)$
:Date: $date$
$if(authors)$
:Authors:
$author$
$endif$
$if(author)$

$else$
$if(date)$

:Date: $^$$date$
$endif$
$if(address)$
:Addresss: $^$$address$
$endif$
$if(contact)$
:Contact: $^$$contact$
$endif$
$if(copyright)$
:Copyright: $^$$copyright$
$endif$
$if(dedication)$
:Dedication: $^$$dedication$
$endif$
$if(organization)$
:Organization: $^$$organization$
$endif$
$if(revision)$
:Revision: $^$$revision$
$endif$
$if(status)$
:Status: $^$$status$
$endif$
$if(version)$
:Version: $^$$version$
$endif$
$if(abstract)$
:Abstract:
$abstract$
$endif$

$endif$
$if(rawtex)$
.. role:: raw-latex(raw)
Expand Down

0 comments on commit 67ca7bf

Please sign in to comment.