From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Feature request: "Figure #:" in labels of listings Date: Mon, 15 Aug 2016 17:43:31 +0200 Message-ID: <87bn0uujfg.fsf@saiph.selenimh> References: <092e6a31-51b1-8bb8-d8bc-3e1da66764da@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZK33-0002SO-2z for emacs-orgmode@gnu.org; Mon, 15 Aug 2016 11:43:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bZK31-0006VF-8U for emacs-orgmode@gnu.org; Mon, 15 Aug 2016 11:43:32 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:37882) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bZK31-0006V3-2d for emacs-orgmode@gnu.org; Mon, 15 Aug 2016 11:43:31 -0400 In-Reply-To: <092e6a31-51b1-8bb8-d8bc-3e1da66764da@gmail.com> (=?utf-8?Q?=22Cl=C3=A9ment?= Pit--Claudel"'s message of "Fri, 12 Aug 2016 23:23:26 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: =?utf-8?Q?Cl=C3=A9ment?= Pit--Claudel Cc: emacs-orgmode@gnu.org Hello, Cl=C3=A9ment Pit--Claudel 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: > > =E2=80=A6 > >
=E2=80=A6
> > >

> See figure 1. >

> > 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, ""? If so, should `org-html-style-default' be mod= ified? Regards, --=20 Nicolas Goaziou