From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Using noweb with org-mode source Date: Wed, 05 Jan 2011 23:24:10 -0700 Message-ID: <87tyhmeeid.fsf@gmail.com> References: <4D24D1F7.1050307@christianmoe.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=38882 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PajGl-0002wp-Kf for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 01:24:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PajGk-00039s-9B for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 01:24:19 -0500 Received: from mail-pv0-f169.google.com ([74.125.83.169]:36804) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PajGk-00039e-3f for emacs-orgmode@gnu.org; Thu, 06 Jan 2011 01:24:18 -0500 Received: by pvc30 with SMTP id 30so3926752pvc.0 for ; Wed, 05 Jan 2011 22:24:17 -0800 (PST) In-Reply-To: <4D24D1F7.1050307@christianmoe.com> (Christian Moe's message of "Wed, 05 Jan 2011 21:17:59 +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: mail@christianmoe.com Cc: emacs-orgmode@gnu.org, Phil Branigan 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 -- Eric * One section, exported to a particular document #+srcname: primates #+begin_src org ,- chimps :: strong, smart and savage ,- bonobos :: less savage, sexy, smart ,- orangutans :: kinda asocial, with big arms ,- gorillas :: really strong, but shy #+end_src Lots of text here. * Another section, exported to a different document Let's review what we know about the primate group. #+begin_src org :noweb yes :results replace raw <> #+end_src Christian Moe writes: > 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 arguments. > > Yours, > Christian > > > * One section, exported to a particular document > > #+srcname: primates > #+begin_src org > ,- chimps :: strong, smart and savage > ,- bonobos :: less savage, sexy, smart > ,- orangutans :: kinda asocial, with big arms > ,- gorillas :: really strong, but shy > #+end_src > > Lots of text here. > > * Another section, exported to a different document > > Let's review what we know about the primate group. > > #+begin_src org :noweb yes > <> > #+end_src > > On 1/5/11 6:59 PM, 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 one of the babel-supported languages. Can anyone >> suggest a tricky way to achieve this result? >> >> What I have in mind is something like the following: >> >> * One section, exported to a particular document >> >> #+srcname: primates >> #+begin_src org-mode >> - chimps :: strong, smart and savage >> - bonobos :: less savage, sexy, smart >> - orangutans :: kinda asocial, with big arms >> - gorillas :: really strong, but shy >> #+end_src >> >> Lots of text here. >> >> * Another section, exported to a different document >> >> Let's review what we know about the primate group. >> >> <> >> >> >> -- >> Phil Branigan >> >> >> >> _______________________________________________ >> 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 > > > _______________________________________________ > 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