|
Packit Service |
d2f85f |
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
|
|
Packit Service |
d2f85f |
\PassOptionsToPackage{hyphens}{url}
|
|
Packit Service |
d2f85f |
$if(colorlinks)$
|
|
Packit Service |
d2f85f |
\PassOptionsToPackage{dvipsnames,svgnames*,x11names*}{xcolor}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
%
|
|
Packit Service |
d2f85f |
\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$if(beamer)$ignorenonframetext,$if(handout)$handout,$endif$$if(aspectratio)$aspectratio=$aspectratio$,$endif$$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
\setbeamertemplate{caption}[numbered]
|
|
Packit Service |
d2f85f |
\setbeamertemplate{caption label separator}{: }
|
|
Packit Service |
d2f85f |
\setbeamercolor{caption name}{fg=normal text.fg}
|
|
Packit Service |
d2f85f |
\beamertemplatenavigationsymbols$if(navigation)$$navigation$$else$empty$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(beamerarticle)$
|
|
Packit Service |
d2f85f |
\usepackage{beamerarticle} % needs to be loaded first
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(fontfamily)$
|
|
Packit Service |
d2f85f |
\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
\usepackage{lmodern}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(linestretch)$
|
|
Packit Service |
d2f85f |
\usepackage{setspace}
|
|
Packit Service |
d2f85f |
\setstretch{$linestretch$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\usepackage{amssymb,amsmath}
|
|
Packit Service |
d2f85f |
\usepackage{ifxetex,ifluatex}
|
|
Packit Service |
d2f85f |
\usepackage{fixltx2e} % provides \textsubscript
|
|
Packit Service |
d2f85f |
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
|
Packit Service |
d2f85f |
\usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
|
|
Packit Service |
d2f85f |
\usepackage[utf8]{inputenc}
|
|
Packit Service |
d2f85f |
\usepackage{textcomp} % provides euro and other symbols
|
|
Packit Service |
d2f85f |
\else % if luatex or xelatex
|
|
Packit Service |
d2f85f |
$if(mathspec)$
|
|
Packit Service |
d2f85f |
\ifxetex
|
|
Packit Service |
d2f85f |
\usepackage{mathspec}
|
|
Packit Service |
d2f85f |
\else
|
|
Packit Service |
d2f85f |
\usepackage{unicode-math}
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
\usepackage{unicode-math}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
|
|
Packit Service |
d2f85f |
$for(fontfamilies)$
|
|
Packit Service |
d2f85f |
\newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
|
|
Packit Service |
d2f85f |
$endfor$
|
|
Packit Service |
d2f85f |
$if(mainfont)$
|
|
Packit Service |
d2f85f |
\setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(sansfont)$
|
|
Packit Service |
d2f85f |
\setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(monofont)$
|
|
Packit Service |
d2f85f |
\setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(mathfont)$
|
|
Packit Service |
d2f85f |
$if(mathspec)$
|
|
Packit Service |
d2f85f |
\ifxetex
|
|
Packit Service |
d2f85f |
\setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
|
Packit Service |
d2f85f |
\else
|
|
Packit Service |
d2f85f |
\setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
\setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(CJKmainfont)$
|
|
Packit Service |
d2f85f |
\ifxetex
|
|
Packit Service |
d2f85f |
\usepackage{xeCJK}
|
|
Packit Service |
d2f85f |
\setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(luatexjapresetoptions)$
|
|
Packit Service |
d2f85f |
\ifluatex
|
|
Packit Service |
d2f85f |
\usepackage[$for(luatexjapresetoptions)$$luatexjapresetoptions$$sep$,$endfor$]{luatexja-preset}
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(CJKmainfont)$
|
|
Packit Service |
d2f85f |
\ifluatex
|
|
Packit Service |
d2f85f |
\usepackage[$for(luatexjafontspecoptions)$$luatexjafontspecoptions$$sep$,$endfor$]{luatexja-fontspec}
|
|
Packit Service |
d2f85f |
\setmainjfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
$if(theme)$
|
|
Packit Service |
d2f85f |
\usetheme[$for(themeoptions)$$themeoptions$$sep$,$endfor$]{$theme$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(colortheme)$
|
|
Packit Service |
d2f85f |
\usecolortheme{$colortheme$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(fonttheme)$
|
|
Packit Service |
d2f85f |
\usefonttheme{$fonttheme$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(mainfont)$
|
|
Packit Service |
d2f85f |
\usefonttheme{serif} % use mainfont rather than sansfont for slide text
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(innertheme)$
|
|
Packit Service |
d2f85f |
\useinnertheme{$innertheme$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(outertheme)$
|
|
Packit Service |
d2f85f |
\useoutertheme{$outertheme$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
% use upquote if available, for straight quotes in verbatim environments
|
|
Packit Service |
d2f85f |
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
|
|
Packit Service |
d2f85f |
% use microtype if available
|
|
Packit Service |
d2f85f |
\IfFileExists{microtype.sty}{%
|
|
Packit Service |
d2f85f |
\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
|
|
Packit Service |
d2f85f |
\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
|
|
Packit Service |
d2f85f |
}{}
|
|
Packit Service |
d2f85f |
$if(indent)$
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
\IfFileExists{parskip.sty}{%
|
|
Packit Service |
d2f85f |
\usepackage{parskip}
|
|
Packit Service |
d2f85f |
}{% else
|
|
Packit Service |
d2f85f |
\setlength{\parindent}{0pt}
|
|
Packit Service |
d2f85f |
\setlength{\parskip}{6pt plus 2pt minus 1pt}
|
|
Packit Service |
d2f85f |
}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(verbatim-in-note)$
|
|
Packit Service |
d2f85f |
\usepackage{fancyvrb}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(colorlinks)$
|
|
Packit Service |
d2f85f |
\usepackage{xcolor}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\usepackage{hyperref}
|
|
Packit Service |
d2f85f |
\hypersetup{
|
|
Packit Service |
d2f85f |
$if(title-meta)$
|
|
Packit Service |
d2f85f |
pdftitle={$title-meta$},
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(author-meta)$
|
|
Packit Service |
d2f85f |
pdfauthor={$author-meta$},
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(keywords)$
|
|
Packit Service |
d2f85f |
pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(colorlinks)$
|
|
Packit Service |
d2f85f |
colorlinks=true,
|
|
Packit Service |
d2f85f |
linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
|
|
Packit Service |
d2f85f |
citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
|
|
Packit Service |
d2f85f |
urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
pdfborder={0 0 0},
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
breaklinks=true}
|
|
Packit Service |
d2f85f |
\urlstyle{same} % don't use monospace font for urls
|
|
Packit Service |
d2f85f |
$if(verbatim-in-note)$
|
|
Packit Service |
d2f85f |
\VerbatimFootnotes % allows verbatim text in footnotes
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(geometry)$
|
|
Packit Service |
d2f85f |
\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
\newif\ifbibliography
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(listings)$
|
|
Packit Service |
d2f85f |
\usepackage{listings}
|
|
Packit Service |
d2f85f |
\newcommand{\passthrough}[1]{#1}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(lhs)$
|
|
Packit Service |
d2f85f |
\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(highlighting-macros)$
|
|
Packit Service |
d2f85f |
$highlighting-macros$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(tables)$
|
|
Packit Service |
d2f85f |
\usepackage{longtable,booktabs}
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
\usepackage{caption}
|
|
Packit Service |
d2f85f |
% These lines are needed to make table captions work with longtable:
|
|
Packit Service |
d2f85f |
\makeatletter
|
|
Packit Service |
d2f85f |
\def\fnum@table{\tablename~\thetable}
|
|
Packit Service |
d2f85f |
\makeatother
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
% Fix footnotes in tables (requires footnote package)
|
|
Packit Service |
d2f85f |
\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{longtable}}{}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(graphics)$
|
|
Packit Service |
d2f85f |
\usepackage{graphicx,grffile}
|
|
Packit Service |
d2f85f |
\makeatletter
|
|
Packit Service |
d2f85f |
\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
|
|
Packit Service |
d2f85f |
\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
|
|
Packit Service |
d2f85f |
\makeatother
|
|
Packit Service |
d2f85f |
% Scale images if necessary, so that they will not overflow the page
|
|
Packit Service |
d2f85f |
% margins by default, and it is still possible to overwrite the defaults
|
|
Packit Service |
d2f85f |
% using explicit options in \includegraphics[width, height, ...]{}
|
|
Packit Service |
d2f85f |
\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
% Prevent slide breaks in the middle of a paragraph:
|
|
Packit Service |
d2f85f |
\widowpenalties 1 10000
|
|
Packit Service |
d2f85f |
\raggedbottom
|
|
Packit Service |
d2f85f |
$if(section-titles)$
|
|
Packit Service |
d2f85f |
\setbeamertemplate{part page}{
|
|
Packit Service |
d2f85f |
\centering
|
|
Packit Service |
d2f85f |
\begin{beamercolorbox}[sep=16pt,center]{part title}
|
|
Packit Service |
d2f85f |
\usebeamerfont{part title}\insertpart\par
|
|
Packit Service |
d2f85f |
\end{beamercolorbox}
|
|
Packit Service |
d2f85f |
}
|
|
Packit Service |
d2f85f |
\setbeamertemplate{section page}{
|
|
Packit Service |
d2f85f |
\centering
|
|
Packit Service |
d2f85f |
\begin{beamercolorbox}[sep=12pt,center]{part title}
|
|
Packit Service |
d2f85f |
\usebeamerfont{section title}\insertsection\par
|
|
Packit Service |
d2f85f |
\end{beamercolorbox}
|
|
Packit Service |
d2f85f |
}
|
|
Packit Service |
d2f85f |
\setbeamertemplate{subsection page}{
|
|
Packit Service |
d2f85f |
\centering
|
|
Packit Service |
d2f85f |
\begin{beamercolorbox}[sep=8pt,center]{part title}
|
|
Packit Service |
d2f85f |
\usebeamerfont{subsection title}\insertsubsection\par
|
|
Packit Service |
d2f85f |
\end{beamercolorbox}
|
|
Packit Service |
d2f85f |
}
|
|
Packit Service |
d2f85f |
\AtBeginPart{
|
|
Packit Service |
d2f85f |
\frame{\partpage}
|
|
Packit Service |
d2f85f |
}
|
|
Packit Service |
d2f85f |
\AtBeginSection{
|
|
Packit Service |
d2f85f |
\ifbibliography
|
|
Packit Service |
d2f85f |
\else
|
|
Packit Service |
d2f85f |
\frame{\sectionpage}
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
}
|
|
Packit Service |
d2f85f |
\AtBeginSubsection{
|
|
Packit Service |
d2f85f |
\frame{\subsectionpage}
|
|
Packit Service |
d2f85f |
}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(links-as-notes)$
|
|
Packit Service |
d2f85f |
% Make links footnotes instead of hotlinks:
|
|
Packit Service |
d2f85f |
\DeclareRobustCommand{\href}[2]{#2\footnote{\url{#1}}}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(strikeout)$
|
|
Packit Service |
d2f85f |
\usepackage[normalem]{ulem}
|
|
Packit Service |
d2f85f |
% avoid problems with \sout in headers with hyperref:
|
|
Packit Service |
d2f85f |
\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\setlength{\emergencystretch}{3em} % prevent overfull lines
|
|
Packit Service |
d2f85f |
\providecommand{\tightlist}{%
|
|
Packit Service |
d2f85f |
\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
|
|
Packit Service |
d2f85f |
$if(numbersections)$
|
|
Packit Service |
d2f85f |
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
\setcounter{secnumdepth}{0}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
$if(subparagraph)$
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
% Redefines (sub)paragraphs to behave more like sections
|
|
Packit Service |
d2f85f |
\ifx\paragraph\undefined\else
|
|
Packit Service |
d2f85f |
\let\oldparagraph\paragraph
|
|
Packit Service |
d2f85f |
\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
\ifx\subparagraph\undefined\else
|
|
Packit Service |
d2f85f |
\let\oldsubparagraph\subparagraph
|
|
Packit Service |
d2f85f |
\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(pagestyle)$
|
|
Packit Service |
d2f85f |
\pagestyle{$pagestyle$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
% set default figure placement to htbp
|
|
Packit Service |
d2f85f |
\makeatletter
|
|
Packit Service |
d2f85f |
\def\fps@figure{htbp}
|
|
Packit Service |
d2f85f |
\makeatother
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$for(header-includes)$
|
|
Packit Service |
d2f85f |
$header-includes$
|
|
Packit Service |
d2f85f |
$endfor$
|
|
Packit Service |
d2f85f |
$if(lang)$
|
|
Packit Service |
d2f85f |
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
|
Packit Service |
d2f85f |
\usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
|
|
Packit Service |
d2f85f |
$if(babel-newcommands)$
|
|
Packit Service |
d2f85f |
$babel-newcommands$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\else
|
|
Packit Service |
d2f85f |
% load polyglossia as late as possible as it *could* call bidi if RTL lang (e.g. Hebrew or Arabic)
|
|
Packit Service |
d2f85f |
\usepackage{polyglossia}
|
|
Packit Service |
d2f85f |
\setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
|
|
Packit Service |
d2f85f |
$for(polyglossia-otherlangs)$
|
|
Packit Service |
d2f85f |
\setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
|
|
Packit Service |
d2f85f |
$endfor$
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(dir)$
|
|
Packit Service |
d2f85f |
\ifxetex
|
|
Packit Service |
d2f85f |
% load bidi as late as possible as it modifies e.g. graphicx
|
|
Packit Service |
d2f85f |
$if(latex-dir-rtl)$
|
|
Packit Service |
d2f85f |
\usepackage[RTLdocument]{bidi}
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
\usepackage{bidi}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
|
|
Packit Service |
d2f85f |
\TeXXeTstate=1
|
|
Packit Service |
d2f85f |
\newcommand{\RL}[1]{\beginR #1\endR}
|
|
Packit Service |
d2f85f |
\newcommand{\LR}[1]{\beginL #1\endL}
|
|
Packit Service |
d2f85f |
\newenvironment{RTL}{\beginR}{\endR}
|
|
Packit Service |
d2f85f |
\newenvironment{LTR}{\beginL}{\endL}
|
|
Packit Service |
d2f85f |
\fi
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(natbib)$
|
|
Packit Service |
d2f85f |
\usepackage[$natbiboptions$]{natbib}
|
|
Packit Service |
d2f85f |
\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(biblatex)$
|
|
Packit Service |
d2f85f |
\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
|
|
Packit Service |
d2f85f |
$for(bibliography)$
|
|
Packit Service |
d2f85f |
\addbibresource{$bibliography$}
|
|
Packit Service |
d2f85f |
$endfor$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$if(title)$
|
|
Packit Service |
d2f85f |
\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(subtitle)$
|
|
Packit Service |
d2f85f |
\providecommand{\subtitle}[1]{}
|
|
Packit Service |
d2f85f |
\subtitle{$subtitle$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(author)$
|
|
Packit Service |
d2f85f |
\author{$for(author)$$author$$sep$ \and $endfor$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(institute)$
|
|
Packit Service |
d2f85f |
\providecommand{\institute}[1]{}
|
|
Packit Service |
d2f85f |
\institute{$for(institute)$$institute$$sep$ \and $endfor$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\date{$date$}
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
$if(titlegraphic)$
|
|
Packit Service |
d2f85f |
\titlegraphic{\includegraphics{$titlegraphic$}}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(logo)$
|
|
Packit Service |
d2f85f |
\logo{\includegraphics{$logo$}}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
\begin{document}
|
|
Packit Service |
d2f85f |
$if(title)$
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
\frame{\titlepage}
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
\maketitle
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(abstract)$
|
|
Packit Service |
d2f85f |
\begin{abstract}
|
|
Packit Service |
d2f85f |
$abstract$
|
|
Packit Service |
d2f85f |
\end{abstract}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$for(include-before)$
|
|
Packit Service |
d2f85f |
$include-before$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$endfor$
|
|
Packit Service |
d2f85f |
$if(toc)$
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
\begin{frame}
|
|
Packit Service |
d2f85f |
\tableofcontents[hideallsubsections]
|
|
Packit Service |
d2f85f |
\end{frame}
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
{
|
|
Packit Service |
d2f85f |
$if(colorlinks)$
|
|
Packit Service |
d2f85f |
\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\setcounter{tocdepth}{$toc-depth$}
|
|
Packit Service |
d2f85f |
\tableofcontents
|
|
Packit Service |
d2f85f |
}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(lot)$
|
|
Packit Service |
d2f85f |
\listoftables
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(lof)$
|
|
Packit Service |
d2f85f |
\listoffigures
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$body$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$if(natbib)$
|
|
Packit Service |
d2f85f |
$if(bibliography)$
|
|
Packit Service |
d2f85f |
$if(biblio-title)$
|
|
Packit Service |
d2f85f |
$if(book-class)$
|
|
Packit Service |
d2f85f |
\renewcommand\bibname{$biblio-title$}
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
\renewcommand\refname{$biblio-title$}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
\begin{frame}[allowframebreaks]{$biblio-title$}
|
|
Packit Service |
d2f85f |
\bibliographytrue
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
\end{frame}
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$if(biblatex)$
|
|
Packit Service |
d2f85f |
$if(beamer)$
|
|
Packit Service |
d2f85f |
\begin{frame}[allowframebreaks]{$biblio-title$}
|
|
Packit Service |
d2f85f |
\bibliographytrue
|
|
Packit Service |
d2f85f |
\printbibliography[heading=none]
|
|
Packit Service |
d2f85f |
\end{frame}
|
|
Packit Service |
d2f85f |
$else$
|
|
Packit Service |
d2f85f |
\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$endif$
|
|
Packit Service |
d2f85f |
$for(include-after)$
|
|
Packit Service |
d2f85f |
$include-after$
|
|
Packit Service |
d2f85f |
|
|
Packit Service |
d2f85f |
$endfor$
|
|
Packit Service |
d2f85f |
\end{document}
|