From mboxrd@z Thu Jan 1 00:00:00 1970 From: cberry@tajo.ucsd.edu Subject: Selectively export RESULTS Date: Tue, 28 Feb 2012 21:04:47 -0800 Message-ID: <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]:60898) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2bis-0007KD-Du for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 00:05:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2bip-0004km-TO for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 00:05:05 -0500 Received: from plane.gmane.org ([80.91.229.3]:48312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2bip-0004ir-NP for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 00:05:03 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S2bim-0007FT-7j for emacs-orgmode@gnu.org; Wed, 29 Feb 2012 06:05:00 +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 06:05:00 +0100 Received: from cberry by tajo.ucsd.edu with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Feb 2012 06:05:00 +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 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 -- 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