18

In Tex Live there are several local texmf trees (TEXMFLOCAL for admin and TEXMFHOME for user, compare comments and answers to What are TeXLive's four different texmf folders?), in MiKTeX I manually can add them, see Create a local TeXMF tree in MiKTeX, but:

What's the purpose of a local texmf directory tree?

2 Answers 2

18

There are several reasons:

(In the following sections see “package” in a broader meaning including also scripts, binaries etc.)

  • The TeX distributions do not install all available packages known in the TeX world. TeX Live includes only packages, which come with a free licence; MiKTeX is not that strict about that, but, as far as I see, both distributions do include only packages, which are available on CTAN. Still today an uncountable amount of packages is obtainable only on their own web sites. You could include these packages into the normal tree, but very likely you would lose them on a distribution update. Also they would not automatically be updated by the package managers, you need to do this manually for your own. In a local texmf tree in my humble opinion this is obvious, hidden in the main texmf tree this can easily be forgotten.

  • For a couple of packages you can get test versions. These should in no way go into the normal package tree (with overwriting the stable version!). The local texmf directory is always searched first, and so, if there exist two versions of the same package, the test version ist found before the regular.

  • For some packages and utilities you can configure preferred settings, which will be saved in configuration files and are to be contained on an update of the TeX distribution. So they must be in a local tree. (Note: For this purpose there are special local trees pre-installed.)

12

There are more reasons for TEXMFLOCAL and TEXMFHOME. Let us first consider TEXMFLOCAL:

  • Fonts, style files, etc that are local to the department, company, etc, that cannot be uploaded or used outside the company/school/whatever, but should be available for everyone within the company.

In the same way you can consider TEXMFHOME

  • Personal material, privately purchased items etc: I have purchased several font sets, that I am allowed to use, but of course not share, not even to other users of the same computer system. So I put them into TEXMFHOME, where only I have access to.

So it is about proper separation to where the material comes from and for whom it is intended.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .