From 9f199556ef1c12f37490bf84df7499f4b1b31e79 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 29 Dec 2011 13:25:36 -0800 Subject: [PATCH] LaTeX template: Changes to allow beamer output. --- default.latex | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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$