diff options
author | John MacFarlane <jgm@berkeley.edu> | 2017-12-01 13:51:00 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-12-01 13:51:33 -0800 |
commit | b2a190546d9f8bbc853b5e65539093275252e0ef (patch) | |
tree | 4cc154ce848def94918368000e7d0f533655a1b1 | |
parent | 3f1f9536d4817bbdd797c01050a887fe4cdf347c (diff) | |
download | pandoc-b2a190546d9f8bbc853b5e65539093275252e0ef.tar.gz |
Revert "LaTeX writer: Add keepaspectratio to includegraphics..."
This reverts commit 171187a4527497701b3c77bd56cea2d770d4e3b0.
-rw-r--r-- | src/Text/Pandoc/Writers/LaTeX.hs | 7 | ||||
-rw-r--r-- | test/command/3450.md | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/Text/Pandoc/Writers/LaTeX.hs b/src/Text/Pandoc/Writers/LaTeX.hs index 1972269ff..8620f989b 100644 --- a/src/Text/Pandoc/Writers/LaTeX.hs +++ b/src/Text/Pandoc/Writers/LaTeX.hs @@ -1125,12 +1125,7 @@ inlineToLaTeX (Image attr _ (source, _)) = do [d <> text (show dim)] Nothing -> [] - -- if we just have a width or a height, we add keepaspectratio: - keepaspectratio = case (dimension Height attr, dimension Width attr) of - (Nothing, Just _) -> ["keepaspectratio"] - (Just _, Nothing) -> ["keepaspectratio"] - _ -> [] - dimList = showDim Width ++ showDim Height ++ keepaspectratio + dimList = showDim Width ++ showDim Height dims = if null dimList then empty else brackets $ cat (intersperse "," dimList) diff --git a/test/command/3450.md b/test/command/3450.md index a8f713ed0..8759aa0c1 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,keepaspectratio]{lalune.jpg} +\includegraphics[height=2em]{lalune.jpg} ``` |