emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Maxima code blocks does not work in windows revisited


From: Mati
Subject: Re: [O] Maxima code blocks does not work in windows revisited
Date: Tue, 1 Nov 2022 22:14:03 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.4.1

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]