From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [Babel] Library calls and begin_example Date: Sat, 16 Oct 2010 08:59:03 -0600 Message-ID: <87lj5yp4js.fsf@gmail.com> References: <1EB2B610-4AE1-4744-BE05-73427497A5F2@tsdye.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=60585 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P78E2-0005V1-WE for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 10:59:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P78E1-0005fE-Rr for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 10:59:10 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:63225) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P78E1-0005fA-Na for emacs-orgmode@gnu.org; Sat, 16 Oct 2010 10:59:09 -0400 Received: by ywh1 with SMTP id 1so1219412ywh.0 for ; Sat, 16 Oct 2010 07:59:09 -0700 (PDT) In-Reply-To: <1EB2B610-4AE1-4744-BE05-73427497A5F2@tsdye.com> (Thomas S. Dye's message of "Fri, 15 Oct 2010 16:55:06 -1000") 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: "Thomas S. Dye" Cc: emacs-orgmode mailing list Hi Tom, See the "Evaluating code blocks" section of the manual for information on how to pass header arguments to #+call: lines http://orgmode.org/manual/Evaluating-code-blocks.html#Evaluating-code-blocks something like #+lob: elispgantt(table=gantttest) :results latex should work Cheers -- Eric "Thomas S. Dye" writes: > Aloha all, > > I'm working with Eric Fraga's GANTT chart code, posted here recently. > I'd like to move it into the Library of Babel so I can call it from > any Org-mode buffer. Here is the (modified) header: > > #+source: elispgantt > #+begin_src emacs-lisp :var table=gantttest :results output latex > :exports code > > When this code is in the Org-mode buffer, the results are wrapped in > BEGIN_latex ... END_latex, which is just what I want. > > When the same code is in the Library of Babel and is called like this: > > #+lob: elispgantt(table=gantttest) > > the results are wrapped in begin_example ... end_example, which is not > what I want. > > How can I get the LOB code to perform like its in-buffer sibling and > wrap the output in BEGIN_latex ... END_latex? > > All the best, > Tom > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode