From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: new exporter and latex attributes Date: Mon, 20 Aug 2012 20:55:29 -0400 Message-ID: <20120821005529.GB87759@BigDog.local> References: <20120820212833.GB66157@BigDog.local> <87y5l9cgym.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3cqU-0005Lj-8K for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 21:01:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3cqT-0000Om-8k for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 21:01:26 -0400 Received: from [204.62.15.78] (port=53666 helo=mail.rickster.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3ckk-0007Kp-BP for emacs-orgmode@gnu.org; Mon, 20 Aug 2012 20:55:30 -0400 Received: from BigDog.local (pool-173-56-80-44.nycmny.fios.verizon.net [173.56.80.44]) by mail.rickster.com (Postfix) with ESMTPS id 5F98D20D84 for ; Mon, 20 Aug 2012 20:55:30 -0400 (EDT) Content-Disposition: inline In-Reply-To: <87y5l9cgym.fsf@gmail.com> 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 On Tue, Aug 21, 2012 at 12:54:25AM +0200, Nicolas Goaziou wrote: > 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. > > 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]] > > That doesn't make sense. In the current exporter, all attributes (html, latex, etc) applied to the export are placed directly before the source block. If you have to run the source block and then place the attributes just before the results line you disconnect the results from the source block, and the next time the source block is evaluated a second results block will be added to the file. Babel doesn't allow for anything between =#+end_src= and =#+results=. rick