Skip to content

Commit

Permalink
Updated templates for pandoc 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jgm committed Sep 10, 2024
1 parent 3430359 commit 7e8aafa
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 6 deletions.
21 changes: 21 additions & 0 deletions default.ansi
Original file line number Diff line number Diff line change
@@ -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$
4 changes: 2 additions & 2 deletions default.latex
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,13 @@ $if(section-titles)$
}
\setbeamertemplate{section page}{
\centering
\begin{beamercolorbox}[sep=12pt,center]{part title}
\begin{beamercolorbox}[sep=12pt,center]{section title}
\usebeamerfont{section title}\insertsection\par
\end{beamercolorbox}
}
\setbeamertemplate{subsection page}{
\centering
\begin{beamercolorbox}[sep=8pt,center]{part title}
\begin{beamercolorbox}[sep=8pt,center]{subsection title}
\usebeamerfont{subsection title}\insertsubsection\par
\end{beamercolorbox}
}
Expand Down
16 changes: 12 additions & 4 deletions default.typst
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,24 @@ $definitions.typst()$
stroke: none
)

#show figure.where(
kind: table
): set figure.caption(position: $if(table-caption-position)$$table-caption-position$$else$top$endif$)

#show figure.where(
kind: image
): set figure.caption(position: $if(figure-caption-position)$$figure-caption-position$$else$bottom$endif$)

$if(template)$
#import "$template$": conf
$else$
$template.typst()$
$endif$

$for(header-includes)$
$header-includes$

$endfor$
#show: doc => conf(
$if(title)$
title: [$title$],
Expand Down Expand Up @@ -76,10 +88,6 @@ $endif$
doc,
)

$for(header-includes)$
$header-includes$

$endfor$
$for(include-before)$
$include-before$

Expand Down
5 changes: 5 additions & 0 deletions styles.html
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,12 @@
font-variant-numeric: lining-nums tabular-nums;
}
table caption {
$if(table-caption-below)$
caption-side: bottom;
margin-top: 0.75em;
$else$
margin-bottom: 0.75em;
$endif$
}
tbody {
margin-top: 0.5em;
Expand Down

0 comments on commit 7e8aafa

Please sign in to comment.