emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [BUG] attr_latex in new exporter


From: aaronecay
Subject: Re: [O] [BUG] attr_latex in new exporter
Date: Fri, 08 Mar 2013 12:38:17 -0500
User-agent: Notmuch/0.15.2+43~ge848af8 (http://notmuchmail.org) Emacs/24.3.50.1 (x86_64-unknown-linux-gnu)

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

[Prev in Thread] Current Thread [Next in Thread]