|
|
@ -41,13 +41,59 @@ |
|
|
|
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere |
|
|
|
\PassOptionsToPackage{hyphens}{url} |
|
|
|
\PassOptionsToPackage{dvipsnames,svgnames*,table}{xcolor} |
|
|
|
% |
|
|
|
$if(dir)$$if(latex-dir-rtl)$ |
|
|
|
\PassOptionsToPackage{RTLdocument}{bidi} |
|
|
|
$endif$$endif$% |
|
|
|
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$else$a4paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$,tablecaptionabove]{scrartcl} |
|
|
|
$if(beamer)$ |
|
|
|
$if(background-image)$ |
|
|
|
\usebackgroundtemplate{% |
|
|
|
\includegraphics[width=\paperwidth]{$background-image$}% |
|
|
|
} |
|
|
|
$endif$ |
|
|
|
\usepackage{pgfpages} |
|
|
|
\setbeamertemplate{caption}[numbered] |
|
|
|
\setbeamertemplate{caption label separator}{: } |
|
|
|
\setbeamercolor{caption name}{fg=normal text.fg} |
|
|
|
\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$ |
|
|
|
$for(beameroption)$ |
|
|
|
\setbeameroption{$beameroption$} |
|
|
|
$endfor$ |
|
|
|
% Prevent slide breaks in the middle of a paragraph: |
|
|
|
\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{ |
|
|
|
\frame{\partpage} |
|
|
|
} |
|
|
|
\AtBeginSection{ |
|
|
|
\ifbibliography |
|
|
|
\else |
|
|
|
\frame{\sectionpage} |
|
|
|
\fi |
|
|
|
} |
|
|
|
\AtBeginSubsection{ |
|
|
|
\frame{\subsectionpage} |
|
|
|
} |
|
|
|
$endif$ |
|
|
|
$endif$ |
|
|
|
$if(beamerarticle)$ |
|
|
|
\usepackage{beamerarticle} % needs to be loaded first |
|
|
@ -161,6 +207,8 @@ $if(verbatim-in-note)$ |
|
|
|
$endif$ |
|
|
|
$if(colorlinks)$ |
|
|
|
\usepackage{xcolor} |
|
|
|
\definecolor{default-linkcolor}{HTML}{A50000} |
|
|
|
\definecolor{default-filecolor}{HTML}{A50000} |
|
|
|
\definecolor{default-citecolor}{HTML}{4077C0} |
|
|
|
\definecolor{default-urlcolor}{HTML}{4077C0} |
|
|
|
$endif$ |
|
|
@ -180,7 +228,8 @@ $if(keywords)$ |
|
|
|
$endif$ |
|
|
|
$if(colorlinks)$ |
|
|
|
colorlinks=true, |
|
|
|
linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$, |
|
|
|
linkcolor=$if(linkcolor)$$linkcolor$$else$default-linkcolor$endif$, |
|
|
|
filecolor=$if(filecolor)$$filecolor$$else$default-filecolor$endif$, |
|
|
|
citecolor=$if(citecolor)$$citecolor$$else$default-citecolor$endif$, |
|
|
|
urlcolor=$if(urlcolor)$$urlcolor$$else$default-urlcolor$endif$, |
|
|
|
$else$ |
|
|
@ -233,43 +282,6 @@ $if(graphics)$ |
|
|
|
% using explicit options in \includegraphics[width, height, ...]{} |
|
|
|
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio} |
|
|
|
$endif$ |
|
|
|
$if(beamer)$ |
|
|
|
% Prevent slide breaks in the middle of a paragraph: |
|
|
|
\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{ |
|
|
|
\frame{\partpage} |
|
|
|
} |
|
|
|
\AtBeginSection{ |
|
|
|
\ifbibliography |
|
|
|
\else |
|
|
|
\frame{\sectionpage} |
|
|
|
\fi |
|
|
|
} |
|
|
|
\AtBeginSubsection{ |
|
|
|
\frame{\subsectionpage} |
|
|
|
} |
|
|
|
$endif$ |
|
|
|
$endif$ |
|
|
|
$if(links-as-notes)$ |
|
|
|
% Make links footnotes instead of hotlinks: |
|
|
|
\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}} |
|
|
@ -336,11 +348,7 @@ $endif$ |
|
|
|
$if(dir)$ |
|
|
|
\ifxetex |
|
|
|
% load bidi as late as possible as it modifies e.g. graphicx |
|
|
|
$if(latex-dir-rtl)$ |
|
|
|
\usepackage[RTLdocument]{bidi} |
|
|
|
$else$ |
|
|
|
\usepackage{bidi} |
|
|
|
$endif$ |
|
|
|
\fi |
|
|
|
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex |
|
|
|
\TeXXeTstate=1 |
|
|
@ -722,8 +730,14 @@ $include-before$ |
|
|
|
|
|
|
|
$endfor$ |
|
|
|
$if(toc)$ |
|
|
|
$if(toc-title)$ |
|
|
|
\renewcommand*\contentsname{$toc-title$} |
|
|
|
$endif$ |
|
|
|
$if(beamer)$ |
|
|
|
\begin{frame} |
|
|
|
$if(toc-title)$ |
|
|
|
\frametitle{$toc-title$} |
|
|
|
$endif$ |
|
|
|
\tableofcontents[hideallsubsections] |
|
|
|
\end{frame} |
|
|
|
$if(toc-own-page)$ |
|
|
|