Skip to content

Commit

Permalink
Updated templates for pandoc 3.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Feb 9, 2025
1 parent b033aa1 commit 8bfff6d
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 47 deletions.
11 changes: 11 additions & 0 deletions article.jats_publishing
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,17 @@ $elseif(author.name)$
$else$
<string-name>$author$</string-name>
$endif$
$for(author.roles)$
$if(it.credit)$
<role vocab="credit"$if(it.degree)$ degree-contribution="$it.degree$"$endif$
vocab-identifier="https://credit.niso.org/"
vocab-term-identifier="https://credit.niso.org/contributor-roles/$it.credit$/"
vocab-term="$it.credit-name$"
>$if(it.name)$$it.name$$else$$it.credit-name$$endif$</role>
$elseif(it.name)$
<role>$it.name$</role>
$endif$
$endfor$
$if(author.email)$
<email>$author.email$</email>
$endif$
Expand Down
10 changes: 3 additions & 7 deletions common.latex
Original file line number Diff line number Diff line change
Expand Up @@ -183,22 +183,18 @@ $-- Babel language support
$--
$if(lang)$
\ifLuaTeX
\usepackage[bidi=basic]{babel}
\usepackage[bidi=basic$for(babeloptions)$,$babeloptions$$endfor$]{babel}
\else
\usepackage[bidi=default]{babel}
\usepackage[bidi=default$for(babeloptions)$,$babeloptions$$endfor$]{babel}
\fi
$if(babel-lang)$
\babelprovide[main,import]{$babel-lang$}
$if(mainfont)$
\ifPDFTeX
\else
\babelfont{rm}[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$}
\fi
$endif$
$endif$
$for(babel-otherlangs)$
\babelprovide[import]{$babel-otherlangs$}
$endfor$
$for(babelfonts/pairs)$
\babelfont[$babelfonts.key$]{rm}{$babelfonts.value$}
$endfor$
Expand Down Expand Up @@ -261,5 +257,5 @@ $--
$-- csquotes
$--
$if(csquotes)$
\usepackage{csquotes}
\usepackage[$for(csquotesoptions)$$csquotesoptions$$sep$,$endfor$]{csquotes}
$endif$
6 changes: 6 additions & 0 deletions default.latex
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
$passoptions.latex()$
\documentclass[
$for(babel-otherlangs)$
$babel-otherlangs$,
$endfor$
$if(babel-lang)$
$babel-lang$,
$endif$
$if(fontsize)$
$fontsize$,
$endif$
Expand Down
9 changes: 0 additions & 9 deletions default.openxml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,6 @@ $endif$
$for(include-after)$
$include-after$
$endfor$
$-- sectpr will be set to the last sectpr in a reference.docx, if present
$if(sectpr)$
$sectpr$
$else$
<w:sectPr>
<w:footnotePr>
<w:numRestart w:val="eachSect" />
</w:footnotePr>
</w:sectPr>
$endif$
</w:body>
</w:document>
60 changes: 30 additions & 30 deletions font-settings.latex
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,36 @@ $endif$
\ifPDFTeX\else
% xetex/luatex font selection
$if(mainfont)$
$if(mainfontfallback)$
\ifLuaTeX
\usepackage{luaotfload}
\directlua{luaotfload.add_fallback("mainfontfallback",{
$for(mainfontfallback)$"$mainfontfallback$"$sep$,$endfor$
})}
\fi
$endif$
$if(mainfontfallback)$
\ifLuaTeX
\usepackage{luaotfload}
\directlua{luaotfload.add_fallback("mainfontfallback",{
$for(mainfontfallback)$"$mainfontfallback$"$sep$,$endfor$
})}
\fi
$endif$
\setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$$if(mainfontfallback)$,RawFeature={fallback=mainfontfallback}$endif$]{$mainfont$}
$endif$
$if(sansfont)$
$if(sansfontfallback)$
\ifLuaTeX
\usepackage{luaotfload}
\directlua{luaotfload.add_fallback("sansfontfallback",{
$for(sansfontfallback)$"$sansfontfallback$"$sep$,$endfor$
})}
\fi
$endif$
$if(sansfontfallback)$
\ifLuaTeX
\usepackage{luaotfload}
\directlua{luaotfload.add_fallback("sansfontfallback",{
$for(sansfontfallback)$"$sansfontfallback$"$sep$,$endfor$
})}
\fi
$endif$
\setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$$if(sansfontfallback)$,RawFeature={fallback=sansfontfallback}$endif$]{$sansfont$}
$endif$
$if(monofont)$
$if(monofontfallback)$
\ifLuaTeX
\usepackage{luaotfload}
\directlua{luaotfload.add_fallback("monofontfallback",{
$for(monofontfallback)$"$monofontfallback$"$sep$,$endfor$
})}
\fi
$endif$
$if(monofontfallback)$
\ifLuaTeX
\usepackage{luaotfload}
\directlua{luaotfload.add_fallback("monofontfallback",{
$for(monofontfallback)$"$monofontfallback$"$sep$,$endfor$
})}
\fi
$endif$
\setmonofont[$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$if(monofontfallback)$,RawFeature={fallback=monofontfallback}$endif$]{$monofont$}
$endif$
$for(fontfamilies)$
Expand All @@ -55,12 +55,12 @@ $if(CJKmainfont)$
\ifXeTeX
\usepackage{xeCJK}
\setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
$if(CJKsansfont)$
\setCJKsansfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKsansfont$}
$endif$
$if(CJKmonofont)$
\setCJKmonofont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmonofont$}
$endif$
$if(CJKsansfont)$
\setCJKsansfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKsansfont$}
$endif$
$if(CJKmonofont)$
\setCJKmonofont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmonofont$}
$endif$
\fi
$endif$
$if(luatexjapresetoptions)$
Expand Down
2 changes: 1 addition & 1 deletion styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@
overflow: visible;
}
hr {
background-color: #1a1a1a;
border: none;
border-top: 1px solid #1a1a1a;
height: 1px;
margin: 1em 0;
}
Expand Down

0 comments on commit 8bfff6d

Please sign in to comment.