From 1193c1a505aac616d41a7b1c61c0cde07d2560d2 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 1 Dec 2017 21:18:29 -0800 Subject: 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. --- test/command/3450.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/command') 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} ``` -- cgit v1.2.3