From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: behavior of org-image-actual-size with units in attr_* :width Date: Wed, 01 Oct 2014 21:26:42 +0200 Message-ID: <877g0j8ubx.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZPXM-00025B-SY for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 15:26:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XZPXD-00013X-Fs for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 15:26:08 -0400 Received: from relay5-d.mail.gandi.net ([2001:4b98:c:538::197]:54936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XZPXD-000137-9r for emacs-orgmode@gnu.org; Wed, 01 Oct 2014 15:25:59 -0400 In-Reply-To: (John Kitchin's message of "Tue, 30 Sep 2014 17:09:12 -0400") 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: John Kitchin Cc: emacs-orgmode@gnu.org Hello, John Kitchin writes: > I have set this in my init file > > (setq org-image-actual-width '(600)) > > It works great, unless I use: > #+attr_latex: :width 4in > > This makes my images 4 inches wide in LaTeX, but it sets my images to > approximately 4 pixels wide! > > I feel like it is worth modifying the regexp that gets the width to > catch these cases and fall back on the variable value when they > exist. Any thoughts? I wonder if this kludge makes any sense in the general case. As you noticed, units given in a LaTeX attributes line will probably be different from pixels. What about limiting the regexp to ATTR_HTML lines only? Regards, -- Nicolas Goaziou