diff options
Diffstat (limited to 'templates/default.latex')
-rw-r--r-- | templates/default.latex | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/templates/default.latex b/templates/default.latex index e56583392..d244ef7b9 100644 --- a/templates/default.latex +++ b/templates/default.latex @@ -1,4 +1,4 @@ -\documentclass$if(fontsize)$[$fontsize$]$endif${article} +\documentclass[$if(fontsize)$$fontsize$,$endif$]{$documentclass$} \usepackage{amssymb,amsmath} \usepackage{ifxetex,ifluatex} \ifxetex @@ -22,10 +22,15 @@ $if(biblio-files)$ \bibliography{$biblio-files$} $endif$ $endif$ -$if(lhs)$ +$if(listings)$ \usepackage{listings} +$endif$ +$if(lhs)$ \lstnewenvironment{code}{\lstset{language=Haskell,basicstyle=\small\ttfamily}}{} $endif$ +$if(highlighting-macros)$ +$highlighting-macros$ +$endif$ $if(verbatim-in-note)$ \usepackage{fancyvrb} $endif$ @@ -60,9 +65,13 @@ $endif$ \ifxetex \usepackage[setpagesize=false, % page size defined by xetex unicode=false, % unicode breaks when used with xetex - xetex]{hyperref} + xetex, + colorlinks=true, + linkcolor=blue]{hyperref} \else - \usepackage[unicode=true]{hyperref} + \usepackage[unicode=true, + colorlinks=true, + linkcolor=blue]{hyperref} \fi \hypersetup{breaklinks=true, pdfborder={0 0 0}} $if(strikeout)$ @@ -76,9 +85,6 @@ $endif$ \setlength{\parindent}{0pt} \setlength{\parskip}{6pt plus 2pt minus 1pt} \setlength{\emergencystretch}{3em} % prevent overfull lines -$if(listings)$ -\usepackage{listings} -$endif$ $if(numbersections)$ $else$ \setcounter{secnumdepth}{0} @@ -86,6 +92,9 @@ $endif$ $if(verbatim-in-note)$ \VerbatimFootnotes % allows verbatim text in footnotes $endif$ +$if(lang)$ +\usepackage[$lang$]{babel} +$endif$ $for(header-includes)$ $header-includes$ $endfor$ |