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.
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.
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
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