From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] difference in export output if including file Date: Tue, 07 Sep 2010 23:52:48 -0600 Message-ID: <874oe0u6hb.fsf@gmail.com> References: <8762yl69nw.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=44393 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtDaZ-0002tE-5H for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 01:52:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtDaX-0006TM-FT for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 01:52:54 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:43964) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtDaX-0006TG-AS for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 01:52:53 -0400 Received: by ywl5 with SMTP id 5so3009612ywl.0 for ; Tue, 07 Sep 2010 22:52:52 -0700 (PDT) In-Reply-To: <8762yl69nw.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Sat, 04 Sep 2010 12:16:35 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric S Fraga Cc: org-mode mailing list Hi Eric, I've changed the hook through which code blocks are evaluated so that this evaluation now takes place after included files have been included. Hopefully this will fix the issue you mentioned. Best -- Eric Eric S Fraga writes: > Hello, > > I am using the plantuml babel interface to generate diagrams in a > document. If I have the following inline in my main document, > > #+CAPTION: Scenario generation and evaluation > #+LABEL: fig:scenario-evaluation-cycle > #+ATTR_LATEX: width=\linewidth > > #+srcname: flowchart > #+begin_src plantuml :file figures/scenario-to-network-and-evaluation.png :exports none > (*) --> "A node" > #+end_src > > #+results: flowchart > [[file:figures/scenario-to-network-and-evaluation.png]] > > this works fine and only the figure appears in the latex export. If, > however, I place this code in another org file and "#+include" that > file, the export includes the source code as well in the latex export. > > Can anybody please suggest how to fix this? Is this my fault somehow > or is this a bug in org or babel? > > Thanks, > eric > -- > Eric S Fraga > GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D