diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2021-12-29 15:00:59 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2021-12-29 15:00:59 +0200 |
commit | b4361712899fd0183fea5513180cb383979616de (patch) | |
tree | 688ab7ee2ab3a8cd32b4e37b506099aec95388f7 /data/templates | |
parent | 726ad97faebe59e024d68d293e663c02bbe423c8 (diff) | |
parent | d960282b105a6469c760b4308a3b81da723b7256 (diff) | |
download | pandoc-b4361712899fd0183fea5513180cb383979616de.tar.gz |
Merge https://github.com/jgm/pandoc
Diffstat (limited to 'data/templates')
-rw-r--r-- | data/templates/affiliations.jats | 44 | ||||
-rw-r--r-- | data/templates/article.jats_publishing | 17 | ||||
-rw-r--r-- | data/templates/default.jats_articleauthoring | 12 | ||||
-rw-r--r-- | data/templates/default.latex | 39 | ||||
-rw-r--r-- | data/templates/default.markua | 21 | ||||
-rw-r--r-- | data/templates/default.revealjs | 5 | ||||
-rw-r--r-- | data/templates/default.rtf | 2 |
7 files changed, 81 insertions, 59 deletions
diff --git a/data/templates/affiliations.jats b/data/templates/affiliations.jats index 93238d22e..17c3cf164 100644 --- a/data/templates/affiliations.jats +++ b/data/templates/affiliations.jats @@ -1,38 +1,36 @@ $-- $-- Affiliations $-- -$for(affiliation)$ -<aff id="aff-$affiliation.id$"> +<aff id="aff-$it.id$"> $-- wrap affiliation if it has a known institution identifier -$if(affiliation.group)$ -<institution content-type="group">$affiliation.group$</institution> +$if(it.group)$ +<institution content-type="group">${it.group}</institution> $endif$ -$if(affiliation.department)$ -<institution content-type="dept">$affiliation.department$</institution> +$if(it.department)$ +<institution content-type="dept">${it.department}</institution> $endif$ <institution-wrap> -$if(affiliation.organization)$ -<institution>$affiliation.organization$</institution> +$if(it.organization)$ +<institution>${it.organization}</institution> $else$ -<institution>$affiliation.name$</institution> +<institution>${it.name}</institution> $endif$ -$if(affiliation.isni)$ -<institution-id institution-id-type="ISNI">$affiliation.isni$</institution-id> +$if(it.isni)$ +<institution-id institution-id-type="ISNI">${it.isni}</institution-id> $endif$ -$if(affiliation.ringgold)$ -<institution-id institution-id-type="Ringgold">$affiliation.ringgold$</institution-id> +$if(it.ringgold)$ +<institution-id institution-id-type="Ringgold">${it.ringgold}</institution-id> $endif$ -$if(affiliation.ror)$ -<institution-id institution-id-type="ROR">$affiliation.ror$</institution-id> +$if(it.ror)$ +<institution-id institution-id-type="ROR">${it.ror}</institution-id> $endif$ -$for(affiliation.pid)$ -<institution-id institution-id-type="$affiliation.pid.type$">$affiliation.pid.id$</institution-id> +$for(it.pid)$ +<institution-id institution-id-type="${it.type}">${it.id}</institution-id> $endfor$ -</institution-wrap>$if(affiliation.street-address)$, -$for(affiliation.street-address)$ -<addr-line>$affiliation.street-address$</addr-line>$sep$, +</institution-wrap>$if(it.street-address)$, +$for(it.street-address)$ +<addr-line>${it}</addr-line>$sep$, $endfor$ -$else$$if(affiliation.city)$, <city>$affiliation.city$</city>$endif$$endif$$if(affiliation.country)$, -<country$if(affiliation.country-code)$ country="$affiliation.country-code$"$endif$>$affiliation.country$</country>$endif$ +$else$$if(it.city)$, <city>$it.city$</city>$endif$$endif$$if(it.country)$, +<country$if(it.country-code)$ country="$it.country-code$"$endif$>$it.country$</country>$endif$ </aff> -$endfor$ diff --git a/data/templates/article.jats_publishing b/data/templates/article.jats_publishing index 9bedff6af..47ab8f197 100644 --- a/data/templates/article.jats_publishing +++ b/data/templates/article.jats_publishing @@ -81,12 +81,15 @@ $endif$ $if(title)$ <title-group> <article-title>$title$</article-title> +$if(subtitle)$ +<subtitle>${subtitle}</subtitle> +$endif$ </title-group> $endif$ $if(author)$ <contrib-group> $for(author)$ -<contrib contrib-type="author"$if(author.equal-contrib)$ equal-contrib="true"$endif$> +<contrib contrib-type="author"$if(author.equal-contrib)$ equal-contrib="yes"$endif$> $if(author.orcid)$ <contrib-id contrib-id-type="orcid">$author.orcid$</contrib-id> $endif$ @@ -103,15 +106,25 @@ $endif$ $if(author.email)$ <email>$author.email$</email> $endif$ +$-- if affiliations are listed separately, then create links. Otherwise +$-- include them here. +$if(affiliation)$ $for(author.affiliation)$ <xref ref-type="aff" rid="aff-$author.affiliation$"/> $endfor$ +$else$ +$for(author.affiliation)$ +${ it:affiliations.jats() } +$endfor$ +$endif$ $if(author.cor-id)$ <xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref> $endif$ </contrib> $endfor$ -${ affiliations.jats() } +$for(affiliation)$ +${ it:affiliations.jats() } +$endfor$ </contrib-group> $endif$ $if(article.author-notes)$ diff --git a/data/templates/default.jats_articleauthoring b/data/templates/default.jats_articleauthoring index 60b2ca559..01042b001 100644 --- a/data/templates/default.jats_articleauthoring +++ b/data/templates/default.jats_articleauthoring @@ -14,12 +14,15 @@ $endif$ $if(title)$ <title-group> <article-title>$title$</article-title> +$if(subtitle)$ +<subtitle>${subtitle}</subtitle> +$endif$ </title-group> $endif$ $if(author)$ <contrib-group> $for(author)$ -<contrib contrib-type="author"$if(author.equal-contrib)$ equal-contrib="true"$endif$> +<contrib contrib-type="author"$if(author.equal-contrib)$ equal-contrib="yes"$endif$> $if(author.orcid)$ <contrib-id contrib-id-type="orcid">$author.orcid$</contrib-id> $endif$ @@ -33,18 +36,17 @@ $elseif(author.name)$ $else$ <string-name>$author$</string-name> $endif$ +$for(author.affiliation)$ +${ it:affiliations.jats() } +$endfor$ $if(author.email)$ <email>$author.email$</email> $endif$ -$for(author.affiliation)$ -<xref ref-type="aff" rid="aff-$author.affiliation$"/> -$endfor$ $if(author.cor-id)$ <xref ref-type="corresp" rid="cor-$author.cor-id$"><sup>*</sup></xref> $endif$ </contrib> $endfor$ -${ affiliations.jats() } </contrib-group> $endif$ $if(copyright)$ diff --git a/data/templates/default.latex b/data/templates/default.latex index d06701675..3874813c7 100644 --- a/data/templates/default.latex +++ b/data/templates/default.latex @@ -4,11 +4,6 @@ $if(colorlinks)$ \PassOptionsToPackage{dvipsnames,svgnames,x11names}{xcolor} $endif$ -$if(dir)$ -$if(latex-dir-rtl)$ -\PassOptionsToPackage{RTLdocument}{bidi} -$endif$ -$endif$ $if(CJKmainfont)$ \PassOptionsToPackage{space}{xeCJK} $endif$ @@ -17,9 +12,6 @@ $endif$ $if(fontsize)$ $fontsize$, $endif$ -$if(lang)$ - $babel-lang$, -$endif$ $if(papersize)$ $papersize$paper, $endif$ @@ -315,6 +307,7 @@ $if(links-as-notes)$ \DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} $endif$ $if(strikeout)$ +$-- also used for underline \usepackage[normalem]{ulem} % Avoid problems with \sout in headers with hyperref \pdfstringdefDisableCommands{\renewcommand{\sout}{}} @@ -369,35 +362,27 @@ $if(csl-refs)$ \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}\break} \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1} $endif$ -$for(header-includes)$ -$header-includes$ -$endfor$ $if(lang)$ -\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$} -$for(polyglossia-otherlangs)$ - \setotherlanguage[$for(polyglossia-otherlangs.options)$$polyglossia-otherlangs.options$$sep$,$endfor$]{$polyglossia-otherlangs.name$} -$endfor$ +\ifLuaTeX +\usepackage[bidi=basic]{babel} \else - \usepackage[$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel} +\usepackage[bidi=default]{babel} +\fi +\babelprovide[main,import]{$babel-lang$} +$for(babel-otherlangs)$ +\babelprovide[import]{$babel-otherlangs$} +$endfor$ % get rid of language-specific shorthands (see #6817): \let\LanguageShortHands\languageshorthands \def\languageshorthands#1{} -$if(babel-newcommands)$ - $babel-newcommands$ -$endif$ -\fi $endif$ +$for(header-includes)$ +$header-includes$ +$endfor$ \ifLuaTeX \usepackage{selnolig} % disable illegal ligatures \fi $if(dir)$ -\ifXeTeX - % Load bidi as late as possible as it modifies e.g. graphicx - \usepackage{bidi} -\fi \ifPDFTeX \TeXXeTstate=1 \newcommand{\RL}[1]{\beginR #1\endR} diff --git a/data/templates/default.markua b/data/templates/default.markua new file mode 100644 index 000000000..9f6ca96de --- /dev/null +++ b/data/templates/default.markua @@ -0,0 +1,21 @@ +$if(titleblock)$ +$titleblock$ + +$endif$ +$for(header-includes)$ +$header-includes$ + +$endfor$ +$for(include-before)$ +$include-before$ + +$endfor$ +$if(toc)$ +$table-of-contents$ + +$endif$ +$body$ +$for(include-after)$ + +$include-after$ +$endfor$ diff --git a/data/templates/default.revealjs b/data/templates/default.revealjs index 203983522..e1ca8b824 100644 --- a/data/templates/default.revealjs +++ b/data/templates/default.revealjs @@ -19,6 +19,9 @@ $endif$ <link rel="stylesheet" href="$revealjs-url$/dist/reset.css"> <link rel="stylesheet" href="$revealjs-url$/dist/reveal.css"> <style> + .reveal .sourceCode { /* see #7635 */ + overflow: visible; + } $styles.html()$ </style> $if(theme)$ @@ -134,7 +137,7 @@ $endif$ // Disables the default reveal.js slide layout (scaling and centering) // so that you can use custom CSS layout - disableLayout: false, + disableLayout: $disableLayout$, // Vertical centering of slides center: $center$, diff --git a/data/templates/default.rtf b/data/templates/default.rtf index a7f79376d..10f596518 100644 --- a/data/templates/default.rtf +++ b/data/templates/default.rtf @@ -1,4 +1,4 @@ -{\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 Courier;}} +{\rtf1\ansi\deff0{\fonttbl{\f0 \fswiss Helvetica;}{\f1 \fmodern Courier;}} {\colortbl;\red255\green0\blue0;\red0\green0\blue255;} \widowctrl\hyphauto $for(header-includes)$ |