From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Vidal-Rosset Subject: Re: numbering figure in html ? Date: Tue, 5 Aug 2014 08:42:50 +0200 Message-ID: References: <87wqao2gti.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11335fa44d9c1804ffdc2bba Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39852) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEYSn-0008Qp-MP for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 02:43:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEYSm-0000We-4O for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 02:43:13 -0400 Received: from mail-vc0-x22d.google.com ([2607:f8b0:400c:c03::22d]:35824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEYSl-0000WH-Vi for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 02:43:12 -0400 Received: by mail-vc0-f173.google.com with SMTP id hy10so762285vcb.18 for ; Mon, 04 Aug 2014 23:43:11 -0700 (PDT) In-Reply-To: <87wqao2gti.fsf@alphaville.bos.redhat.com> 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: Nick Dokos Cc: "Liste-emacs-orgmode@gnu.org" --001a11335fa44d9c1804ffdc2bba Content-Type: text/plain; charset=UTF-8 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 : > Joseph Vidal-Rosset 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 > > > > --001a11335fa44d9c1804ffdc2bba Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Dear Nick, (cc. the list)

The following = code works correctly to export into LaTeX, but the caption function fails i= n html. But caption works in html when it is above a table written in org-m= ode.

#+OPTIONS: LaTeX:verbatim
#+LaTeX_CLASS: org-article
#+LaTeX_CLAS= S_OPTIONS: [koma,a4paper,11pt]
#+LaTeX_CLASS_OPTIONS: [times]
#+LANGU= AGE: en
#+OPTIONS: ':t
#+OPTIONS: tex:t
#+LATEX_HEADER: \usepa= ckage{tikz}
#+LaTeX_CLASS_OPTIONS: [captions=3Dtableheading]
#+OPTIONS: tex:imagemag= ick


#+CAPTION: Classical square of opposition
#+BEGIN_FIGURE<= br>\begin{tikzpicture}
\draw[<-, >=3Dlatex][thick] (0,0) -- (1.6,0= ) node[right] {Subcontrary};
\draw[->,>=3Dlatex] [thick] (3.6,0) -- (5,0) node[right] { \((\mathbf= {O})\)~ \(\underset{\land \exists x(Sx)}{\exists x(Sx \land \neg Px)}\)};\draw[->,>=3Dlatex] [thick] (1.6,0) -- (0,0) node[left] {\(\underse= t{\land \exists x(Sx)}{\exists x(Sx \land=C2=A0 Px)}\)~ \((\mathbf{I})\)};<= br> \draw[<->,>=3Dlatex][thick] (5,0) -- (0,5) node[left] {\(\underset= {\land \exists x(Sx)}{\forall x(Sx \to Px)}\)~ \((\mathbf{A})\)} node[midwa= y] {CONTRADICTORY} ;
\draw[<->,>=3Dlatex][thick] (0,0) -- (5,5)= ;
\draw[-,>=3Dlatex][thick]=C2=A0 (0,5) -- (0,2.5) node[below] {Subaltern}= ;
\draw[->,>=3Dlatex][thick] (0,2) -- (0,0);
\draw[-,>=3Dlat= ex][thick] (5,5) -- (5,2.5) node[below] {Subaltern};
\draw[<-,>=3D= latex][thick] (0,5) -- (1.7,5) node[right] {Contrary};
\draw[->,>=3Dlatex][thick] (3.2,5) -- (5,5) node[right]{\((\mathbf{E}= )\)~ \(\underset{\land \exists x(Sx)}{\forall x(Sx \to=C2=A0 \neg Px)}\)};<= br>\draw[->,>=3Dlatex][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[<-, >=3Dlatex][thick] (0,0) -- (1.6,0) node[right] {Subcon= trary};
> ...
>
> end{tikzpicture}

=C2=A0 \end{tikzpicture}

> \caption{Square of opposition}
> \end{figure}
>
> works well with LateX, but fails with html: each Figure has the same n= umber, 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




--001a11335fa44d9c1804ffdc2bba--