[texhax] how to set search path of sty

Reinhard Kotucha reinhard.kotucha at web.de
Thu Apr 9 00:40:48 CEST 2009


On 7 April 2009 bill lam wrote:

 > (resend, apologise if duplicated)
 > 
 > I installed texlive 2008 from tug and then installed dblatex. When
 > trying to convert a file from docbook to pdf, it complained,
 > 
 > Document Class: article 2005/09/16 v1.4f Standard LaTeX document class
 > (/usr/local/texlive/2008/texmf-dist/tex/latex/base/size10.clo))
 > (/usr/local/texlive/2008/texmf-dist/tex/latex/base/fontenc.sty
 > (/usr/local/texlive/2008/texmf-dist/tex/latex/base/t1enc.def))
 > (/usr/local/texlive/2008/texmf-dist/tex/latex/base/inputenc.sty
 > (/usr/local/texlive/2008/texmf-dist/tex/latex/base/latin1.def))
 > (/usr/local/texlive/2008/texmf-dist/tex/latex/fancybox/fancybox.sty
 > Style option: `fancybox' v1.3 <2000/09/19> (tvz)
 > ) (/usr/local/texlive/2008/texmf-dist/tex/latex/base/makeidx.sty)
 > 
 > ! LaTeX Error: File `docbook.sty' not found.
 > 
 > 
 > Actually that docbook.sty is located inside another place
 > 
 > /usr/local/share/dblatex/latex/style/docbook.sty
 > 
 > How to configure so that it also use sty outside /usr/local/texlive/2008 ?

Please look into "texmf/web2c/texmf.cnf".  The comments in this file
are quite useful.  You probably have to add the path to docbook.sty
there.  However, the TeX Live manaul provides some useful
information too.  And if you type "info kpathsea" on the command line,
you'll get some invaluable information about how this quite complex
TeX system works. 

Whenever you add a new file, you also have to run "texhash" in order
to update the file database.

Regards,
  Reinhard

-- 
----------------------------------------------------------------------------
Reinhard Kotucha			              Phone: +49-511-3373112
Marschnerstr. 25
D-30167 Hannover	                      mailto:reinhard.kotucha at web.de
----------------------------------------------------------------------------
Microsoft isn't the answer. Microsoft is the question, and the answer is NO.
----------------------------------------------------------------------------


More information about the texhax mailing list