From 5f0c7f8abff1e26b1334b9f632bae147eaebe134 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 17 Mar 2024 22:22:02 -0700 Subject: [PATCH] Updated templates for pandoc 3.1.12.3 --- default.html4 | 2 +- default.html5 | 2 +- default.latex | 18 ++++++++++++++++-- default.typst | 4 ++++ 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/default.html4 b/default.html4 index 401dd88e..636018a4 100644 --- a/default.html4 +++ b/default.html4 @@ -28,7 +28,7 @@ $for(header-includes)$ $endfor$ $if(math)$ $if(mathjax)$ - + $endif$ $math$ $endif$ diff --git a/default.html5 b/default.html5 index acc90d79..bc8a48a6 100644 --- a/default.html5 +++ b/default.html5 @@ -28,7 +28,7 @@ $for(header-includes)$ $endfor$ $if(math)$ $if(mathjax)$ - + $endif$ $math$ $endif$ diff --git a/default.latex b/default.latex index 605a82d9..f8006b23 100644 --- a/default.latex +++ b/default.latex @@ -354,14 +354,28 @@ $if(beamer)$ $else$ $if(block-headings)$ % Make \paragraph and \subparagraph free-standing +\makeatletter \ifx\paragraph\undefined\else \let\oldparagraph\paragraph - \renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}} + \renewcommand{\paragraph}{ + \@ifstar + \xxxParagraphStar + \xxxParagraphNoStar + } + \newcommand{\xxxParagraphStar}[1]{\oldparagraph*{#1}\mbox{}} + \newcommand{\xxxParagraphNoStar}[1]{\oldparagraph{#1}\mbox{}} \fi \ifx\subparagraph\undefined\else \let\oldsubparagraph\subparagraph - \renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}} + \renewcommand{\subparagraph}{ + \@ifstar + \xxxSubParagraphStar + \xxxSubParagraphNoStar + } + \newcommand{\xxxSubParagraphStar}[1]{\oldsubparagraph*{#1}\mbox{}} + \newcommand{\xxxSubParagraphNoStar}[1]{\oldsubparagraph{#1}\mbox{}} \fi +\makeatother $endif$ $endif$ $if(pagestyle)$ diff --git a/default.typst b/default.typst index 935ae602..25f105db 100644 --- a/default.typst +++ b/default.typst @@ -9,6 +9,10 @@ $definitions.typst()$ .join() } +#set table( + inset: 6pt +) + $if(template)$ #import "$template$": conf $else$