From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Moe Subject: Verbatim LaTeX inside delimiters in HTML export with jsMath? Date: Thu, 17 Jun 2010 09:23:41 +0200 Message-ID: <4C19CD7D.7050409@christianmoe.com> References: <520586D5-F7A3-49DB-ACA8-A7542D1EAE06@gmail.com> Reply-To: mail@christianmoe.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=50432 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OP9SA-00062n-2a for emacs-orgmode@gnu.org; Thu, 17 Jun 2010 03:23:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OP9S8-0005x9-MJ for emacs-orgmode@gnu.org; Thu, 17 Jun 2010 03:23:57 -0400 Received: from mars.hitrost.net ([91.185.193.39]:59345) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OP9S8-0005L7-Gx for emacs-orgmode@gnu.org; Thu, 17 Jun 2010 03:23:56 -0400 Received: from lk.92.63.17.213.dc.cable.static.lj-kabel.net ([92.63.17.213] helo=Celebrian.local) by mars.hitrost.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.71) (envelope-from ) id 1OP9RW-00015E-Do for emacs-orgmode@gnu.org; Thu, 17 Jun 2010 09:23:18 +0200 In-Reply-To: <520586D5-F7A3-49DB-ACA8-A7542D1EAE06@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, To display LaTeX math in Org html export with lovely jsMath, it must be exported verbatim with #+OPTIONS: ^:nil TeX:nil so one cannot use lazy superscripts/subscripts or Org entities in the rest of the text. Is there a simple way to turn these options on, but protect LaTeX where it appears *inside math delimiters* so it's exported verbatim? I.e. inside $...$, $$...$$, \( ... \), \[ ... \], \begin ... \end ? I ask because I'm keeping a note file with much text and only a few equations, but with frequent reference to e.g. CO_2 and m^2. It's possible to always write $CO_2$ and $m^2$, but less readable, and irksome when you've got used to an easier way. An inline formula can be protected by surrounding it with verbatim markup, =$...$=, but then it's only good for jsMath, not for LaTeX export. Yours, Christian