From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: [Babel] Library calls and begin_example Date: Fri, 15 Oct 2010 16:55:06 -1000 Message-ID: <1EB2B610-4AE1-4744-BE05-73427497A5F2@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=39231 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6wvS-0003dU-Kx for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 22:55:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6wvR-0005Kk-NV for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 22:55:14 -0400 Received: from oproxy3-pub.bluehost.com ([69.89.21.8]:37462) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1P6wvR-0005KB-Gg for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 22:55:13 -0400 Received: from cpe-66-91-68-127.hawaii.res.rr.com ([66.91.68.127] helo=[192.168.1.4]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1P6wvM-0007yI-Ib for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 20:55:09 -0600 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: emacs-orgmode mailing list 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