TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On UNIX you have the texmf folder in your home directory where you store packages you've installed yourself, but where is that folder on a Windows install?

Yeah, I know that if you use MiKTeX then you don't need to worry about it since it installs needed packages on-the-fly, but I'm still interested. =)

share|improve this question
Are you using MiKTeX or TeX Live or w32tex or any else? – Leo Liu Mar 5 '11 at 8:52
@Leo Liu: MiKTeX. – gablin Mar 7 '11 at 15:30
up vote 13 down vote accepted

'texmf' is not the exact directory name, but refer to the root paths of the TeX distribution. There are often more than one 'texmf' tree, and they are often not called 'texmf'. In MiKTeX, you can find all texmf tree in MiKTeX's option (Start menu -> MiKTeX -> Maintenance -> settings):

enter image description here

share|improve this answer
Does a Linux install also apply multiple root paths? – gablin Mar 7 '11 at 15:32
Yes. TeX Live 2010 has texmf, texmf-dist, texmf-var, texmf-local, texmf-config and ~/.texlive2010/texmf-var, ~/.texlive2010/texmf-config, for both Windows and Linux. – Leo Liu Mar 7 '11 at 15:46

You could type at the command prompt:

kpsewhich -var-value TEXMFHOME


kpsewhich -expand-var '$TEXMFHOME'

While on my Linux system, it returns /home/stefan/texmf, on Windows it may return something like c:\users\gablin\texmfhome depending on where yur Windows user profile is.

The syntax of kpsewhich may vary depending on the system, for example regarding the quotes or dashes. Type kpsewhich --help.

share|improve this answer

Your Answer


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.