diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-29 13:25:36 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2011-12-29 13:25:36 -0800 |
commit | 9f199556ef1c12f37490bf84df7499f4b1b31e79 (patch) | |
tree | ece95369c9fc9b5d2f1b7f668395ddb4d62e5867 /default.latex | |
parent | 078a3d3afa7cd8abcceedcfc6166e4033fc90402 (diff) | |
download | pandoc-9f199556ef1c12f37490bf84df7499f4b1b31e79.tar.gz |
LaTeX template: Changes to allow beamer output.
Diffstat (limited to 'default.latex')
-rw-r--r-- | default.latex | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/default.latex b/default.latex index ba3a142b7..4bcf42358 100644 --- a/default.latex +++ b/default.latex @@ -1,4 +1,10 @@ -\documentclass$if(fontsize)$[$fontsize$]$endif${article} +\documentclass[$if(fontsize)$$fontsize$,$endif$$if(handout)$handout,$endif$]{$documentclass$} +$if(theme)$ +\usetheme{$theme$} +$endif$ +$if(colortheme)$ +\usecolortheme{$colortheme$} +$endif$ \usepackage{amssymb,amsmath} \usepackage{ifxetex,ifluatex} \ifxetex @@ -62,6 +68,8 @@ $if(graphics)$ \let\Oldincludegraphics\includegraphics \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}} $endif$ +$if(beamer)$ +$else$ \ifxetex \usepackage[setpagesize=false, % page size defined by xetex unicode=false, % unicode breaks when used with xetex @@ -70,6 +78,7 @@ $endif$ \usepackage[unicode=true]{hyperref} \fi \hypersetup{breaklinks=true, pdfborder={0 0 0}} +$endif$ $if(strikeout)$ \usepackage[normalem]{ulem} % avoid problems with \sout in headers with hyperref: @@ -115,7 +124,13 @@ $include-before$ $endfor$ $if(toc)$ +$if(beamer)$ +\begin{frame} +\tableofcontents[hideallsubsections] +\end{frame} +$else$ \tableofcontents +$endif$ $endif$ $body$ |