aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-12-13 21:17:13 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-12-13 21:17:13 -0800
commit17b667ec260547201e422de7da56816d97d73c3b (patch)
tree8f565c666b52060fb8478aaa99de7573966ad781
parent935b16b38a710a26b06f0ae2ced5967429e010cc (diff)
downloadpandoc-17b667ec260547201e422de7da56816d97d73c3b.tar.gz
Update latex template to work with recent versions of beamer.
The old template produced numbered sections with some recent versions of beamer. Thanks to Thomas Hodgson.
-rw-r--r--data/templates/default.latex24
1 files changed, 18 insertions, 6 deletions
diff --git a/data/templates/default.latex b/data/templates/default.latex
index a9191aa2a..c36bf8576 100644
--- a/data/templates/default.latex
+++ b/data/templates/default.latex
@@ -193,22 +193,34 @@ $if(beamer)$
\widowpenalties 1 10000
\raggedbottom
$if(section-titles)$
+\setbeamertemplate{part page}{
+\centering
+\begin{beamercolorbox}[sep=16pt,center]{part title}
+ \usebeamerfont{part title}\insertpart\par
+\end{beamercolorbox}
+}
+\setbeamertemplate{section page}{
+\centering
+\begin{beamercolorbox}[sep=12pt,center]{part title}
+ \usebeamerfont{section title}\insertsection\par
+\end{beamercolorbox}
+}
+\setbeamertemplate{subsection page}{
+\centering
+\begin{beamercolorbox}[sep=8pt,center]{part title}
+ \usebeamerfont{subsection title}\insertsubsection\par
+\end{beamercolorbox}
+}
\AtBeginPart{
- \let\insertpartnumber\relax
- \let\partname\relax
\frame{\partpage}
}
\AtBeginSection{
\ifbibliography
\else
- \let\insertsectionnumber\relax
- \let\sectionname\relax
\frame{\sectionpage}
\fi
}
\AtBeginSubsection{
- \let\insertsubsectionnumber\relax
- \let\subsectionname\relax
\frame{\subsectionpage}
}
$endif$