Path: blob/main/src/resources/formats/beamer/pandoc/template.tex
12923 views
% Options for packages loaded elsewhere1$passoptions.latex()$2%3$doc-class.tex()$45$if(geometry)$6\geometry{$for(geometry)$$geometry$$sep$,$endfor$}7$endif$8\newif\ifbibliography9$if(background-image)$10\usebackgroundtemplate{%11\includegraphics[width=\paperwidth]{$background-image$}%12}13% In beamer background-image does not work well when other images are used, so this is the workaround14\pgfdeclareimage[width=\paperwidth,height=\paperheight]{background}{$background-image$}15\usebackgroundtemplate{\pgfuseimage{background}}16$endif$17\usepackage{pgfpages}18\setbeamertemplate{caption}[numbered]19\setbeamertemplate{caption label separator}{: }20\setbeamercolor{caption name}{fg=normal text.fg}21\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$22$--23$-- section numbering24$--25$if(numbersections)$26$else$27% remove section numbering28\setbeamertemplate{part page}{29\centering30\begin{beamercolorbox}[sep=16pt,center]{part title}31\usebeamerfont{part title}\insertpart\par32\end{beamercolorbox}33}34\setbeamertemplate{section page}{35\centering36\begin{beamercolorbox}[sep=12pt,center]{section title}37\usebeamerfont{section title}\insertsection\par38\end{beamercolorbox}39}40\setbeamertemplate{subsection page}{41\centering42\begin{beamercolorbox}[sep=8pt,center]{subsection title}43\usebeamerfont{subsection title}\insertsubsection\par44\end{beamercolorbox}45}46$endif$47$for(beameroption)$48\setbeameroption{$beameroption$}49$endfor$50% Prevent slide breaks in the middle of a paragraph51\widowpenalties 1 1000052\raggedbottom53$if(section-titles)$54\AtBeginPart{55\frame{\partpage}56}57\AtBeginSection{58\ifbibliography59\else60\frame{\sectionpage}61\fi62}63\AtBeginSubsection{64\frame{\subsectionpage}65}66$endif$67$fonts.latex()$6869$-- Set Beamer theme before user font settings so they can override theme70$if(theme)$71\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}72$endif$73$if(colortheme)$74\usecolortheme[$for(colorthemeoptions)$$colorthemeoptions$$sep$,$endfor$]{$colortheme$}75$endif$76$if(fonttheme)$77\usefonttheme[$for(fontthemeoptions)$$fontthemeoptions$$sep$,$endfor$]{$fonttheme$}78$endif$79$if(mainfont)$80\usefonttheme{serif} % use mainfont rather than sansfont for slide text81$endif$82$if(innertheme)$83\useinnertheme[$for(innerthemeoptions)$$innerthemeoptions$$sep$,$endfor$]{$innertheme$}84$endif$85$if(outertheme)$86\useoutertheme[$for(outerthemeoptions)$$outerthemeoptions$$sep$,$endfor$]{$outertheme$}87$endif$88$font-settings.latex()$89$common.latex()$9091$after-header-includes.latex()$92$hypersetup.latex()$9394$before-title.tex()$9596$title.tex()$9798\begin{document}99$before-body.tex()$100101$for(include-before)$102$include-before$103104$endfor$105$toc.tex()$106107$if(linestretch)$108\setstretch{$linestretch$}109$endif$110$body$111112$before-bib.tex()$113114$biblio.tex()$115116$for(include-after)$117$include-after$118119$endfor$120$after-body.tex()$121122\end{document}123124125