diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-12-01 21:18:29 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-12-01 21:18:29 -0800 |
commit | 1193c1a505aac616d41a7b1c61c0cde07d2560d2 (patch) | |
tree | 3ef5b5d680432b35c9f6e28c49fea4651734e9a1 /test | |
parent | 29ec13184ddb869038ca712e260e8a135992c8e9 (diff) | |
download | pandoc-1193c1a505aac616d41a7b1c61c0cde07d2560d2.tar.gz |
LaTeX writer: allow specifying just width or height for image size.
Previously both needed to be specified (unless the image was
being resized to be smaller than its original size).
If height but not width is specified, we now set width to
textwidth (and similarly if width but not height is specified).
Since we have keepaspectratio, this yields the desired result.
Diffstat (limited to 'test')
-rw-r--r-- | test/command/3450.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/command/3450.md b/test/command/3450.md index 8759aa0c1..5b35e1d9e 100644 --- a/test/command/3450.md +++ b/test/command/3450.md @@ -8,5 +8,5 @@ % pandoc -fmarkdown-implicit_figures -t latex ![image](lalune.jpg){height=2em} ^D -\includegraphics[height=2em]{lalune.jpg} +\includegraphics[width=\textwidth,height=2em]{lalune.jpg} ``` |