LaTeX: Don't include \maxwidth in beamer.
It causes an error when you include an image.
This commit is contained in:
parent
438c5c3ea8
commit
b8385d84d7
1 changed files with 3 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue