summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-12-01 21:18:29 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2017-12-01 21:18:29 -0800
commit1193c1a505aac616d41a7b1c61c0cde07d2560d2 (patch)
tree3ef5b5d680432b35c9f6e28c49fea4651734e9a1 /test
parent29ec13184ddb869038ca712e260e8a135992c8e9 (diff)
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.md2
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}
```