[Top][All Lists]

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

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

From: Nicolas Goaziou
Subject: Re: [O] Feature request: "Figure #:" in labels of listings
Date: Mon, 15 Aug 2016 17:43:31 +0200


Clément Pit--Claudel <address@hidden> writes:

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

I agreed we can add it unconditionally, using (org-html--translate
"Listing %d:" info).

What class do you suggest for the listing number, "<span
class=\"listing-number\">"? If so, should `org-html-style-default' be modified?


Nicolas Goaziou

reply via email to

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