Menu

#2718 imaxima LaTeX definitions conflict with amsmath

None
closed
nobody
imaxima (18)
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.

     

Log in to post a comment.