1\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
3\usepackage{beamerarticle} % needs to be loaded first
6\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
12\setstretch{$linestretch$}
14\usepackage{amssymb,amsmath}
15\usepackage{ifxetex,ifluatex}
16\usepackage{fixltx2e} % provides \textsubscript
17\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
18 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
19 \usepackage[utf8]{inputenc}
23\else % if luatex or xelatex
28 \usepackage{unicode-math}
31 \usepackage{unicode-math}
33 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
35 \newfontfamily{$fontfamilies.name$}[$fontfamilies.options$]{$fontfamilies.font$}
41 \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
44 \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
47 \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
52 \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
54 \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
57 \setmathfont[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
62 \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
65% use upquote if available, for straight quotes in verbatim environments
66\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
67% use microtype if available
68\IfFileExists{microtype.sty}{%
69\usepackage[$for(microtypeoptions)$$microtypeoptions$$sep$,$endfor$]{microtype}
70\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
72\PassOptionsToPackage{hyphens}{url} % url is loaded by hyperref
76\usepackage[unicode=true]{hyperref}
78\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
82 pdftitle={$title-meta$},
85 pdfauthor={$author-meta$},
88 pdfkeywords={$for(keywords)$$keywords$$sep$, $endfor$},
92 linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
93 citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
94 urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
99\urlstyle{same} % don't use monospace font for urls
100$if(verbatim-in-note)$
101\VerbatimFootnotes % allows verbatim text in footnotes
104\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
107\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
108 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
109$if(babel-newcommands)$
113 \usepackage{polyglossia}
114 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
115$for(polyglossia-otherlangs)$
116 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
122\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
125\usepackage[$if(biblio-style)$style=$biblio-style$,$endif$$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$]{biblatex}
127\addbibresource{$bibliography$}
134\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
136$if(highlighting-macros)$
140\usepackage{longtable,booktabs}
141% Fix footnotes in tables (requires footnote package)
142\IfFileExists{footnote.sty}{\usepackage{footnote}\makesavenoteenv{long table}}{}
145\usepackage{graphicx,grffile}
147\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
148\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
150% Scale images if necessary, so that they will not overflow the page
151% margins by default, and it is still possible to overwrite the defaults
152% using explicit options in \includegraphics[width, height, ...]{}
153\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
156% Make links footnotes instead of hotlinks:
157\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
160\usepackage[normalem]{ulem}
161% avoid problems with \sout in headers with hyperref:
162\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
166\IfFileExists{parskip.sty}{%
169\setlength{\parindent}{0pt}
170\setlength{\parskip}{6pt plus 2pt minus 1pt}
173\setlength{\emergencystretch}{3em} % prevent overfull lines
174\providecommand{\tightlist}{%
175 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
177\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
179\setcounter{secnumdepth}{0}
183% Redefines (sub)paragraphs to behave more like sections
184\ifx\paragraph\undefined\else
185\let\oldparagraph\paragraph
186\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
188\ifx\subparagraph\undefined\else
189\let\oldsubparagraph\subparagraph
190\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
195 % load bidi as late as possible as it modifies e.g. graphicx
197 \usepackage[RTLdocument]{bidi}
202\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
204 \newcommand{\RL}[1]{\beginR #1\endR}
205 \newcommand{\LR}[1]{\beginL #1\endL}
206 \newenvironment{RTL}{\beginR}{\endR}
207 \newenvironment{LTR}{\beginL}{\endL}
211% set default figure placement to htbp
216$for(header-includes)$
221\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
224\providecommand{\subtitle}[1]{}
228\author{$for(author)$$author$$sep$ \and $endfor$}
231\providecommand{\institute}[1]{}
232\institute{$for(institute)$$institute$$sep$ \and $endfor$}
253\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
255\setcounter{tocdepth}{$toc-depth$}
271\renewcommand\bibname{$biblio-title$}
273\renewcommand\refname{$biblio-title$}
276\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
281\printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list