From: Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com>
To: Nick Dokos <ndokos@gmail.com>
Cc: "Liste-emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: numbering figure in html ?
Date: Tue, 5 Aug 2014 08:42:50 +0200 [thread overview]
Message-ID: <CAD-VTcF7Oq3dpAvczSX44Lbk7TMUy1neZQu6d6NK45fPQr+2Rg@mail.gmail.com> (raw)
In-Reply-To: <87wqao2gti.fsf@alphaville.bos.redhat.com>
[-- Attachment #1: Type: text/plain, Size: 2332 bytes --]
Dear Nick, (cc. the list)
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}
\draw[<-, >=latex][thick] (0,0) -- (1.6,0) node[right] {Subcontrary};
\draw[->,>=latex] [thick] (3.6,0) -- (5,0) node[right] { \((\mathbf{O})\)~
\(\underset{\land \exists x(Sx)}{\exists x(Sx \land \neg Px)}\)};
\draw[->,>=latex] [thick] (1.6,0) -- (0,0) node[left] {\(\underset{\land
\exists x(Sx)}{\exists x(Sx \land Px)}\)~ \((\mathbf{I})\)};
\draw[<->,>=latex][thick] (5,0) -- (0,5) node[left] {\(\underset{\land
\exists x(Sx)}{\forall x(Sx \to Px)}\)~ \((\mathbf{A})\)} node[midway]
{CONTRADICTORY} ;
\draw[<->,>=latex][thick] (0,0) -- (5,5);
\draw[-,>=latex][thick] (0,5) -- (0,2.5) node[below] {Subaltern};
\draw[->,>=latex][thick] (0,2) -- (0,0);
\draw[-,>=latex][thick] (5,5) -- (5,2.5) node[below] {Subaltern};
\draw[<-,>=latex][thick] (0,5) -- (1.7,5) node[right] {Contrary};
\draw[->,>=latex][thick] (3.2,5) -- (5,5) node[right]{\((\mathbf{E})\)~
\(\underset{\land \exists x(Sx)}{\forall x(Sx \to \neg Px)}\)};
\draw[->,>=latex][thick] (5,2) -- (5,0);
\end{tikzpicture}
#+END_FIGURE
2014-08-04 21:30 GMT+02:00 Nick Dokos <ndokos@gmail.com>:
> Joseph Vidal-Rosset <joseph.vidal.rosset@gmail.com> writes:
>
> > Hello everybody,
> >
> > In org-mode exporting
> >
> > \begin{figure}
> > \begin{tikzpicture}
> >
> > \draw[<-, >=latex][thick] (0,0) -- (1.6,0) node[right] {Subcontrary};
> > ...
> >
> > end{tikzpicture}
>
> \end{tikzpicture}
>
> > \caption{Square of opposition}
> > \end{figure}
> >
> > works well with LateX, but fails with html: each Figure has the same
> number, i.e. 1.
> >
> > What is the best solution to get numbered Figure in html?
> >
>
> [Please provide complete examples whenever possible.]
>
> How do you produce the figure for HTML export?
>
> Perhaps
>
> #+caption: Square of opposition
>
> on the figure?
>
> --
> Nick
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 3129 bytes --]
next prev parent reply other threads:[~2014-08-05 6: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 [this message]
2014-08-05 12:43 ` Nick Dokos
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAD-VTcF7Oq3dpAvczSX44Lbk7TMUy1neZQu6d6NK45fPQr+2Rg@mail.gmail.com \
--to=joseph.vidal.rosset@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=ndokos@gmail.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.