help-octave
[Top][All Lists]
Advanced

[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:
https://savannah.gnu.org/bugs/?51782

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 =
\lim\limits\_{n\rightarrow\infty}\left(1+\dfrac{x}{n}\right)\^{}{n}$$

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: 
http://octave.1599824.n4.nabble.com/publish-generates-incorrect-latex-tp4684584.html
Sent from the Octave - General mailing list archive at Nabble.com.



reply via email to

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