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

I copied the qtree.sty file to my /usr/share/texmf-texlive/tex/latex directory (pretty much everywhere there, in graphics/ , base/ even in qtree/) but when I run Lyx and insert the following command LaTeX Preamble:


I keep getting

File qtree.sty not found

share|improve this question
you forgot to run texhash tu update the data base – Herbert Nov 9 '11 at 17:27
path was in /usr/local/share/texmf/tex/latex – Asaf Nov 9 '11 at 17:37
what's the difference between texhash and mktexlsr – Asaf Nov 9 '11 at 17:38
no difference it is the same. texhash is a link to mktexlsr – Herbert Nov 9 '11 at 17:43
up vote 1 down vote accepted

You should not put it in the main tree, but rather in the local tree:

sudo mkdir -p $(kpsewhich -var-value TEXMFLOCAL)/tex/latex/qtree
sudo cp qtree.sty $(kpsewhich -var-value TEXMFLOCAL)/tex/latex/qtree/
sudo mktexlsr

The first command tells the system to create the required structure; the second one copies the file, the third finally tells the TeX system where to find it.

If sudo is not the way you act as a superuser, then use the proper method for your operating system.

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.