emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: numbering figure in html ?
Date: Tue, 05 Aug 2014 08:43:15 -0400	[thread overview]
Message-ID: <87iom75cpo.fsf@gmail.com> (raw)
In-Reply-To: CAD-VTcF7Oq3dpAvczSX44Lbk7TMUy1neZQu6d6NK45fPQr+2Rg@mail.gmail.com

Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> 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

  reply	other threads:[~2014-08-05 12:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-04 10:19 numbering figure in html ? Joseph Vidal-Rosset
2014-08-04 19:30 ` Nick Dokos
2014-08-05  6:42   ` Joseph Vidal-Rosset
2014-08-05 12:43     ` Nick Dokos [this message]
2014-08-05 16:54       ` Joseph Vidal-Rosset
2014-08-05 12:50     ` Nick Dokos

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=87iom75cpo.fsf@gmail.com \
    --to=ndokos@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).