|
| 1 | +$passoptions.latex()$ |
| 2 | +\documentclass[ |
| 3 | +$if(fontsize)$ |
| 4 | + $fontsize$, |
| 5 | +$endif$ |
| 6 | + ignorenonframetext, |
| 7 | +$if(handout)$ |
| 8 | + handout, |
| 9 | +$endif$ |
| 10 | +$if(aspectratio)$ |
| 11 | + aspectratio=$aspectratio$, |
| 12 | +$endif$ |
| 13 | +$if(babel-lang)$ |
| 14 | + $babel-lang$, |
| 15 | +$endif$ |
| 16 | +$for(classoption)$ |
| 17 | + $classoption$$sep$, |
| 18 | +$endfor$ |
| 19 | +]{$documentclass$} |
| 20 | +$if(geometry)$ |
| 21 | +\geometry{$for(geometry)$$geometry$$sep$,$endfor$} |
| 22 | +$endif$ |
| 23 | +\newif\ifbibliography |
| 24 | +$if(background-image)$ |
| 25 | +\usebackgroundtemplate{% |
| 26 | + \includegraphics[width=\paperwidth]{$background-image$}% |
| 27 | +} |
| 28 | +% In beamer background-image does not work well when other images are used, so this is the workaround |
| 29 | +\pgfdeclareimage[width=\paperwidth,height=\paperheight]{background}{$background-image$} |
| 30 | +\usebackgroundtemplate{\pgfuseimage{background}} |
| 31 | +$endif$ |
| 32 | +\usepackage{pgfpages} |
| 33 | +\setbeamertemplate{caption}[numbered] |
| 34 | +\setbeamertemplate{caption label separator}{: } |
| 35 | +\setbeamercolor{caption name}{fg=normal text.fg} |
| 36 | +\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$ |
| 37 | +$-- |
| 38 | +$-- section numbering |
| 39 | +$-- |
| 40 | +$if(numbersections)$ |
| 41 | +$else$ |
| 42 | +% remove section numbering |
| 43 | +\setbeamertemplate{part page}{ |
| 44 | + \centering |
| 45 | + \begin{beamercolorbox}[sep=16pt,center]{part title} |
| 46 | + \usebeamerfont{part title}\insertpart\par |
| 47 | + \end{beamercolorbox} |
| 48 | +} |
| 49 | +\setbeamertemplate{section page}{ |
| 50 | + \centering |
| 51 | + \begin{beamercolorbox}[sep=12pt,center]{section title} |
| 52 | + \usebeamerfont{section title}\insertsection\par |
| 53 | + \end{beamercolorbox} |
| 54 | +} |
| 55 | +\setbeamertemplate{subsection page}{ |
| 56 | + \centering |
| 57 | + \begin{beamercolorbox}[sep=8pt,center]{subsection title} |
| 58 | + \usebeamerfont{subsection title}\insertsubsection\par |
| 59 | + \end{beamercolorbox} |
| 60 | +} |
| 61 | +$endif$ |
| 62 | +$for(beameroption)$ |
| 63 | +\setbeameroption{$beameroption$} |
| 64 | +$endfor$ |
| 65 | +% Prevent slide breaks in the middle of a paragraph |
| 66 | +\widowpenalties 1 10000 |
| 67 | +\raggedbottom |
| 68 | +$if(section-titles)$ |
| 69 | +\AtBeginPart{ |
| 70 | + \frame{\partpage} |
| 71 | +} |
| 72 | +\AtBeginSection{ |
| 73 | + \ifbibliography |
| 74 | + \else |
| 75 | + \frame{\sectionpage} |
| 76 | + \fi |
| 77 | +} |
| 78 | +\AtBeginSubsection{ |
| 79 | + \frame{\subsectionpage} |
| 80 | +} |
| 81 | +$endif$ |
| 82 | +$fonts.latex()$ |
| 83 | +$-- Set Beamer theme before user font settings so they can override theme |
| 84 | +$if(theme)$ |
| 85 | +\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$} |
| 86 | +$endif$ |
| 87 | +$if(colortheme)$ |
| 88 | +\usecolortheme[$for(colorthemeoptions)$$colorthemeoptions$$sep$,$endfor$]{$colortheme$} |
| 89 | +$endif$ |
| 90 | +$if(fonttheme)$ |
| 91 | +\usefonttheme[$for(fontthemeoptions)$$fontthemeoptions$$sep$,$endfor$]{$fonttheme$} |
| 92 | +$endif$ |
| 93 | +$if(mainfont)$ |
| 94 | +\usefonttheme{serif} % use mainfont rather than sansfont for slide text |
| 95 | +$endif$ |
| 96 | +$if(innertheme)$ |
| 97 | +\useinnertheme[$for(innerthemeoptions)$$innerthemeoptions$$sep$,$endfor$]{$innertheme$} |
| 98 | +$endif$ |
| 99 | +$if(outertheme)$ |
| 100 | +\useoutertheme[$for(outerthemeoptions)$$outerthemeoptions$$sep$,$endfor$]{$outertheme$} |
| 101 | +$endif$ |
| 102 | +$font-settings.latex()$ |
| 103 | +$common.latex()$ |
| 104 | +$for(header-includes)$ |
| 105 | +$header-includes$ |
| 106 | +$endfor$ |
| 107 | +$after-header-includes.latex()$ |
| 108 | +$hypersetup.latex()$ |
| 109 | + |
| 110 | +$if(title)$ |
| 111 | +\title$if(shorttitle)$[$shorttitle$]$endif${$title$$if(thanks)$\thanks{$thanks$}$endif$} |
| 112 | +$endif$ |
| 113 | +$if(subtitle)$ |
| 114 | +\subtitle$if(shortsubtitle)$[$shortsubtitle$]$endif${$subtitle$} |
| 115 | +$endif$ |
| 116 | +\author$if(shortauthor)$[$shortauthor$]$endif${$for(author)$$author$$sep$ \and $endfor$} |
| 117 | +\date$if(shortdate)$[$shortdate$]$endif${$date$} |
| 118 | +$if(institute)$ |
| 119 | +\institute$if(shortinstitute)$[$shortinstitute$]$endif${$for(institute)$$institute$$sep$ \and $endfor$} |
| 120 | +$endif$ |
| 121 | +$if(titlegraphic)$ |
| 122 | +\titlegraphic{ |
| 123 | +$for(titlegraphic)$ |
| 124 | + \includegraphics$if(titlegraphicoptions)$[$for(titlegraphicoptions)$$titlegraphicoptions$$sep$, $endfor$]$endif${$titlegraphic$}$sep$\enspace |
| 125 | +$endfor$} |
| 126 | +$endif$ |
| 127 | +$if(logo)$ |
| 128 | +\logo{\includegraphics{$logo$}} |
| 129 | +$endif$ |
| 130 | + |
| 131 | +\begin{document} |
| 132 | +$if(title)$ |
| 133 | +\frame{\titlepage} |
| 134 | +$if(abstract)$ |
| 135 | +\begin{abstract} |
| 136 | +$abstract$ |
| 137 | +\end{abstract} |
| 138 | +$endif$ |
| 139 | +$endif$ |
| 140 | + |
| 141 | +$for(include-before)$ |
| 142 | +$include-before$ |
| 143 | + |
| 144 | +$endfor$ |
| 145 | +$if(toc)$ |
| 146 | +$if(toc-title)$ |
| 147 | +\renewcommand*\contentsname{$toc-title$} |
| 148 | +$endif$ |
| 149 | +\begin{frame}[allowframebreaks] |
| 150 | +$if(toc-title)$ |
| 151 | + \frametitle{$toc-title$} |
| 152 | +$endif$ |
| 153 | + \setcounter{tocdepth}{$toc-depth$} |
| 154 | + \tableofcontents |
| 155 | +\end{frame} |
| 156 | +\setcounter{tocdepth}{$toc-depth$} |
| 157 | +\tableofcontents |
| 158 | +} |
| 159 | +$endif$ |
| 160 | +$if(lof)$ |
| 161 | +\listoffigures |
| 162 | +$endif$ |
| 163 | +$if(lot)$ |
| 164 | +\listoftables |
| 165 | +$endif$ |
| 166 | +$if(linestretch)$ |
| 167 | +\setstretch{$linestretch$} |
| 168 | +$endif$ |
| 169 | +$body$ |
| 170 | + |
| 171 | +$if(natbib)$ |
| 172 | +$if(bibliography)$ |
| 173 | +$if(biblio-title)$ |
| 174 | +$if(has-chapters)$ |
| 175 | +\renewcommand\bibname{$biblio-title$} |
| 176 | +$else$ |
| 177 | +\renewcommand\refname{$biblio-title$} |
| 178 | +$endif$ |
| 179 | +$endif$ |
| 180 | +\begin{frame}[allowframebreaks]{$biblio-title$} |
| 181 | +$if(nocite-ids)$ |
| 182 | + \nocite{$for(nocite-ids)$$it$$sep$, $endfor$} |
| 183 | +$endif$ |
| 184 | + \bibliographytrue |
| 185 | + \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$} |
| 186 | +\end{frame} |
| 187 | + |
| 188 | +$endif$ |
| 189 | +$endif$ |
| 190 | +$if(biblatex)$ |
| 191 | +\begin{frame}[allowframebreaks]{$biblio-title$} |
| 192 | +$if(nocite-ids)$ |
| 193 | + \nocite{$for(nocite-ids)$$it$$sep$, $endfor$} |
| 194 | +$endif$ |
| 195 | + \bibliographytrue |
| 196 | + \printbibliography[heading=none] |
| 197 | +\end{frame} |
| 198 | + |
| 199 | +$endif$ |
| 200 | +$for(include-after)$ |
| 201 | +$include-after$ |
| 202 | + |
| 203 | +$endfor$ |
| 204 | +\end{document} |
0 commit comments