Re: [Orgmode] Using noweb with org-mode source

2011-01-05 Thread Christian Moe
Hi, Eric, Thanks, it's working now. I had tried ":results raw" before, and perhaps "replace" too. I had dropped them again, because it still didn't work. Why not was forehead-slappingly obvious after a good night's sleep... Hi, Phil, In addition to what Eric writes below (":results replace

Re: [Orgmode] Using noweb with org-mode source

2011-01-05 Thread Eric Schulte
Hi Christian, The following should remove the enclosing begin_src org blocks, and results in the org-mode exporting normally, rather than verbatim. Notice the :results header arguments on the last code block, such header arguments can be set on a file-wide basis to reduce code clutter. Best -- Er

Re: [Orgmode] Using noweb with org-mode source

2011-01-05 Thread Phil Branigan
Thanks, Suvaya and Christian, Unfortunately, neither of these two suggestions really does what I had hoped. Using INCLUDE files will certainly allow me to reuse my text and export to different documents, but at the cost of cluttering up my directories with a bunch of files which have no other pur

Re: [Orgmode] Using noweb with org-mode source

2011-01-05 Thread Christian Moe
Hi, This should get you part of the way: Use `org' as the language name, not `org-mode'. Enclose the noweb reference in another src block with noweb explicitly turned on. Reworked example follows. I can't seem to get rid of the code block around it, though, however I play with the header arg

Re: [Orgmode] Using noweb with org-mode source

2011-01-05 Thread suvayu ali
Hi Phil, On Wed, Jan 5, 2011 at 9:59 AM, Phil Branigan wrote: > In making up lecture and teaching materials, I would find it useful to be > able to use noweb references to replicate blocks of org-mode text directly, > rather than source code from latex or another language.  But org-mode isn't > o

[Orgmode] Using noweb with org-mode source

2011-01-05 Thread Phil Branigan
In making up lecture and teaching materials, I would find it useful to be able to use noweb references to replicate blocks of org-mode text directly, rather than source code from latex or another language. But org-mode isn't one of the babel-supported languages. Can anyone suggest a tricky way to