Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#2718 imaxima LaTeX definitions conflict with amsmath

None
closed
nobody
imaxima (3)
5
2014-05-13
2014-04-08
Tamas Papp
No

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.

Related

Bugs: #2816

Discussion

  • Robert Dodier
    Robert Dodier
    2014-05-13

    • labels: --> imaxima
    • status: open --> closed
     
  • Robert Dodier
    Robert Dodier
    2014-05-13

    Fixed by commit 6dc10134 (use renewcommand as suggested). Closing this report.