diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2012-01-30 09:17:09 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2012-01-30 09:17:09 -0800 |
commit | b8385d84d7e43abbbdfbc17fc27dba6c56e14c9e (patch) | |
tree | 5b1195f93a26132a76b0b722de63345574f04b19 /default.latex | |
parent | 438c5c3ea863b5a1b63d3280e8667e14ee3cc7d2 (diff) | |
download | pandoc-b8385d84d7e43abbbdfbc17fc27dba6c56e14c9e.tar.gz |
LaTeX: Don't include \maxwidth in beamer.
It causes an error when you include an image.
Diffstat (limited to 'default.latex')
-rw-r--r-- | default.latex | 3 |
1 files changed, 3 insertions, 0 deletions
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: |