1\documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
3\usepackage[$for(fontfamilyoptions)$$fontfamilyoptions$$sep$,$endfor$]{$fontfamily$}
9\setstretch{$linestretch$}
11\usepackage{amssymb,amsmath}
12\usepackage{ifxetex,ifluatex}
13\usepackage{fixltx2e} % provides \textsubscript
14\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
15 \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
16 \usepackage[utf8]{inputenc}
20\else % if luatex or xelatex
26 \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
31 \setmainfont[$for(mainfontoptions)$$mainfontoptions$$sep$,$endfor$]{$mainfont$}
34 \setsansfont[$for(sansfontoptions)$$sansfontoptions$$sep$,$endfor$]{$sansfont$}
37 \setmonofont[Mapping=tex-ansi$if(monofontoptions)$,$for(monofontoptions)$$monofontoptions$$sep$,$endfor$$endif$]{$monofont$}
40 \setmathfont(Digits,Latin,Greek)[$for(mathfontoptions)$$mathfontoptions$$sep$,$endfor$]{$mathfont$}
44 \setCJKmainfont[$for(CJKoptions)$$CJKoptions$$sep$,$endfor$]{$CJKmainfont$}
47% use upquote if available, for straight quotes in verbatim environments
48\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
49% use microtype if available
50\IfFileExists{microtype.sty}{%
52\UseMicrotypeSet[protrusion]{basicmath} % disable protrusion for tt fonts
55\usepackage[$for(geometry)$$geometry$$sep$,$endfor$]{geometry}
59\PassOptionsToPackage{usenames,dvipsnames}{color} % color is loaded by hyperref
61\hypersetup{unicode=true,
63 pdftitle={$title-meta$},
66 pdfauthor={$author-meta$},
69 pdfkeywords={$for(keywords)$$keywords$$sep$; $endfor$},
73 linkcolor=$if(linkcolor)$$linkcolor$$else$Maroon$endif$,
74 citecolor=$if(citecolor)$$citecolor$$else$Blue$endif$,
75 urlcolor=$if(urlcolor)$$urlcolor$$else$Blue$endif$,
80\urlstyle{same} % don't use monospace font for urls
82\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
83 \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
84$if(babel-newcommands)$
88 \usepackage{polyglossia}
89 \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
90$for(polyglossia-otherlangs)$
91 \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
97\bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
100\usepackage$if(biblio-style)$[style=$biblio-style$]$endif${biblatex}
101$if(biblatexoptions)$\ExecuteBibliographyOptions{$for(biblatexoptions)$$biblatexoptions$$sep$,$endfor$}$endif$
103\addbibresource{$bibliography$}
110\lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{}
112$if(highlighting-macros)$
115$if(verbatim-in-note)$
117\VerbatimFootnotes % allows verbatim text in footnotes
120\usepackage{longtable,booktabs}
123\usepackage{graphicx,grffile}
125\def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth\else\Gin@nat@width\fi}
126\def\maxheight{\ifdim\Gin@nat@height>\textheight\textheight\else\Gin@nat@height\fi}
128% Scale images if necessary, so that they will not overflow the page
129% margins by default, and it is still possible to overwrite the defaults
130% using explicit options in \includegraphics[width, height, ...]{}
131\setkeys{Gin}{width=\maxwidth,height=\maxheight,keepaspectratio}
134% Make links footnotes instead of hotlinks:
135\renewcommand{\href}[2]{#2\footnote{\url{#1}}}
138\usepackage[normalem]{ulem}
139% avoid problems with \sout in headers with hyperref:
140\pdfstringdefDisableCommands{\renewcommand{\sout}{}}
144\IfFileExists{parskip.sty}{%
147\setlength{\parindent}{0pt}
148\setlength{\parskip}{6pt plus 2pt minus 1pt}
151\setlength{\emergencystretch}{3em} % prevent overfull lines
152\providecommand{\tightlist}{%
153 \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
155\setcounter{secnumdepth}{5}
157\setcounter{secnumdepth}{0}
161% Redefines (sub)paragraphs to behave more like sections
162\ifx\paragraph\undefined\else
163\let\oldparagraph\paragraph
164\renewcommand{\paragraph}[1]{\oldparagraph{#1}\mbox{}}
166\ifx\subparagraph\undefined\else
167\let\oldsubparagraph\subparagraph
168\renewcommand{\subparagraph}[1]{\oldsubparagraph{#1}\mbox{}}
173 % load bidi as late as possible as it modifies e.g. graphicx
175 \usepackage[RTLdocument]{bidi}
180\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
182 \newcommand{\RL}[1]{\beginR #1\endR}
183 \newcommand{\LR}[1]{\beginL #1\endL}
184 \newenvironment{RTL}{\beginR}{\endR}
185 \newenvironment{LTR}{\beginL}{\endL}
188$for(header-includes)$
193\title{$title$$if(thanks)$\thanks{$thanks$}$endif$}
196\providecommand{\subtitle}[1]{}
200\author{$for(author)$$author$$sep$ \and $endfor$}
203\institute{$for(institute)$$institute$$sep$ \and $endfor$}
224\hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
226\setcounter{tocdepth}{$toc-depth$}
242\renewcommand\bibname{$biblio-title$}
244\renewcommand\refname{$biblio-title$}
247\bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
252\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