* Export without code blocks
@ 2012-01-27 2:36 aaron barclay
2012-01-27 2:55 ` Martyn Jago
0 siblings, 1 reply; 4+ messages in thread
From: aaron barclay @ 2012-01-27 2:36 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 225 bytes --]
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.
[-- Attachment #2: Type: text/html, Size: 257 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Export without code blocks
2012-01-27 2:36 Export without code blocks aaron barclay
@ 2012-01-27 2:55 ` Martyn Jago
2012-01-27 3:04 ` Martyn Jago
0 siblings, 1 reply; 4+ messages in thread
From: Martyn Jago @ 2012-01-27 2:55 UTC (permalink / raw)
To: emacs-orgmode
Hi Aaron
aaron barclay <aaron.diplopic@gmail.com> 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
What format are you exporting too?
Best, Martyn
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Export without code blocks
2012-01-27 2:55 ` Martyn Jago
@ 2012-01-27 3:04 ` Martyn Jago
2012-01-29 21:57 ` aaron barclay
0 siblings, 1 reply; 4+ messages in thread
From: Martyn Jago @ 2012-01-27 3:04 UTC (permalink / raw)
To: emacs-orgmode
Martyn Jago <martyn.jago@btinternet.com> writes:
> Hi Aaron
>
> aaron barclay <aaron.diplopic@gmail.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Export without code blocks
2012-01-27 3:04 ` Martyn Jago
@ 2012-01-29 21:57 ` aaron barclay
0 siblings, 0 replies; 4+ messages in thread
From: aaron barclay @ 2012-01-29 21:57 UTC (permalink / raw)
To: Martyn Jago; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1140 bytes --]
Thanks Martyn,
that was a big help.
aaron.
On 27 January 2012 14:04, Martyn Jago <martyn.jago@btinternet.com> wrote:
> Martyn Jago <martyn.jago@btinternet.com> writes:
>
> > Hi Aaron
> >
> > aaron barclay <aaron.diplopic@gmail.com> 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
>
>
>
[-- Attachment #2: Type: text/html, Size: 1849 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-29 21:58 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 2:36 Export without code blocks aaron barclay
2012-01-27 2:55 ` Martyn Jago
2012-01-27 3:04 ` Martyn Jago
2012-01-29 21:57 ` aaron barclay
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).