From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Verbatim LaTeX inside delimiters in HTML export with jsMath? Date: Fri, 18 Jun 2010 09:25:44 +0200 Message-ID: <5DBE101F-986F-4944-A067-39A467365878@gmail.com> References: <520586D5-F7A3-49DB-ACA8-A7542D1EAE06@gmail.com> <4C19CD7D.7050409@christianmoe.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=50762 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OPWLq-000507-4T for emacs-orgmode@gnu.org; Fri, 18 Jun 2010 03:50:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OPWLo-0001XS-Pv for emacs-orgmode@gnu.org; Fri, 18 Jun 2010 03:50:57 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:57792) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OPWLo-0001XF-Ly for emacs-orgmode@gnu.org; Fri, 18 Jun 2010 03:50:56 -0400 Received: by wyf28 with SMTP id 28so649649wyf.0 for ; Fri, 18 Jun 2010 00:50:55 -0700 (PDT) In-Reply-To: <4C19CD7D.7050409@christianmoe.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: mail@christianmoe.com Cc: emacs-orgmode@gnu.org Hi Christian, how should, in this case, a literal LaTeX environment like \begin{equation} a=b \end{equation} be handled? - Carsten On Jun 17, 2010, at 9:23 AM, Christian Moe wrote: > 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 > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten