emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mati <mati@electrum-bikes.pl>
To: emacs-orgmode@gnu.org
Subject: Re: [O] Maxima code blocks does not work in windows revisited
Date: Tue, 1 Nov 2022 22:14:03 +0100	[thread overview]
Message-ID: <e3db4a97-55fb-b272-51d9-505212dd1d0b@electrum-bikes.pl> (raw)
In-Reply-To: <87sfj2mv0i.fsf@t14.reltub.ca>

>> 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	other threads:[~2022-11-01 21:16 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-01  7:45 [O] Maxima code blocks does not work in windows revisited Mati
2022-11-01  8:04 ` Ihor Radchenko
2022-11-01 10:34   ` Mati
2022-11-01 17:42     ` Leo Butler
2022-11-01 21:14       ` Mati [this message]
2022-11-02  4:47     ` Ihor Radchenko
2022-11-02  7:35       ` Mati
2022-11-02  7:44         ` Ihor Radchenko
     [not found]           ` <7b358b1a-95d8-4733-5a44-4e6e4c782d8f@electrum-bikes.pl>
     [not found]             ` <87eduk8tas.fsf@localhost>
2022-11-03 11:39               ` Mati
2022-11-02 15:17       ` Max Nikulin
2022-11-02 20:11         ` Leo Butler
2022-11-03  2:35           ` Max Nikulin
2022-11-03 10:01             ` Fraga, Eric
2022-11-03 15:54               ` Max Nikulin
2022-11-03 16:09                 ` [PATCH] " Leo Butler
2022-11-06  2:54                   ` Ihor Radchenko
2022-11-07 15:04                     ` Leo Butler
2022-11-03  6:08         ` Ihor Radchenko
2022-11-03  6:09         ` Ihor Radchenko
  -- strict thread matches above, loose matches on Subject: below --
2022-10-31 22:00 [O] " ELECTRUM BIKES

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e3db4a97-55fb-b272-51d9-505212dd1d0b@electrum-bikes.pl \
    --to=mati@electrum-bikes.pl \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).