From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: html-encode in mathjax latex fragments Date: Mon, 30 Jun 2014 05:47:56 -0400 Message-ID: <87wqbyfzr5.fsf@gmail.com> References: <87pphrh83k.fsf@gmail.com> <87zjgvv6q5.fsf@nicolasgoaziou.fr> <878uofm6ol.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1Z03-00059c-Hg for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 06:39:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X1Yzv-0002q8-9H for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 06:39:51 -0400 Received: from mail-qc0-x22a.google.com ([2607:f8b0:400d:c01::22a]:65356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X1Yzv-0002pw-4Q for emacs-orgmode@gnu.org; Mon, 30 Jun 2014 06:39:43 -0400 Received: by mail-qc0-f170.google.com with SMTP id l6so6925361qcy.1 for ; Mon, 30 Jun 2014 03:39:42 -0700 (PDT) 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: emacs-orgmode@gnu.org Nick Dokos writes: > Nicolas Goaziou writes: > >> Hello, >> >> Eric Schulte writes: >> >>> I noticed equations with "<"'s weren't displaying correctly in HTML >>> export using mathjax. The attached patch fixes this by html-encoding >>> latex fragments for mathjax HTML export. I imagine this change would be >>> generally useful and could be applied to master. >> >> I am a bit puzzled. I just tried exporting the following buffer: >> >> \(1 < 2\) >> >> and the result looked good. Could you provide an example of a failed >> export? >> >> > > See > > http://docs.mathjax.org/en/latest/tex.html#tex-and-latex-in-html-documents > > for some gotchas. Thanks, the link does describe the problem well. My particular problem formula included "iFrom the link above it sounds like replacing just "<", ">" and "&" should be sufficient, if the full html encoding in my previous patch was too heavy weight. Best, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)