diff options
author | chrisersen <chrisersen@gmail.com> | 2012-05-31 10:09:31 +0300 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2012-07-22 10:56:50 -0700 |
commit | fbe83545996515a91025f829a5a328312d69793b (patch) | |
tree | 7a12381c3327bd69f8d1ef9a01b60b4ed53f56fd /default.beamer | |
parent | 4b27abf40461c7421c3a14cd5547a9018eb1acca (diff) | |
download | pandoc-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.beamer | 10 |
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: |