summaryrefslogtreecommitdiff
path: root/templates/latex.template
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:18:14 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-12-31 01:18:14 +0000
commitade6d8a3fe3caab5811b1b2e0c1811e0d7faf49d (patch)
treee9dfa4b8c88b0b4865526a1467c353091db72002 /templates/latex.template
parentffed5c1cc310c4c377a73294514f5ac0cc682301 (diff)
Modified latex template to include bare minimum of packages.
Packages will be included only if they are needed, given what is in the document. So if you never use strikeout, you don't need to install the ulem package. Also moved amsmath to the top of the package list, made \maketitle conditional on a title being present, and adjusted spacing. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1738 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'templates/latex.template')
-rw-r--r--templates/latex.template22
1 files changed, 21 insertions, 1 deletions
diff --git a/templates/latex.template b/templates/latex.template
index 121537ef5..5441694cf 100644
--- a/templates/latex.template
+++ b/templates/latex.template
@@ -14,22 +14,40 @@ $endif$
\setlength{\parindent}{0pt}
\setlength{\parskip}{6pt plus 2pt minus 1pt}
$endif$
+$if(verbatim-in-note)$
\usepackage{fancyvrb}
+$endif$
+$if(fancy-enums)$
\usepackage{enumerate}
+$endif$
+$if(tables)$
\usepackage{array}
% This is needed because raggedright in table elements redefines \\:
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\let\PBS=\PreserveBackslash
+$endif$
+$if(strikeout)$
\usepackage[normalem]{ulem}
+$endif$
+$if(subscript)$
\newcommand{\textsubscr}[1]{\ensuremath{_{\scriptsize\textrm{#1}}}}
+$endif$
+$if(links)$
\usepackage[breaklinks=true]{hyperref}
+$endif$
+$if(url)$
\usepackage{url}
+$endif$
+$if(graphics)$
\usepackage{graphicx}
-\VerbatimFootnotes % allows verbatim text in footnotes
+$endif$
$if(numbersections)$
$else$
\setcounter{secnumdepth}{0}
$endif$
+$if(verbatim-in-note)$
+\VerbatimFootnotes % allows verbatim text in footnotes
+$endif$
$for(header-includes)$
$header-includes$
$endfor$
@@ -43,7 +61,9 @@ $if(date)$
$endif$
\begin{document}
+$if(title)$
\maketitle
+$endif$
$if(toc)$
\tableofcontents