From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: [babel] Silent output in Org, but verbose export Date: Wed, 7 Sep 2011 10:25:16 +0200 Message-ID: References: <80y5y1el3u.fsf@somewhere.org> <87hb4pr3va.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001636426c7f16fe1e04ac55af47 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:35582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1DRe-0007eX-Ek for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 04:25:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R1DRd-0004br-6q for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 04:25:18 -0400 Received: from mail-qy0-f169.google.com ([209.85.216.169]:40366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R1DRd-0004bT-4V for emacs-orgmode@gnu.org; Wed, 07 Sep 2011 04:25:17 -0400 Received: by qyk27 with SMTP id 27so1185259qyk.0 for ; Wed, 07 Sep 2011 01:25:16 -0700 (PDT) In-Reply-To: <87hb4pr3va.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Eric Schulte Cc: Sebastien Vauban , emacs-orgmode@gnu.org --001636426c7f16fe1e04ac55af47 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Sep 6, 2011 at 6:37 PM, Eric Schulte wrote: > "Sebastien Vauban" 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 --001636426c7f16fe1e04ac55af47 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Sep 6, 2011 at 6:37 PM, Eric Sch= ulte <schult= e.eric@gmail.com> wrote:
"Sebastien Vauban" <wxhgmqzgwmuf@spammotel.com> w= rites:

> 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? =A0That is:
> - have no results inserted in the Org file
> - well inserted when exporting the Org file
>
> Best regards,
> =A0 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" &qu= ot;silent") :exports both
=A0echo =A0"I want to see this in HTML/PDF, but not= in Org"
#+end_src


Without = adding to many header =A0arguments, I think an additional value for the han= dling header argument ":results" would be useful: export_only, wh= ich, would implement this behaviour.

Cheers,

Rainer

<= /div>


Best -- Eric

--
Eric Schulte
http://cs.unm.ed= u/~eschulte/




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

Centre of Excellence for Invasion Biology Stellenbosch University
South Africa

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

Fax (D): =A0 =A0+49 - (0)3 21 21 25 2= 2 44

email: =A0 =A0 =A0Rainer@krugs.de

Skype: =A0 =A0 =A0RMkrug

--001636426c7f16fe1e04ac55af47--