[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [babel] Silent output in Org, but verbose export
From: |
Eric Schulte |
Subject: |
Re: [O] [babel] Silent output in Org, but verbose export |
Date: |
Tue, 06 Sep 2011 10:37:28 -0600 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
"Sebastien Vauban" <address@hidden> writes:
> Hi Eric,
>
> Currently, the following does not seem possible:
>
> #+begin_src sh :results silent :exports results
> echo "I want to see this in HTML/PDF, but not in Org"
> #+end_src
>
> Is there a way to do so? That is:
> - have no results inserted in the Org file
> - well inserted when exporting the Org file
>
> Best regards,
> Seb
Hi Seb,
While this functionality isn't explicitly built into Org-mode the
following should work...
#+begin_src sh :results (if org-current-export-file "replace" "silent")
:exports both
echo "I want to see this in HTML/PDF, but not in Org"
#+end_src
Best -- Eric
--
Eric Schulte
http://cs.unm.edu/~eschulte/