Hi Thomas,

I think the following patch (on top of current master) will fix the
problem:
-----cut-here-----
diff --git c/lisp/ox-latex.el w/lisp/ox-latex.el
index d17dd60..eefb272 100644
--- c/lisp/ox-latex.el
+++ w/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))
-                                  ((eq float 'figure) "0.7\\textwidth")
+                                   ((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)
-----cut-here-----

Nicolas, I’m not sure I understand the logic behind (memq float '(figure
wrap)) in the cond for setting height.  I think that it would be very
rare for someone to set the default height to something other than "",
but in the event that the user does so I don’t see why it shoudl make a
difference whether the image is floating or not.

-- 
Aaron Ecay

Reply via email to