From: <ari...@ic...> - 2018-11-28 15:56:49
|
Hello, I have good news that Maxima plug-in of TeXmacs-1.99.7/1.99.8 begins to support inline plots. The mechanism is that tm_plot2d function creates a PostScript file and loads it in order to display its plot. But the function is only tm_plot2d. Other inline plot functions have not been supplied yet. It seems to be an experimental implementation. See official svn or mirror github: http://svn.savannah.gnu.org/viewvc/texmacs/trunk/src/plugins/maxima/ https://github.com/texmacs/texmacs/tree/master/plugins/maxima Sadly, it has some bugs that tm_plot2d fails to display plots when the "Evaluate all" menu is chosen. So I fixed the bug and added some more plot functions to support inline plots. The upgraded file is "texmacs-maxima.lisp" which is attached to this mail. It is an essential element of the Maxima plug-in of TeXmacs. It includes the following inline plot functions: tm_plot2d tm_plot3d tm_contour_plot tm_implicit_plot tm_julia tm_mandelbrot tm_draw tm_draw2d tm_draw3d tm_drawdf is not included, but you can use it as follows: load("drawdf")$ tm_drawdf([params]) := (tm_draw(apply('df_graphics, params)), 0)$ I'm using macOS, but I expect that the new "texmacs-maxima.lisp" file will work well on other OS. How to install the "texmacs-maxima.lisp" file to TeXmacs on macOS: (0) Quit TeXmacs if it is running. (1) Find the original "texmacs-maxima.lisp" file in TeXmacs in order to get the path. ---------------------------------------- $ find /Applications/TeXmacs-1.99.8.app -iname 'texmacs-maxima.lisp' /Applications/TeXmacs-1.99.8.app/Contents/Resources/share/TeXmacs/plugins/maxima/lisp/texmacs-maxima.lisp ---------------------------------------- (2) Make a copy of the original "texmacs-maxima.lisp" file. ---------------------------------------- $ cp -ip /Applications/TeXmacs-1.99.8.app/Contents/Resources/share/TeXmacs/plugins/maxima/lisp/texmacs-maxima.lisp /Applications/TeXmacs-1.99.8.app/Contents/Resources/share/TeXmacs/plugins/maxima/lisp/texmacs-maxima.lisp.orig ---------------------------------------- (3) Replace the original "texmacs-maxima.lisp" file with the new one. (the following "$HOME/Downloads/texmacs-maxima.lisp" is a path to the new "texmacs-maxima.lisp") ---------------------------------------- $ cp -ip $HOME/Downloads/texmacs-maxima.lisp /Applications/TeXmacs-1.99.8.app/Contents/Resources/share/TeXmacs/plugins/maxima/lisp/texmacs-maxima.lisp overwrite /Applications/TeXmacs-1.99.8.app/Contents/Resources/share/TeXmacs/plugins/maxima/lisp/texmacs-maxima.lisp? (y/n [n]) y ---------------------------------------- Have fun. Thanks, Tomio Arisaka |