From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: numbering figure in html ? Date: Tue, 05 Aug 2014 08:43:15 -0400 Message-ID: <87iom75cpo.fsf@gmail.com> References: <87wqao2gti.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEe5b-0005Wx-Tx for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 08:43:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEe5U-0001gH-DU for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 08:43:39 -0400 Received: from plane.gmane.org ([80.91.229.3]:55323) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEe5U-0001g1-6W for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 08:43:32 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XEe5S-0008EK-Aq for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 14:43:30 +0200 Received: from pool-173-48-174-104.bstnma.fios.verizon.net ([173.48.174.104]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Aug 2014 14:43:30 +0200 Received: from ndokos by pool-173-48-174-104.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Aug 2014 14:43:30 +0200 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 Joseph Vidal-Rosset writes: > The following code works correctly to export into LaTeX, but the > caption function fails in html. But caption works in html when it is > above a table written in org-mode. > > #+OPTIONS: LaTeX:verbatim > #+LaTeX_CLASS: org-article > #+LaTeX_CLASS_OPTIONS: [koma,a4paper,11pt] > #+LaTeX_CLASS_OPTIONS: [times] > #+LANGUAGE: en > #+OPTIONS: ':t > #+OPTIONS: tex:t > #+LATEX_HEADER: \usepackage{tikz} > #+LaTeX_CLASS_OPTIONS: [captions=tableheading] > #+OPTIONS: tex:imagemagick > > #+CAPTION: Classical square of opposition > #+BEGIN_FIGURE > \begin{tikzpicture} > ... > \end{tikzpicture} > #+END_FIGURE > Yes, tables and source blocks handle captions in the HTML exporter, but special blocks (which #+(BEGIN|END)_FIGURE is) don't. Captions for special blocks *are* handled correctly in the latex exporter. This shouldn't be too hard to fix: just copy the caption code from org-html-table to org-html-special-block, but I won't have time to try it today. And then there is the question of other exporters... -- Nick