How to reproduce:
1. (setq imaxima-latex-preamble "\\usepackage{amsmath}")
in Emacs,
2. start imaxima (M-x imaxima
in Emacs)
3. in the maxima buffer, load("mactex-utilities")$
After this, all expressions will give a LaTeX error.
Cause:
imaxima
redefines \boxed
and \operatorname
.
Workaround:
use
(setq imaxima-latex-preamble "\\usepackage{amsmath}\n\\let\\boxed\\undefined\n\\let\\operatorname\\undefined")
instead, effectively undefining these commands after amsmath
is loaded.
Suggested permanent fix:
in imaxima.el
, \boxed
and \operatorname
should be defined using \renewcommand
.
Fixed by commit 6dc10134 (use renewcommand as suggested). Closing this report.