From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [ox-latex] Bad default value for image width? Date: Mon, 08 Apr 2013 21:35:33 +0200 Message-ID: <87ehekyfwa.fsf@bzg.ath.cx> References: <87haji85a7.fsf@pank.iue.private> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([208.118.235.92]:45170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPHqv-0003HO-3g for emacs-orgmode@gnu.org; Mon, 08 Apr 2013 15:35:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UPHqq-0003x0-9Q for emacs-orgmode@gnu.org; Mon, 08 Apr 2013 15:35:41 -0400 Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:53209) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UPHqq-0003wj-22 for emacs-orgmode@gnu.org; Mon, 08 Apr 2013 15:35:36 -0400 Received: by mail-wi0-f174.google.com with SMTP id hj8so2951516wib.1 for ; Mon, 08 Apr 2013 12:35:35 -0700 (PDT) In-Reply-To: <87haji85a7.fsf@pank.iue.private> (rasmus@gmx.us's message of "Sun, 07 Apr 2013 22:17:04 +0200") 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: Rasmus Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Hi Rasmus, Rasmus 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? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=ox-latex-tikz-width.patch 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") --=-=-= Content-Type: text/plain -- Bastien --=-=-=--