0

I'm trying to automate the MikTeX configuration without the use of any GUI, is there any possible way to add local textmf into root directories maybe by just editing some .ini files or via the command prompt?

Coby Viner
  • 1,939
John W
  • 11
  • 2
    Command prompt: initexmf --register-root=DIR and initexmf --unregister-root=DIR. DIR is the path to the local texmf. – esdd Jun 20 '18 at 06:44
  • See also https://docs.miktex.org/manual/initexmf.html (which I only found because esdd gave the answer). Unfortunately https://miktex.org/kb/texmf-roots and https://docs.miktex.org/manual/localadditions.html (which I found before) only mention the console. Maybe you could ask the MikTeX maintainer to mention the command line solutions more prominently. – moewe Jun 20 '18 at 07:00
  • 2
    See also https://tex.stackexchange.com/a/187414/2388 – Ulrike Fischer Jun 20 '18 at 07:25
  • On unix-like systems, including macosx, you should be able to do this by adding the directories t the environment variable $TEXMFLOCAL. Not sure if this works with PCs and hence MikTeX... Perhaps not, see https://tex.stackexchange.com/questions/118793/miktex-does-not-use-texmflocal-environment-variable –  Jun 20 '18 at 07:28
  • 1
    @esdd initexmf --register-root=DIR actually work out just fine, thanks alot. – John W Jun 20 '18 at 08:11

0 Answers0