emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Robert Klein <roklein@roklein.de>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: Captions for source code
Date: Thu, 22 Jul 2010 12:20:58 -0700	[thread overview]
Message-ID: <87lj93e31h.fsf@gmail.com> (raw)
In-Reply-To: <op.vf8vhwapn9zmcv@pckr105.mpip-mainz.mpg.de> (Robert Klein's message of "Thu, 22 Jul 2010 14:26:10 +0200")

Hi Robert,

Currently captions are only supported for Tables and for Links, not for
code blocks.  Although the "caption" attribute is used by code blocks it
is only used to hold the code block name, not as an actual caption.

Adding real captions to code blocks (and moving the code block name to
it's own property) certainly seems like a good idea for future
development.  If anyone is interested the
`org-export-attach-captions-and-attributes' function is probably a good
place to start.  I've added this to my personal stack, but we'll see if
that ends up meaning anything.

Best -- Eric

"Robert Klein" <roklein@roklein.de> writes:

> Hi list,
>
> I'm trying to get source code exported to HTML with captions, e.g. like:
>
>
> #+caption: Examples of variable declaration.
> #+begin_src sql
> SELECT 6*9;
> #+end_src
>
> There seems to be code in org-exp.el, see lines 2128 and
> following in version 7.01f of org-mode.
>
> However, I'm unable to find out what I'm doing wrong, atm.
>
> Do you know how I can get this working?
>
> Thank you very much!
>
> Best regards
> Robert
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2010-07-22 19:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-22 12:26 Captions for source code Robert Klein
2010-07-22 19:20 ` Eric Schulte [this message]
2010-07-22 23:18   ` David O'Toole

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=87lj93e31h.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=roklein@roklein.de \
    /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).