<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>As mentioned by Pete, you have to update the database of filenames that TeX uses to locate files on your computer.</span></div><div><br><span></span></div><div>In most tex-distributions there are four places where stylefiles and classfiles may be located:</div><div><br></div><div>- In the tree of the distribution itself. For most casual users, this is the only place where tex-related files will be</div><div>- A "system-wide local tree" - this is intended to put files which are common to all users on a multi-user system, but do not belong to the tex distribution. For instance a university group may have their thesis style files in such a place. This tree is not touched if the main tex-tree is updated. <br></div><div>- A "user local tree" - intended to hold files relating to an individual user</div><div>- In the "source
 directory"</div><div><br></div><div>Only the "source directory" is scanned automatically by tex. For files in all other locations, a database is maintained. In all cases, you have to specify the "basis" directory. Underneath that basis directory, you have to maintain the TeX Directory Structure (TDS) because the search engine will only search directory trees which have the correct sturcture. There are several configuration settings to instruct tex as to which directories are (recursively) added to the tex-tree. In TeXLive, the variables are $TEXMFMAIN, $TEXMFLOCAL, $TEXMFHOME, $TEXMF, and others. You can get an overview by typing "texconfig" in a terminal window.</div><div><br></div><div>Of course, a user may break the rules and put files elsewhere - but then you have to make sure that tex knows where your files are.</div><div><br></div><div>Cheers,</div><div>Wilfred<br><span></span></div><div><span><br></span></div><div><br></div>  <div
 style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Malcolm Keating <c.malcolm.keating@gmail.com><br> <b><span style="font-weight: bold;">To:</span></b> xetex@tug.org <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 3 May 2012, 4:16<br> <b><span style="font-weight: bold;">Subject:</span></b> [XeTeX] Texworks not finding .sty file<br> </font> </div> <br><meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv918760032">I am running TeXworks on my Mac OS X and trying to call:<div><br></div><div>
<div style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;">\usepackage{utdiss2}</div><div style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;"><br></div><div style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;">
I have made sure that utdiss2.sty is located in the directory:</div><div style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;"><br></div><div style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;">
/usr/local/texlive/2011/texmf-dist/tex/latex/base/</div><div><br></div><div>However, when I compile, I get:</div><div><br></div><div>! LaTeX Error: File `utdiss2.sty' not found.</div><div><br></div><div>I have spent several hours looking online to see if I am putting the files in the wrong directory or if there is an additional step I need to perform in order to make TeXworks recognize the file. I've come up empty (I've tried putting the file in numerous places and still get the same result). I tried to run texhash using Terminal, but when I ran "sudo texhash" I got the reply "command not found."</div>
<div><br></div><div>Any suggestions? My apologies for most likely missing something obvious. I've been using XeLaTeX for only a few months now.</div><div><br></div><div>Thanks,</div><div>Malcolm</div><div><br></div><div>
<br></div>
</div>
</div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br><br>--------------------------------------------------<br>Subscriptions, Archive, and List information, etc.:<br>  <a href="http://tug.org/mailman/listinfo/xetex" target="_blank">http://tug.org/mailman/listinfo/xetex</a><br><br><br> </div> </div>  </div></body></html>