Revert "LaTeX writer: Add keepaspectratio to includegraphics..."

This reverts commit 171187a452.
This commit is contained in:
John MacFarlane 2017-12-01 13:51:00 -08:00
parent 3f1f9536d4
commit b2a190546d
2 changed files with 2 additions and 7 deletions

View file

@ -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)

View file

@ -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}
```