From mboxrd@z Thu Jan 1 00:00:00 1970 From: aaron barclay Subject: Re: Export without code blocks Date: Mon, 30 Jan 2012 08:57:55 +1100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04448135808ab904b7b1d251 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rrcl7-0005Z1-It for emacs-orgmode@gnu.org; Sun, 29 Jan 2012 16:58:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rrcl3-00082t-9Z for emacs-orgmode@gnu.org; Sun, 29 Jan 2012 16:58:01 -0500 Received: from mail-wi0-f169.google.com ([209.85.212.169]:53357) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rrcl3-00082o-0n for emacs-orgmode@gnu.org; Sun, 29 Jan 2012 16:57:57 -0500 Received: by wibhj13 with SMTP id hj13so3554961wib.0 for ; Sun, 29 Jan 2012 13:57:55 -0800 (PST) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Martyn Jago Cc: emacs-orgmode@gnu.org --f46d04448135808ab904b7b1d251 Content-Type: text/plain; charset=ISO-8859-1 Thanks Martyn, that was a big help. aaron. On 27 January 2012 14:04, Martyn Jago wrote: > Martyn Jago writes: > > > Hi Aaron > > > > aaron barclay writes: > > > >> Hi, > >> > >> I am having trouble finding the correct way to export a document without > >> the code blocks included. Should I be using #+EXPORT_EXCLUDE_TAGS? I > can't > >> seem to get it to work, anyone have the correct syntax? > >> > >> cheers, > >> aaron. > > > > #+EXPORT_EXCLUDE_TAGS is for defining tags (such as NO_EXPORT) to > > prevent headings or sub-headings (branches) being exported. As in: > > > > ** don't export me :NO_EXPORT: > > stuff > > > > Possibly what you need is :exports none or :exports results : > > > > begin_src python :exports results > > print "result" > > end_src > > Of course this won't work in python since it will 'print' result, but > not return it. so you also need :results output which makes, the `result' > that which is printed to STDOUT (standard out). > > > What format are you exporting too? > > > > Best, Martyn > > > --f46d04448135808ab904b7b1d251 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Martyn,

that was a big help.

aaron.



On 27 January 2012 14:04, Martyn Jago <martyn.jago@btintern= et.com> wrote:
Mart= yn Jago <martyn.jago@btint= ernet.com> writes:

> Hi Aaron
>
> aaron barclay <aaron.di= plopic@gmail.com> writes:
>
>> Hi,
>>
>> I am having trouble finding the correct way to export a document w= ithout
>> the code blocks included. Should I be using #+EXPORT_EXCLUDE_TAGS?= I can't
>> seem to get it to work, anyone have the correct syntax?
>>
>> cheers,
>> aaron.
>
> #+EXPORT_EXCLUDE_TAGS is for defining tags (such as NO_EXPORT) to
> prevent headings or sub-headings (branches) being exported. As in:
>
> ** don't export me =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0:NO_EXPORT:<= br> > stuff
>
> Possibly what you need is :exports none =A0or :exports results :
>
> begin_src python :exports results
> =A0 print "result"
> end_src

Of course this won't work in python since it will 'prin= t' result, but
not return it. so you also need :results output which makes, the `result= 9;
that which is printed to STDOUT (standard out).

> What format are you exporting too?
>
> Best, Martyn



--f46d04448135808ab904b7b1d251--