From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: "Clément Pit--Claudel" <clement.pit@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Feature request: "Figure #:" in labels of listings
Date: Mon, 15 Aug 2016 17:43:31 +0200 [thread overview]
Message-ID: <87bn0uujfg.fsf@saiph.selenimh> (raw)
In-Reply-To: <092e6a31-51b1-8bb8-d8bc-3e1da66764da@gmail.com> ("Clément Pit--Claudel"'s message of "Fri, 12 Aug 2016 23:23:26 -0400")
Hello,
Clément Pit--Claudel <clement.pit@gmail.com> 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?
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2016-08-15 15:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-13 3:23 Feature request: "Figure #:" in labels of listings Clément Pit--Claudel
2016-08-15 15:43 ` Nicolas Goaziou [this message]
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=87bn0uujfg.fsf@saiph.selenimh \
--to=mail@nicolasgoaziou.fr \
--cc=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).