Skip to content

Commit

Permalink
Updated templates for pandoc 3.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Mar 5, 2023
1 parent 6436be8 commit 1685cf7
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 2 deletions.
4 changes: 3 additions & 1 deletion default.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ $if(titleblock)$
= $title$
$if(author)$
$for(author)$$author$$sep$; $endfor$
$endif$
$if(date)$
$date$
$endif$
$elseif(date)$
:revdate: $date$
$endif$
$if(keywords)$
:keywords: $for(keywords)$$keywords$$sep$, $endfor$
$endif$
Expand Down
4 changes: 3 additions & 1 deletion default.asciidoctor
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ $if(titleblock)$
= $title$
$if(author)$
$for(author)$$author$$sep$; $endfor$
$endif$
$if(date)$
$date$
$endif$
$elseif(date)$
:revdate: $date$
$endif$
$if(keywords)$
:keywords: $for(keywords)$$keywords$$sep$, $endfor$
$endif$
Expand Down
4 changes: 4 additions & 0 deletions default.chunkedhtml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ $endif$
</span>
</div>
</nav>
$if(top)$
$-- only print title block if this is NOT the top page
$else$
$if(title)$
<header id="title-block-header">
<h1 class="title">$title$</h1>
Expand All @@ -81,6 +84,7 @@ $if(abstract)$
$abstract$
</div>
$endif$
$endif$
</header>
$endif$
$if(toc)$
Expand Down
1 change: 1 addition & 0 deletions default.context
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ $endif$
style=$linkstyle$,
color=$linkcolor$,
contrastcolor=$linkcontrastcolor$]
\setupurl[style=$urlstyle$]

% make chapter, section bookmarks visible when opening document
\placebookmarks[chapter, section, subsection, subsubsection, subsubsubsection, subsubsubsubsection][chapter, section]
Expand Down
3 changes: 3 additions & 0 deletions default.html4
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ $for(header-includes)$
$header-includes$
$endfor$
$if(math)$
$if(mathjax)$
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
$endif$
$math$
$endif$
</head>
Expand Down
3 changes: 3 additions & 0 deletions default.html5
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ $for(header-includes)$
$header-includes$
$endfor$
$if(math)$
$if(mathjax)$
<script src="https://polyfill.io/v3/polyfill.min.js?features=es6"></script>
$endif$
$math$
$endif$
<!--[if lt IE 9]>
Expand Down
6 changes: 6 additions & 0 deletions default.latex
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,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$
\fi
$endif$
$if(luatexjapresetoptions)$
Expand Down

0 comments on commit 1685cf7

Please sign in to comment.