+-------------------------------------------------------------------------------
| Running TeXmacs on OpenBSD
+-------------------------------------------------------------------------------

Plug-ins
========

Many plug-ins for external software exist for GNU TeXmacs. Install the
corresponding packages to use these plug-ins (e.g., `pkg_add gnuplot').

dratex: texlive_texmf-full
gnuplot: gnuplot
graphviz: graphviz
lisp: clisp
maxima: maxima
octave: octave and gnuplot
pari: pari
R: R
sympy: py3-sympy

Usage
-----
Once an external package has been installed, it should be listed in the
following menus.

Interactive session: Insert > Session

Executable folded environment: Insert > Fold > Executable

Interface to R
--------------
The TeXmacs interface to R requires additional setup. An R package for the
interface will be built and installed. Give write permissions to the group
(e.g., puffy) running TeXmacs:

# chown root:puffy /usr/local/lib/R/library/
# chmod 775 /usr/local/lib/R/library/

Start an R session in TeXmacs: Insert > Session > R

The tutorial can now be followed: Help > Plug-ins > R

Documentation
-------------
Inside TeXmacs: Help > Plug-ins
/usr/local/share/TeXmacs/plugins/*/doc
https://www.texmacs.org/tmweb/plugins/plugins.en.html
