Browse Source

ox-latex: Don't insert a default width when height is provided in a figure environment

* lisp/ox-latex.el (org-latex--inline-image): Don't insert a default
  width when height is provided in a figure environment.

Thanks to Aaron Ecay for the patch.
Nicolas Goaziou 12 years ago
parent
commit
1d6aba908b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lisp/ox-latex.el

+ 1 - 1
lisp/ox-latex.el

@@ -1811,9 +1811,9 @@ used as a communication channel."
 	 ;; It is possible to specify width and height in the
 	 ;; ATTR_LATEX line, and also via default variables.
 	 (width (format "%s" (cond ((plist-get attr :width))
+				   ((plist-get attr :height) "")
 				   ((eq float 'figure) "0.7\\textwidth")
 				   ((eq float 'wrap) "0.48\\textwidth")
-				   ((plist-get attr :height) "")
 				   (t org-latex-image-default-width))))
 	 (height (format "%s" (cond ((plist-get attr :height))
 				    ((or (plist-get attr :width)