From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: latex equation and html export Date: Mon, 30 Dec 2013 06:25:15 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vxfel-00055n-6e for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 11:25:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vxfed-0001v1-Vk for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 11:25:31 -0500 Received: from alt-proxy6.mail.unifiedlayer.com ([66.147.245.65]:57426) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Vxfed-0001uY-Mc for emacs-orgmode@gnu.org; Mon, 30 Dec 2013 11:25:23 -0500 In-Reply-To: (Joseph Vidal-Rosset's message of "Mon, 30 Dec 2013 13:52:36 +0100") 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: Joseph Vidal-Rosset Cc: emacs-orgmode list Aloha Joseph, Joseph Vidal-Rosset writes: > With numbered equation, I do not succeed to get a code working both for > LateX export AND html export . > > For example this code: > > #+BEGIN_LaTeX > \begin{equation} > \label{eq:2} > A \to \neg B > \end{equation} > #+END_LaTeX > > works fine in org-mode : latex syntax is highleted and the export to pdf > works. But it does not work with html export: the formula does not appear. > Your code is targeted to the LaTeX back-end and should be ignored by other back-ends (as you've discovered). Something like this might do what you want: #+NAME: eq:2 #+BEGIN_EQUATION A \to \neg B #+END_EQUATION See Section 11.8 of the manual, Special Blocks. hth, Tom -- Thomas S. Dye http://www.tsdye.com