I am testing maxima-mode now (not in org) and it works, but is broken
on windows. Looks like there are many more problems with syntax.
I am interested to know what is broken in maxima-mode. Please
explain with examples.
Best,
Leo
There is problem with handling ghostscript. Ghostscript gui opens three
times, one time with commands help, and error is displayed in
minibuffer: "Your version Ghostscript does not appear to support the
image type -sDEVICE=png16m. The command "gs -h" lists the available
devices." when it does support it. maybe if I could use setup file it
would work, but it gives error: Wrong type argument: stringp, nil. I
also had to correct miktex path in this function, but without
modification this error occurs too
Overall, configuration on windows is a pain. manually installing
packages in miktex and ghostscript (not that bad, but I had to dig to
find that's neccesary), wondering what code actually should be put in
init.el, finding and moving files from maxima installation to site-lisp,
adding installation pathes to path environment variable because
setup-imaxima-imath.el is not working...
Plots produce output but it's not inline in emacs buffer, but gnuplot
window.
My current path to miktex binary is:
C:\Users\user\AppData\Local\Programs\MiKTeX\miktex\bin\x64
My init.el config for maxima:
(add-to-list 'load-path "~/.emacs.d/site-lisp/maxima/")
(load-file "~/.emacs.d/site-lisp/maxima/setup-imaxima-imath.el")
(use-package maxima
:custom (maxima-display-maxima-buffer nil)
:mode ("\\.ma[cx]" . imaxima)
:interpreter ("maxima" . imaxima))
;;(autoload 'maxima-mode "maxima" "Maxima mode" t)
(autoload 'imaxima "imaxima" "Frontend for maxima with Image support" t)
;;(autoload 'maxima "maxima" "Maxima interaction" t)
(autoload 'imath-mode "imath" "Imath mode for math formula input" t)
;;(setq imaxima-use-maxima-mode-flag t)
;;(setq imaxima-gs-program "gswin64")
(setq imaxima-fnt-size "large")
(setq imaxima-pt-size 12)
;;(add-to-list 'auto-mode-alist '("\\.ma[cx]" . maxima-mode))
(org-babel-do-load-languages
'org-babel-load-languages
'((maxima . t))) ; this line activates maxima