From: Charles Berry <ccberry@ucsd.edu>
To: emacs-orgmode@gnu.org
Subject: Re: Extract source code /with/ captions
Date: Sun, 12 Jan 2014 18:34:18 +0000 (UTC) [thread overview]
Message-ID: <loom.20140112T192552-407@post.gmane.org> (raw)
In-Reply-To: CAFniQ7Xxr53ZojH+VJrHoQeg0F473c2TjA9BOXva5C_j8SF04Q@mail.gmail.com
James Harkins <jamshark70 <at> 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
prev parent reply other threads:[~2014-01-12 18:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-12 14:49 Extract source code /with/ captions James Harkins
2014-01-12 17:19 ` John Kitchin
2014-01-13 2:52 ` James Harkins
2014-01-13 17:06 ` Nick Dokos
2014-01-13 17:46 ` Nick Dokos
2014-01-13 18:01 ` Nick Dokos
2014-01-18 2:20 ` James Harkins
2014-01-18 3:04 ` James Harkins
2014-01-12 18:34 ` Charles Berry [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=loom.20140112T192552-407@post.gmane.org \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).