[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] html-encode in mathjax latex fragments
From: |
Eric Schulte |
Subject: |
Re: [O] html-encode in mathjax latex fragments |
Date: |
Mon, 30 Jun 2014 05:47:56 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
Nick Dokos <address@hidden> writes:
> Nicolas Goaziou <address@hidden> writes:
>
>> Hello,
>>
>> Eric Schulte <address@hidden> 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 "i<d" in part of a larger equation.
>From 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)