Revert "LaTeX writer: Add keepaspectratio to includegraphics..."
This reverts commit 171187a452
.
This commit is contained in:
parent
3f1f9536d4
commit
b2a190546d
2 changed files with 2 additions and 7 deletions
|
@ -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)
|
||||
|
|
|
@ -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}
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue