From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: new exporter and latex attributes Date: Tue, 21 Aug 2012 01:34:16 -0400 Message-ID: <25173.1345527256@alphaville> References: <20120820212833.GB66157@BigDog.local> <87y5l9cgym.fsf@gmail.com> <20120821005529.GB87759@BigDog.local> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3h6d-0004Zo-FI for emacs-orgmode@gnu.org; Tue, 21 Aug 2012 01:34:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T3h6a-00029X-Uz for emacs-orgmode@gnu.org; Tue, 21 Aug 2012 01:34:23 -0400 Received: from g4t0017.houston.hp.com ([15.201.24.20]:38592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T3h6a-00029F-Ns for emacs-orgmode@gnu.org; Tue, 21 Aug 2012 01:34:20 -0400 Received: from g4t0009.houston.hp.com (g4t0009.houston.hp.com [16.234.32.26]) by g4t0017.houston.hp.com (Postfix) with ESMTP id 9E7393813A for ; Tue, 21 Aug 2012 05:34:19 +0000 (UTC) Received: from ldl (ldl.usa.hp.com [16.125.112.222]) by g4t0009.houston.hp.com (Postfix) with ESMTP id 92087C007 for ; Tue, 21 Aug 2012 05:34:19 +0000 (UTC) Received: from localhost (ldl.fc.hp.com [127.0.0.1]) by ldl (Postfix) with ESMTP id 36D93CF001E for ; Mon, 20 Aug 2012 23:34:19 -0600 (MDT) Received: from ldl ([127.0.0.1]) by localhost (ldl.fc.hp.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oYRG8H1iONGs for ; Mon, 20 Aug 2012 23:34:19 -0600 (MDT) Received: from alphaville.dokosmarshall.org (lart.usa.hp.com [16.125.112.221]) by ldl (Postfix) with ESMTP id B9D52CF0022 for ; Mon, 20 Aug 2012 23:34:18 -0600 (MDT) Received: from alphaville (localhost [127.0.0.1]) by alphaville.dokosmarshall.org (Postfix) with ESMTP id 45A7440DE2 for ; Tue, 21 Aug 2012 01:34:16 -0400 (EDT) In-Reply-To: Message from Rick Frankel of "Mon, 20 Aug 2012 20:55:29 EDT." <20120821005529.GB87759@BigDog.local> 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 Rick Frankel wrote: > 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=. > Named source blocks will refresh the corresponding named results blocks anywhere in the file: they don't produce a new set each time they are executed and it doesn't matter whether they are "disconnected". I'm not sure how far back this behavior goes, but it is how current (well, slightly out-of-date but not too much) master-branch org behaves. Nick Org-mode version 7.8.11 (release_7.8.11-501-gc4050a @ /home/nick/elisp/org-mode/lisp/)