![]() |
Installing and using a plug-in | ![]() |
From the user's point of view, a plug-in myplugin will usually be distributed on some web-site as a binary tarball with the name
myplugin-version-architecture.tar.gz
If you installed TeXmacs yourself in the directory $TEXMACS_PATH, then you should unpack this tarball in the directory $TEXMACS_PATH/plugins, using
tar -zxvf myplugin-version-architecture.tar.gz
This will create a myplugin subdirectory in $TEXMACS_PATH/plugins. As soon as you restart TeXmacs, the plug-in should be automatically recognized. If not, then click on Tools\(\rightarrow\)Update\(\rightarrow\)Plugins (or Insert\(\rightarrow\)Session\(\rightarrow\)Redetect) and relaunch TeXmacs: the results of the detection of plug-ins are cached, and these menu entries force a new detection. Please read the documentation which comes with your plug-in in order to learn using it; if the plug-in provides documentation, then it is available in the Help\(\rightarrow\)Plug-ins menu.
Remark 1. If you did not install TeXmacs yourself, or if you do not have write access to $TEXMACS_PATH, then you may also unpack the tarball in $TEXMACS_HOME_PATH/plugins. Here we recall that $TEXMACS_HOME_PATH defaults to $HOME/.TeXmacs (and to %APPDATA%\TeXmacs under Windows). When starting TeXmacs, your plug-in should again be automatically recognized. If a plug-in with the same name is installed both in $TEXMACS_HOME_PATH/plugins and in $TEXMACS_PATH/plugins, then the initialization file of the version in $TEXMACS_HOME_PATH is used.
Remark 2. If the plug-in is distributed as a source tarball like myplugin-version-src.tar.gz, then you should first compile the source code before relaunching TeXmacs. Depending on the plug-in (read the instructions), this is usually done using
cd myplugin; make
or
cd myplugin; ./configure; make
Remark 3. In order to upgrade a plug-in, just remove the old version in $TEXMACS_PATH/plugins or $TEXMACS_HOME_PATH/plugins using
rm -rf myplugin
and reinstall as explained above.