TEXMF root directories
MiKTeX organizes files in multiple TDS-compliant directory trees. The roots of these trees are called TEXMF root directories.
The TEXMF root directories managed by MiKTeX are the following:
- UserConfig: for user-specific configuration files
- UserData: for user-specific data files (format files, font caches, ...)
- UserInstall: the installation destination for packages installed by the user
- CommonConfig: for shared (system-wide) configuration files
- CommonData: for shared (system-wide) data files (format files, font caches, ...)
- CommonInstall: the installation destination for packages installed by the MiKTeX administrator
Standard locations
The locations of the managed TEXMF root directories vary from platform to platform.
Windows
UserConfig: %USERPROFILE%\Roaming\MiKTeX\2.9
UserData: %USERPROFILE%\Local\MiKTeX\2.9
UserInstall: %USERPROFILE%\Roaming\MiKTeX\2.9
CommonConfig: C:\ProgramData\MiKTeX 2.9
CommonData: C:\ProgramData\MiKTeX 2.9
CommonInstall: C:\Program Files\MiKTeX 2.9
Linux
UserConfig: $HOME/.miktex/texmfs/config
UserData: $HOME/.miktex/texmfs/data
UserInstall: $HOME/.miktex/texmfs/install
CommonConfig: /var/lib/miktex-texmf
CommonData: /var/cache/miktex-texmf
CommonInstall: /usr/local/share/miktex-texmf
macOS
UserConfig: $HOME/Library/Application Support/MiKTeX/texmfs/config
UserData: $HOME/Library/Application Support/MiKTeX/texmfs/data
UserInstall: $HOME/Library/Application Support/MiKTeX/texmfs/install
CommonConfig: /Library/Application Support/MiKTeX/texmfs/config
CommonData: /Library/Application Support/MiKTeX/texmfs/data
CommonInstall: /Library/Application Support/MiKTeX/texmfs/install
Your own TEXMF root directories
You can register additional TEXMF root directories. For example, if you have files (such as LaTeX styles) that you want to integrate into the MiKTeX setup, you can do the following:
- Create a directory, say
~/mytexmf
, which serves as the new TEXMF root directory. - Create TDS-compliant subdirectories and move/copy your files here.
- Start MiKTeX Console and open the
Settings
page. - Click the
Directories
tab. - Click the
Add
button and browse to the TEXMF root directory created earlier (step 1).