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.

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:

\usepackage{qtree}

I keep getting

File qtree.sty not found

share|improve this question
1  
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
add comment

1 Answer

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
add comment

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.