Skip to content

Commit 592a978

Browse files
committed
chore - update pandoc 3.4 templates for pdf,typst
1 parent 26a18fe commit 592a978

File tree

5 files changed

+15
-7
lines changed

5 files changed

+15
-7
lines changed

src/resources/formats/pdf/pandoc/doc-class.tex

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
$if(aspectratio)$
1414
aspectratio=$aspectratio$,
1515
$endif$
16+
$if(babel-lang)$
17+
$babel-lang$,
18+
$endif$
1619
$endif$
1720
$for(classoption)$
1821
$classoption$$sep$,

src/resources/formats/pdf/pandoc/template.tex

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
}
4040
\setbeamertemplate{section page}{
4141
\centering
42-
\begin{beamercolorbox}[sep=12pt,center]{part title}
42+
\begin{beamercolorbox}[sep=12pt,center]{section title}
4343
\usebeamerfont{section title}\insertsection\par
4444
\end{beamercolorbox}
4545
}
4646
\setbeamertemplate{subsection page}{
4747
\centering
48-
\begin{beamercolorbox}[sep=8pt,center]{part title}
48+
\begin{beamercolorbox}[sep=8pt,center]{subsection title}
4949
\usebeamerfont{subsection title}\insertsubsection\par
5050
\end{beamercolorbox}
5151
}
@@ -344,10 +344,12 @@
344344
% get rid of language-specific shorthands (see #6817):
345345
\let\LanguageShortHands\languageshorthands
346346
\def\languageshorthands#1{}
347-
$endif$
347+
$if(selnolig-langs)$
348348
\ifLuaTeX
349-
\usepackage{selnolig} % disable illegal ligatures
349+
\usepackage[$for(selnolig-langs)$$it$$sep$,$endfor$]{selnolig} % disable illegal ligatures
350350
\fi
351+
$endif$
352+
$endif$
351353
$if(dir)$
352354
\ifPDFTeX
353355
\TeXXeTstate=1

src/resources/formats/pdf/pandoc/title.tex

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
2121
$endif$
2222
$if(titlegraphic)$
23-
\titlegraphic{\includegraphics{$titlegraphic$}}
24-
$endif$
23+
\titlegraphic{\includegraphics$if(titlegraphicoptions)$[$for(titlegraphicoptions)$$titlegraphicoptions$$sep$, $endfor$]$endif${$titlegraphic$}}$endif$
2524
$if(logo)$
2625
\logo{\includegraphics{$logo$}}
2726
$endif$

src/resources/formats/pdf/pandoc/toc.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
$if(toc-title)$
88
\frametitle{$toc-title$}
99
$endif$
10-
\tableofcontents[hideallsubsections]
10+
\setcounter{tocdepth}{$toc-depth$}
11+
\tableofcontents
1112
\end{frame}
1213
$else$
1314
{

src/resources/formats/typst/pandoc/quarto/typst-show.typ

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ $if(title-font)$
55
title-font: ("$title-font$",),
66
$endif$
77
$endif$
8+
$if(subtitle)$
9+
subtitle: [$subtitle$],
10+
$endif$
811
$if(by-author)$
912
authors: (
1013
$for(by-author)$

0 commit comments

Comments
 (0)