emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Feature request: "Figure #:" in labels of listings
@ 2016-08-13  3:23 Clément Pit--Claudel
  2016-08-15 15:43 ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Clément Pit--Claudel @ 2016-08-13  3:23 UTC (permalink / raw)
  To: emacs-orgmode


[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-08-24 20:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-13  3:23 Feature request: "Figure #:" in labels of listings Clément Pit--Claudel
2016-08-15 15:43 ` 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

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).