From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Add figure/table numbers to HTML captions Date: Thu, 27 Jun 2013 13:34:36 +0200 Message-ID: <87mwqbpz1v.fsf@pank.eu> References: <20130627.195226.131243714189666347.nom@cs.okayama-u.ac.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50812) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsATT-000800-3V for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 07:34:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UsATQ-0007Si-Oj for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 07:34:51 -0400 Received: from plane.gmane.org ([80.91.229.3]:43317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UsATQ-0007SJ-I3 for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 07:34:48 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UsATP-0004DJ-5s for emacs-orgmode@gnu.org; Thu, 27 Jun 2013 13:34:47 +0200 Received: from f053045254.adsl.alicedsl.de ([78.53.45.254]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jun 2013 13:34:47 +0200 Received: from rasmus by f053045254.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 27 Jun 2013 13:34:47 +0200 In-Reply-To: <20130627.195226.131243714189666347.nom@cs.okayama-u.ac.jp> (Yoshinari Nomura's message of "Thu, 27 Jun 2013 19:52:26 +0900 (JST)") 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 Yoshinari, > I sometimes need to export an org document into both HTML and LaTeX. > In such case, I want HTML exporter to create numbered captions for > figures and tables. I think many would appreciate that feature. > So, I've written a small patch to add figure/table numbers to HTML > captions. (see 0001-Add-figure-table-numbers-to-HTML-captions.patch) That's cool! 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. > This is my first post to this list. > Please teach me if we have some better way to submit the patch. Check: 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). –Rasmus -- Dung makes an excellent fertilizer