emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Code Block Headers Appear in Export
@ 2012-09-29 22:34 Alan Lue
  2012-10-01  5:52 ` Alan Lue
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alan Lue @ 2012-09-29 22:34 UTC (permalink / raw)
  To: emacs-orgmode

I find that code block header arguments specified with `#+HEADERS:'
consistently appear in the exported document. For example, exporting the
following document to PDF or HTML will include the "exports" header in
the output:

* Manifestation of Problem

  Look, our headers appear in the export:
  #+headers: :exports both
  #+BEGIN_SRC R :results output
    sd(rnorm(50))
  #+END_SRC

How does one suppress the export of header arguments? For reference, I'm
using Org-mode version 7.9.1.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Code Block Headers Appear in Export
  2012-09-29 22:34 Code Block Headers Appear in Export Alan Lue
@ 2012-10-01  5:52 ` Alan Lue
  2012-10-01  7:57 ` Sebastien Vauban
  2012-10-01  8:02 ` Sebastien Vauban
  2 siblings, 0 replies; 4+ messages in thread
From: Alan Lue @ 2012-10-01  5:52 UTC (permalink / raw)
  To: emacs-orgmode

Following up.

Does anyone else see this behavior? Headers always appear in the export
whenever my document includes a code block with a separate `#+HEADERS:'
line.


Alan Lue <alan.lue@gmail.com> writes:

> I find that code block header arguments specified with `#+HEADERS:'
> consistently appear in the exported document. For example, exporting the
> following document to PDF or HTML will include the "exports" header in
> the output:
>
> * Manifestation of Problem
>
>   Look, our headers appear in the export:
>   #+headers: :exports both
>   #+BEGIN_SRC R :results output
>     sd(rnorm(50))
>   #+END_SRC
>
> How does one suppress the export of header arguments? For reference, I'm
> using Org-mode version 7.9.1.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Code Block Headers Appear in Export
  2012-09-29 22:34 Code Block Headers Appear in Export Alan Lue
  2012-10-01  5:52 ` Alan Lue
@ 2012-10-01  7:57 ` Sebastien Vauban
  2012-10-01  8:02 ` Sebastien Vauban
  2 siblings, 0 replies; 4+ messages in thread
From: Sebastien Vauban @ 2012-10-01  7:57 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Alan,

Alan Lue wrote:
> I find that code block header arguments specified with `#+HEADERS:'
> consistently appear in the exported document. For example, exporting the
> following document to PDF or HTML will include the "exports" header in
> the output:
>
> * Manifestation of Problem
>
>   Look, our headers appear in the export:
>   #+headers: :exports both
>   #+BEGIN_SRC R :results output
>     sd(rnorm(50))
>   #+END_SRC
>
> How does one suppress the export of header arguments? For reference, I'm
> using Org-mode version 7.9.1.

Confirmed: this is what I see in my browser...

--8<---------------cut here---------------start------------->8---
1 Manifestation of Problem

Look, our headers appear in the export: #+headers: :exports both

    sd(rnorm(50))

[1] 1.048935
--8<---------------cut here---------------end--------------->8---

Org-mode version 7.9.1 (release_7.9.1-415-g327a4b @ d:/home/sva/src/org-mode/lisp/)

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Code Block Headers Appear in Export
  2012-09-29 22:34 Code Block Headers Appear in Export Alan Lue
  2012-10-01  5:52 ` Alan Lue
  2012-10-01  7:57 ` Sebastien Vauban
@ 2012-10-01  8:02 ` Sebastien Vauban
  2 siblings, 0 replies; 4+ messages in thread
From: Sebastien Vauban @ 2012-10-01  8:02 UTC (permalink / raw)
  To: emacs-orgmode-mXXj517/zsQ

Alan Lue,

Alan Lue wrote:
> I find that code block header arguments specified with `#+HEADERS:'
> consistently appear in the exported document. For example, exporting the
> following document to PDF or HTML will include the "exports" header in
> the output:
>
> * Manifestation of Problem
>
>   Look, our headers appear in the export:
>   #+headers: :exports both
>   #+BEGIN_SRC R :results output
>     sd(rnorm(50))
>   #+END_SRC

However, that does _not_ happen if you put your text/code in column 0:

--8<---------------cut here---------------start------------->8---
* Manifestation of Problem

Look, our headers appear in the export:

#+headers: :exports both
#+begin_src R :results output
  sd(rnorm(50))
#+end_src
--8<---------------cut here---------------end--------------->8---

Best regards,
  Seb

-- 
Sebastien Vauban

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-10-01  8:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-29 22:34 Code Block Headers Appear in Export Alan Lue
2012-10-01  5:52 ` Alan Lue
2012-10-01  7:57 ` Sebastien Vauban
2012-10-01  8:02 ` Sebastien Vauban

Code repositories for project(s) associated with this 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).