From b8385d84d7e43abbbdfbc17fc27dba6c56e14c9e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 30 Jan 2012 09:17:09 -0800 Subject: LaTeX: Don't include \maxwidth in beamer. It causes an error when you include an image. --- default.latex | 3 +++ 1 file changed, 3 insertions(+) diff --git a/default.latex b/default.latex index 0c5ca20a1..e12002651 100644 --- a/default.latex +++ b/default.latex @@ -58,6 +58,8 @@ $if(url)$ $endif$ $if(graphics)$ \usepackage{graphicx} +$if(beamer)$ +$else$ % We will generate all images so they have a width \maxwidth. This means % that they will get their normal width if they fit onto the page, but % are scaled down if they would overflow the margins. @@ -68,6 +70,7 @@ $if(graphics)$ \let\Oldincludegraphics\includegraphics \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}} $endif$ +$endif$ $if(beamer)$ % Comment these out if you don't want a slide with just the % part/section/subsection/subsubsection title: -- cgit v1.2.3