LaTeX template: Changes to allow beamer output.

This commit is contained in:
John MacFarlane 2011-12-29 13:25:36 -08:00
parent 078a3d3afa
commit 9f199556ef

View file

@ -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{amssymb,amsmath}
\usepackage{ifxetex,ifluatex} \usepackage{ifxetex,ifluatex}
\ifxetex \ifxetex
@ -62,6 +68,8 @@ $if(graphics)$
\let\Oldincludegraphics\includegraphics \let\Oldincludegraphics\includegraphics
\renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}} \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
$endif$ $endif$
$if(beamer)$
$else$
\ifxetex \ifxetex
\usepackage[setpagesize=false, % page size defined by xetex \usepackage[setpagesize=false, % page size defined by xetex
unicode=false, % unicode breaks when used with xetex unicode=false, % unicode breaks when used with xetex
@ -70,6 +78,7 @@ $endif$
\usepackage[unicode=true]{hyperref} \usepackage[unicode=true]{hyperref}
\fi \fi
\hypersetup{breaklinks=true, pdfborder={0 0 0}} \hypersetup{breaklinks=true, pdfborder={0 0 0}}
$endif$
$if(strikeout)$ $if(strikeout)$
\usepackage[normalem]{ulem} \usepackage[normalem]{ulem}
% avoid problems with \sout in headers with hyperref: % avoid problems with \sout in headers with hyperref:
@ -115,7 +124,13 @@ $include-before$
$endfor$ $endfor$
$if(toc)$ $if(toc)$
$if(beamer)$
\begin{frame}
\tableofcontents[hideallsubsections]
\end{frame}
$else$
\tableofcontents \tableofcontents
$endif$
$endif$ $endif$
$body$ $body$