aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--default.beamer4
1 files changed, 4 insertions, 0 deletions
diff --git a/default.beamer b/default.beamer
index 120bd81f3..5455cf804 100644
--- a/default.beamer
+++ b/default.beamer
@@ -53,6 +53,10 @@ $if(url)$
$endif$
$if(graphics)$
\usepackage{graphicx}
+% Redefine \includegraphics so that, unless explicit options are
+% given, the image width will not exceed the width of the page.
+% Images get their normal width if they fit onto the page, but
+% are scaled down if they would overflow the margins.
\makeatletter
\def\ScaleIfNeeded{%
\ifdim\Gin@nat@width>\linewidth