From mboxrd@z Thu Jan 1 00:00:00 1970 From: aaronecay@gmail.com Subject: Re: [BUG] attr_latex in new exporter Date: Fri, 08 Mar 2013 12:38:17 -0500 Message-ID: <87zjydkd12.fsf@gmail.com> References: <87k3pi18pf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39563) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE1FQ-0000tr-ST for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 12:38:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UE1FL-0003J7-Pv for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 12:38:24 -0500 Received: from mail-qc0-x22d.google.com ([2607:f8b0:400d:c01::22d]:54847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UE1FL-0003Ip-LB for emacs-orgmode@gnu.org; Fri, 08 Mar 2013 12:38:19 -0500 Received: by mail-qc0-f173.google.com with SMTP id b12so647400qca.18 for ; Fri, 08 Mar 2013 09:38:19 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: Org-mode , Nicolas Goaziou 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=E2=80=99m not sure I understand the logic behind (memq float '(f= igure 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=E2=80=99t see why it shoudl ma= ke a difference whether the image is floating or not. --=20 Aaron Ecay