From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: Extract source code /with/ captions Date: Sun, 12 Jan 2014 18:34:18 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2Ps7-000698-3H for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 13:35:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W2Pry-0004iO-UZ for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 13:34:55 -0500 Received: from plane.gmane.org ([80.91.229.3]:59321) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W2Pry-0004i4-NR for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 13:34:46 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1W2Prx-0002TJ-Nl for emacs-orgmode@gnu.org; Sun, 12 Jan 2014 19:34:45 +0100 Received: from 137.110.34.4 ([137.110.34.4]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jan 2014 19:34:45 +0100 Received: from ccberry by 137.110.34.4 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 12 Jan 2014 19:34:45 +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 James Harkins gmail.com> writes: > > I'm working on a set of Beamer presentations with a bunch of source > code blocks. I would like to collect all the blocks into one text file > per presentation, but I also need the captions and ideally a numeric > index. > [deleted] > So, for instance, where the slideshow and handouts would have a code > block identified like so: > > Listing 3: Compare geometric vs. band-limited waves, aurally. > > ... a student should be able to open up the corresponding code file and find: > > // Listing 3: Compare geometric vs. band-limited waves, aurally. > Can you make the 'caption' into a heading? If so, then ':comments org' will include it in output when you tangle. Or maybe ':comments link' or ':comments both' and some post-processing? HTH, Chuck