[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

publish generates incorrect latex

From: wienerschnitzel
Subject: publish generates incorrect latex
Date: Sun, 20 Aug 2017 14:50:36 -0700 (PDT)

I reported the following bug:

Actually, I have narrowed it down to the formatter that is called inside
publish.m. I know that the problem happens somewhere inside
__publish_latex_output__.m, specifically in escape_latex.

this is the starting string:
$$e^x = \lim\limits_{n\rightarrow\infty}\left(1+\dfrac{x}{n}\right)^{n}$$

and this is the result after being processed by 'escape_latex':
$$e\^{}x =

why are "_" and "^" being escaped?
In addition, replacing "^" with "\^{}" seems wrong as this doesn't
encapsulate the argument that follows.

View this message in context:
Sent from the Octave - General mailing list archive at

reply via email to

[Prev in Thread] Current Thread [Next in Thread]