diff options
author | Yihui Xie <xie@yihui.name> | 2014-04-11 17:22:45 -0500 |
---|---|---|
committer | Yihui Xie <xie@yihui.name> | 2014-04-11 17:22:45 -0500 |
commit | a3cce8d3594fd5da7a83c9926e39eb3ec210b83b (patch) | |
tree | f22c73d1cf184ade166207bcfff9dd02357a11fa /default.slideous | |
parent | 2afb0792ba411006f51cd078fb7c409f0df19dbb (diff) | |
download | pandoc-a3cce8d3594fd5da7a83c9926e39eb3ec210b83b.tar.gz |
Use \setkeys{Gin}{} to set appropriate defaults for \includegraphics, instead of entirely redefining this command.
Note we also consider the height of images; if an image is too high, 0.8\textheight will be used for beamer slides, and \textheight is used for articles (see http://tex.stackexchange.com/q/11954/9128).
If the user has explicitly provided the width/height options in \includegraphics[], our defaults will be overwritten, and this approach is better than the check `\@ifnextchar[` after \includegraphics because the latter approach simply gives up everything once it sees [, whereas \setkeys{Gin} can keep the good defaults unless they are explicitly overwritten in [].
closes #30, closes #28, and closes #26
Diffstat (limited to 'default.slideous')
0 files changed, 0 insertions, 0 deletions