![]() |
Important TeXmacs paths | ![]() |
Before writing your own style file, it is useful to know the following important TeXmacs paths (see also init_env_vars in
src/System/Boot/init_texmacs.cpp
). Each of them may be overridden by setting the corresponding environment variable before launching TeXmacs.
$TEXMACS_PATH is the main path for TeXmacs.
$TEXMACS_HOME_PATH is the main user path for TeXmacs files (documents, styles or programs). By default, this path is set to ~/.TeXmacs.
$TEXMACS_STYLE_ROOT the root directories for style files. By default, this path contains $TEXMACS_HOME_PATH/styles, $TEXMACS_PATH/styles and the styles subdirectories of the installed plug-ins.
$TEXMACS_PACKAGE_ROOT the root directories for style packages. By default, this path contains $TEXMACS_HOME_PATH/packages, $TEXMACS_PATH/packages and the packages subdirectories of the installed plug-ins.
$TEXMACS_STYLE_PATH contains the path for including style files and packages. By default, this path contains all subdirectories (recursively) of $TEXMACS_STYLE_ROOT and $TEXMACS_PACKAGE_ROOT. In particular, the subdirectory structure of these directories is irrelevant when referring to a style or package by its name.
$TEXMACS_TEXT_ROOT and $TEXMACS_TEXT_PATH are similar paths for text files; by default the roots are $TEXMACS_HOME_PATH/texts, $TEXMACS_PATH/texts and the texts subdirectories of the plug-ins.
$TEXMACS_FILE_PATH contains the path for searching files. By default, this path contains $TEXMACS_TEXT_PATH and $TEXMACS_STYLE_PATH.