From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yoshinari Nomura Subject: Re: Add figure/table numbers to HTML captions Date: Fri, 28 Jun 2013 08:37:29 +0900 (JST) Message-ID: <20130628.083729.1476800947386726109.nom@quickhack.net> References: <20130627.195226.131243714189666347.nom@cs.okayama-u.ac.jp> <87mwqbpz1v.fsf@pank.eu> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsLky-0001Mi-Lk for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 19:37:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsLkv-0007wQ-6p for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 19:37:40 -0400 Received: from vintage.swlab.cs.okayama-u.ac.jp ([150.46.8.117]:62629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsLku-0007vd-LA for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 19:37:37 -0400 Received: from localhost (unknown [172.21.23.5]) by vintage.swlab.cs.okayama-u.ac.jp (Postfix) with ESMTPSA id BB08B2F94B14 for ; Fri, 28 Jun 2013 08:37:32 +0900 (JST) In-Reply-To: <87mwqbpz1v.fsf@pank.eu> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi Rasmus, Thanks your good suggestion. > I'm not an expert on html, but how easy it is to enable/disable/alter > your solution locally compared to a html5/css solution? E.g. as here: > > http://tympanus.net/codrops/2013/05/02/automatic-figure-numbering-with-css-counters/ > > Note, I don't know if this can be used for tables, or only figures, > but being able to change the style in css seems nice. I'm also not an expert on HTML, but I think we can add some HTML annotations such as id, class... That will help the HTML5 staffs to manipulate the ordinal-number part in captions. Besides the HTML matter, I might have to add some control variables to on/off the numbering feature. As for the ``automatic numbering with css'' concept, it might be difficult to work with ox-html. Because ox-html has to control all the ordinal numbers by itself to use the numbers in the anchor texts conforming with the numbers in captions. Also, TOC scheme might be suffered. > http://orgmode.org/worg/org-contribute.html > > You could use git format-patch and make sure that the commit message > is a change-log entry as described on Worg (C-x 4 a on your change in > the diff file should bring up the correct changelog mode). Thanks a lot! I've forgot the word RTFM :) -- Yoshinari Nomura https://github.com/yoshinari-nomura