From mboxrd@z Thu Jan 1 00:00:00 1970 From: cberry@tajo.ucsd.edu Subject: Re: Selectively export RESULTS Date: Wed, 29 Feb 2012 08:50:16 -0800 Message-ID: <87ty29eg8n.fsf@tajo.ucsd.edu> References: <87ty2aw7ps.fsf@tajo.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2mje-0002dS-D0 for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 11:50:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2mjW-00075O-80 for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 11:50:37 -0500 Received: from plane.gmane.org ([80.91.229.3]:50948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2mjW-000756-1D for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 11:50:30 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S2mjT-0003Wn-HE for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 17:50:27 +0100 Received: from tajo.ucsd.edu ([137.110.122.165]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Feb 2012 17:50:27 +0100 Received: from cberry by tajo.ucsd.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Feb 2012 17:50:27 +0100 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: emacs-orgmode@gnu.org tsd@tsdye.com (Thomas S. Dye) writes: > cberry@tajo.ucsd.edu writes: > >> I sometimes create large documents with many dozens of src blocks and >> associated #+RESULTS. >> >> I'd like to be able to grab some of these results blocks and export them >> into a document. Since revisions of the src blocks can change the >> results, I do not want to just and to copy and paste the results in case >> I need to revise the sub-document(s). >> >> And with long running blocks, I do not want to use a noweb strategy to >> rerun the code in the src blocks. >> >> As an example, I might have this in a file with many other headlines >> and src blocks: >> >> ,---- >> | * Selectively Export Some Results >> | :PROPERTIES: >> | :EXPORT_FILE_NAME: Selected_Results.pdf >> | :EXPORT_TITLE: Selected Results >> | :END: >> | >> | Here are the results from block named "Ablock": >> | >> | #+CALL: show-results("Ablock") >> | >> | and here they are for a block named "Bblock": >> | >> | #+CALL: show-results("Bblock") >> `---- >> >> and if I put point on the headline and type C-c @ C-c C-e d, I'd like >> to have a document that includes the two results blocks in it after each CALL line. >> >> It looks like many of the pieces I need are available, but I don't see >> how to stitch them together to create the show-results() function. >> >> TIA, >> >> Chuck > > Hi Chuck, > Thanks for the reply. > Does this do what you want? No. When I put point under the headline and type C-c @ C-c C-e d, it prompts me to evaluate each of the blocks, and when I answer 'no' to each, it produces a document that omits the previously computed results. What I want is to grab *existing* results blocks and use them. And if at a later date some of those results blocks have changed, when I again put point under the headline and type C-c @ C-c C-e d, I'd like the newer blocks to be updated. The computations in some blocks run for many minutes, so it is impractical to recompute them every time I want to tweak the format of a document that depends on them. Chuck > > * Selectively Export Some Results > :PROPERTIES: > :EXPORT_FILE_NAME: Selected_Results.pdf > :EXPORT_TITLE: Selected Results > :END: > > Here are the results from block named "Ablock": > > #+CALL: Ablock() :exports results > > and here they are for a block named "Bblock": > > #+CALL: Bblock() :exports results > > All the best, > Tom -- Charles C. Berry Dept of Family/Preventive Medicine cberry at ucsd edu UC San Diego http://famprevmed.ucsd.edu/faculty/cberry/ La Jolla, San Diego 92093-0901