From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] Re: org-babel: Meta-LaTeX-Python-Environment Date: Wed, 28 Oct 2009 16:19:02 -0600 Message-ID: References: <200910261327.09576.torsten.wagner@googlemail.com> <878wexheeq.fsf@stats.ox.ac.uk> <4edb2bbc0910270757i3911f817jd99bc68eb4639e31@mail.gmail.com> <87aazblctf.fsf_-_@stats.ox.ac.uk> <794E6720-7BB4-4AE9-BCDF-C5714E2808DA@tsdye.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N3GrJ-0006iN-7y for emacs-orgmode@gnu.org; Wed, 28 Oct 2009 18:19:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N3GrE-0006ba-Eb for Emacs-orgmode@gnu.org; Wed, 28 Oct 2009 18:19:12 -0400 Received: from [199.232.76.173] (port=53806 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N3GrE-0006bU-0x for Emacs-orgmode@gnu.org; Wed, 28 Oct 2009 18:19:08 -0400 Received: from mail-pz0-f192.google.com ([209.85.222.192]:56039) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N3GrD-0000i6-Np for Emacs-orgmode@gnu.org; Wed, 28 Oct 2009 18:19:07 -0400 Received: by mail-pz0-f192.google.com with SMTP id 30so903331pzk.24 for ; Wed, 28 Oct 2009 15:19:07 -0700 (PDT) In-Reply-To: (Thomas S. Dye's message of "Wed, 28 Oct 2009 08:46:22 -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: Dan Davison , Emacs-orgmode@gnu.org --=-=-= "Thomas S. Dye" writes: [...] > Eric, > > I think Torsten has a clearer idea than I do about what kinds of > programming structures might be appropriate here, but your suggestion > looks to me like an elegant replacement for the file based technique > I'm using to pass information into 'begin_src latex' blocks now. > Expanding the noweb syntax in the way you propose looks extremely > useful. I think it introduces an exciting range of possibilities into > the workflow I'm developing with org-babel. So, yes, your proposal > sounds appropriate to me. > > Tom This has now been implemented. To try it out grab the most recent version of Org-mode. Changes include - the ability to insert the *results* of source-code blocks through the use of noweb references in which the source-name is followed by ()s, and - the addition of the org-babel-latex.el file which should make it easier to add latex to the languages known to org-babel To try this out please run org-babel-tangle on the attached org-mode file. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=noweb-eval.org #+TITLE: Noweb Evaluation Test #+OPTIONS: num:nil ^:nil #+LaTeX_CLASS: normal * top more here #+srcname: noweb-example #+begin_src python :var a=0 a+10 #+end_src #+begin_src latex :tangle somewhere \begin{itemize} \item <> \item <> \item <> \end{itemize} #+end_src --=-=-= which should result in the attached .tex file --=-=-= Content-Type: application/x-tex Content-Disposition: attachment; filename=somewhere.tex % generated by org-babel-tangle % [[file:~/Desktop/noweb-eval.org::*top][block-2]] \begin{itemize} \item a+10 \item 10 \item 18 \end{itemize} % block-2 ends here --=-=-= Let me know if I should make any changes to this new setup. Thanks for the ideas. -- Eric --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --=-=-=--