From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: new exporter and latex attributes Date: Tue, 21 Aug 2012 00:54:25 +0200 Message-ID: <87y5l9cgym.fsf@gmail.com> References: <20120820212833.GB66157@BigDog.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55307) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3avL-0008ME-Tq for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 18:58:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3avK-0006cf-Oh for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 18:58:19 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:57236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3avK-0006cZ-IT for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 18:58:18 -0400 Received: by weys10 with SMTP id s10so4785057wey.0 for ; Mon, 20 Aug 2012 15:58:16 -0700 (PDT) In-Reply-To: <20120820212833.GB66157@BigDog.local> (Rick Frankel's message of "Mon, 20 Aug 2012 17:28:33 -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: emacs-orgmode@gnu.org Hello, Rick Frankel writes: > Has the syntax for latex attributes changed in the new exporter, or is > is the following a bug? Neither. Though, at some point, I'd like to change syntax for LaTeX attributes for a plist-based one. > Given this source file: > > * Test width attribute > #+ATTR_LATEX: width=3in > #+begin_src dot :file t.png > digraph g { a -> b } > #+end_src > > #+results: [[file:t.png]] > > The old exporter generats: > #+begin_src latex > \includegraphics[width=3in]{t.png} > #+end_src > > And the new exporter > #+begin_src latex > \includegraphics[width=.9\linewidth]{t.png} > #+end_src > > which ignores the width override. "width" is an attribute for the file, but it means nothing for the source code. Use something like the following. * Test width attribute #+NAME: graph #+begin_src dot :file t.png digraph g { a -> b } #+end_src #+ATTR_LATEX: width=3in #+RESULTS: graph [[file:t.png]] Regards, -- Nicolas Goaziou