emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Clément Pit--Claudel" <clement.pit@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Feature request: "Figure #:" in labels of listings
Date: Fri, 12 Aug 2016 23:23:26 -0400	[thread overview]
Message-ID: <092e6a31-51b1-8bb8-d8bc-3e1da66764da@gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 808 bytes --]

This org file:

    #+CAPTION: Some C code
    #+NAME: fig:c
    #+BEGIN_SRC c
    int main() { return 0; }
    #+END_SRC

    See figure [[fig:c]].

produces HTML similar to this:

    …
    <label class="org-src-name">Some C code</label>
    <pre class="src src-c" id="org632b2ee">…</pre>
    </div>

    <p>
    See figure <a href="#org632b2ee">1</a>.
    </p>

The link says "Figure (1)", but the figure label doesn't include the figure number. It would be great to have an option to include it! (or even to always include it as is done for images, since it can be hidden from CSS).

Thanks!
Clément.

(PS: btw, does anyone have tips for stepping through org-mode sources? The `info` parameters are so large that they cause edebug to be very slow when stepping around).


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

             reply	other threads:[~2016-08-13  3:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-13  3:23 Clément Pit--Claudel [this message]
2016-08-15 15:43 ` Feature request: "Figure #:" in labels of listings Nicolas Goaziou
2016-08-22 13:33   ` Clément Pit--Claudel
2016-08-22 20:27     ` Nicolas Goaziou
2016-08-22 20:48       ` Clément Pit--Claudel
2016-08-24 19:51         ` Nicolas Goaziou
2016-08-24 20:51           ` Clément Pit--Claudel

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=092e6a31-51b1-8bb8-d8bc-3e1da66764da@gmail.com \
    --to=clement.pit@gmail.com \
    --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).