aboutsummaryrefslogtreecommitdiff
path: root/default.beamer
diff options
context:
space:
mode:
authorchrisersen <chrisersen@gmail.com>2012-05-31 10:09:31 +0300
committerJohn MacFarlane <jgm@berkeley.edu>2012-07-22 10:56:50 -0700
commitfbe83545996515a91025f829a5a328312d69793b (patch)
tree7a12381c3327bd69f8d1ef9a01b60b4ed53f56fd /default.beamer
parent4b27abf40461c7421c3a14cd5547a9018eb1acca (diff)
downloadpandoc-fbe83545996515a91025f829a5a328312d69793b.tar.gz
Resize pictures that are wider than \linewidth solution from: http://tex.stackexchange.com/a/6077
Diffstat (limited to 'default.beamer')
-rw-r--r--default.beamer10
1 files changed, 10 insertions, 0 deletions
diff --git a/default.beamer b/default.beamer
index fffd02d39..0926768e1 100644
--- a/default.beamer
+++ b/default.beamer
@@ -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: