[XeTeX] Texworks not finding .sty file

Shrisha Rao shrao at nyx.net
Thu May 3 01:41:34 CEST 2012


El may 3, 2012, a las 12:46 a.m., Malcolm Keating escribió:

> I am running TeXworks on my Mac OS X and trying to call:
> 
> \usepackage{utdiss2}
> 
> I have made sure that utdiss2.sty is located in the directory:
> 
> /usr/local/texlive/2011/texmf-dist/tex/latex/base/
> 
> However, when I compile, I get:
> 
> ! LaTeX Error: File `utdiss2.sty' not found.

It is generally better to put any special *.cls and *.sty files (something not part of TeX Live proper) for a paper, thesis, etc., in the document's own subdirectory, and to consider them part of the set of files (along with *.tex, *.bib, *.eps, etc.) that go into building your document.  So if you create a tarball for your document, include the special *.cls and *sty along with the *.tex, the *.bib, etc., and port them alongside.  It is possible to add stuff to the TeX Live tree by hand but such changes are quite brittle, and in any case your document will then also not build on other machines (e.g., work desktop instead of personal laptop).

Regards,

Shrisha Rao

> Malcolm




More information about the XeTeX mailing list