[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Feature request: "Figure #:" in labels of listings

From: Clément Pit--Claudel
Subject: [O] Feature request: "Figure #:" in labels of listings
Date: Fri, 12 Aug 2016 23:23:26 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

This org file:

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

    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>

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

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


(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: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]