From b2a190546d9f8bbc853b5e65539093275252e0ef Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Fri, 1 Dec 2017 13:51:00 -0800 Subject: Revert "LaTeX writer: Add keepaspectratio to includegraphics..." This reverts commit 171187a4527497701b3c77bd56cea2d770d4e3b0. --- src/Text/Pandoc/Writers/LaTeX.hs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src') 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) -- cgit v1.2.3