|
From: | Rainer M Krug |
Subject: | Re: [O] [babel] Silent output in Org, but verbose export |
Date: | Wed, 7 Sep 2011 10:25:16 +0200 |
Hi Seb,"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
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/
[Prev in Thread] | Current Thread | [Next in Thread] |