On Tue, Sep 6, 2011 at 6:37 PM, Eric Schulte <schulte.eric@gmail.com> wrote:
"Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> 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


Without adding to many header  arguments, I think an additional value for the handling header argument ":results" would be useful: export_only, which, would implement this behaviour.

Cheers,

Rainer



Best -- Eric

--
Eric Schulte
http://cs.unm.edu/~eschulte/




--
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax (F):       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer@krugs.de

Skype:      RMkrug