Permalink
Browse files

Resize pictures that are wider than \linewidth solution from: http://…

  • Loading branch information...
1 parent 4b27abf commit fbe83545996515a91025f829a5a328312d69793b @chrisersen chrisersen committed with May 31, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 default.beamer
View
@@ -53,6 +53,16 @@ $if(url)$
$endif$
$if(graphics)$
\usepackage{graphicx}
+\makeatletter
+\def\ScaleIfNeeded{%
+ \ifdim\Gin@nat@width>\linewidth
+ \linewidth
+ \else
+ \Gin@nat@width
+ \fi
+}
+\makeatother
+\setkeys{Gin}{width=\ScaleIfNeeded}
$endif$
% Comment these out if you don't want a slide with just the
% part/section/subsection/subsubsection title:

0 comments on commit fbe8354

Please sign in to comment.