From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [PATCH] displaymath environment and MathJax Date: Sun, 12 Dec 2010 13:16:03 +0100 Message-ID: <3BBEEC55-DECA-47C8-8C94-7E6C5AADE8AD@gmail.com> References: <87bp4xscmg.fsf%lukasz.stelmach@iem.pw.edu.pl> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=UTF-8; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=49733 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRkqW-0005AS-Sw for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 07:16:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRkqV-0003oR-JP for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 07:16:08 -0500 Received: from mail-ey0-f177.google.com ([209.85.215.177]:35376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRkqV-0003oE-Db for emacs-orgmode@gnu.org; Sun, 12 Dec 2010 07:16:07 -0500 Received: by eyd9 with SMTP id 9so4495757eyd.36 for ; Sun, 12 Dec 2010 04:16:06 -0800 (PST) In-Reply-To: <87bp4xscmg.fsf%lukasz.stelmach@iem.pw.edu.pl> 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: =?UTF-8?Q?=C5=81ukasz_Stelmach?= Cc: emacs-orgmode@gnu.org Hi Lukasz I have accepted this patch after all - I could not see anything about displaymath on the MathJax site. So this seems to be a fix worth trying. - Carsten On Dec 7, 2010, at 6:42 PM, =C5=81ukasz Stelmach wrote: > Greetings All. > > The following patch makes MathJax consider \begin{displaymath} and > \end{displaymath} as math environmetn boundaries. For someone who, =20 > like > me, keeps "The not so short introduction to LaTeX2e" alway around, the > displaymath environment is the default way to introduce a block of =20 > math. > > In fact '\[' and '\]' are also mentioned there but the environment is > used in every single example so the patch minimizes the surprise. > > --8<---------------cut here---------------start------------->8--- > diff --git a/lisp/org-html.el b/lisp/org-html.el > index d1fe06d..2380c12 100644 > --- a/lisp/org-html.el > +++ b/lisp/org-html.el > @@ -290,7 +290,7 @@ You can also customize this for each buffer, =20 > using something like > \"TeX/noUndefined.js\"], > tex2jax: { > inlineMath: [ [\"\\\\(\",\"\\\\)\"] ], > - displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"] ], > + displayMath: [ ['$$','$$'], [\"\\\\[\",\"\\\\]\"], [\"\\=20= > \\begin{displaymath}\",\"\\\\end{displaymath}\"] ], > skipTags: [\"script\",\"noscript\",\"style\",\"textarea=20 > \",\"pre\",\"code\"], > ignoreClass: \"tex2jax_ignore\", > processEscapes: false, > --8<---------------cut here---------------end--------------->8--- > > --=20 > Mi=C5=82ego dnia, > =C5=81ukasz Stelmach > > > _______________________________________________ > 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