diff --git a/default.ansi b/default.ansi new file mode 100644 index 00000000..9f6ca96d --- /dev/null +++ b/default.ansi @@ -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/default.latex b/default.latex index 00e6d4cc..678583f9 100644 --- a/default.latex +++ b/default.latex @@ -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} } diff --git a/default.typst b/default.typst index c5e602e4..1e7b5efd 100644 --- a/default.typst +++ b/default.typst @@ -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$], @@ -76,10 +88,6 @@ $endif$ doc, ) -$for(header-includes)$ -$header-includes$ - -$endfor$ $for(include-before)$ $include-before$ diff --git a/styles.html b/styles.html index 58fff9f2..cd3b9595 100644 --- a/styles.html +++ b/styles.html @@ -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;