Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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?

share|improve this question

2 Answers 2

up vote 13 down vote accepted

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.)

share|improve this answer

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.