|
From: Jinsong Z. <js...@ye...> - 2020-10-21 04:22:03
|
Hi there,
After I updated my TeXLive distribution, imaxima gave LaTeX error with
simple input like:
(%i1) q^2 = 1;
LaTeX error in: q^2=1
(%i2)
It seems a bug in imaxima.el, here is the patch. I don't know why it
works with old TeXLive distribution...
$ diff -ruN maxima-5.44.0/interfaces/emacs/imaxima/imaxima.el
maxima/interfaces/emacs/imaxima/imaxima.el
--- maxima-5.44.0/interfaces/emacs/imaxima/imaxima.el 2020-06-05
11:35:30.000000000 +0800
+++ maxima/interfaces/emacs/imaxima/imaxima.el 2020-10-21
11:36:16.683710200 +0800
@@ -471,7 +471,7 @@
(defconst imaxima-mylatex
"\\makeatletter\\let\\MYLATEXdocument\\document
-\\let\\MYLATEXopenout\\openout\\def\\document{\\endgroup
+\\let\\MYLATEXopenout\\openout\\def\\document{%\\endgroup
{\\setbox\\z@\\hbox{\\normalfont% normal
{\\ifx\\large\\@undefined\\else\\large\\fi
\\ifx\\footnotesize\\@undefined\\else\\footnotesize\\fi}%
Best,
Jinsong
|