Hi Rasmus,

Rasmus <ras...@gmx.us> writes:

> And I can't seem to set width to nothing. . .  

The attached patch should fix at least one problem: you should be
able to set the width manually now.

As for the default value of `org-latex-image-default-width' I tend
to agree, but maybe there are side-effects when setting this to nil.

Nicolas, what do you think?

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 9c04695..b7ed687 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1812,7 +1812,7 @@ used as a communication channel."
 	 (comment-include (if (plist-get attr :comment-include) "%" ""))
 	 ;; It is possible to specify width and height in the
 	 ;; ATTR_LATEX line, and also via default variables.
-	 (width (cond ((plist-get attr :width))
+	 (width (cond ((plist-get attr :width) (plist-get attr :width))
 		      ((plist-get attr :height) "")
 		      ((eq float 'figure) "0.7\\textwidth")
 		      ((eq float 'wrap) "0.48\\textwidth")
-- 
 Bastien

Reply via email to