I'm writing a paper that depends on a file elsarticle.cls and also a file clrscode3e.sty (they're for two different things - not related). I have placed both files in my ~/texmf directory. When I remove anything in my .tex file dependent on clrscode3e.sty and compile with LaTeX, everything is fine and from the output formatting i can see that elsarticle.cls has clearly been recognised. When I add something which depends on clrscode3e.sty, I get "File clrscode3e.sty not found". To verify that I hadn't mistyped anything, I tried moving clrscode3e.sty into the same directory as the .tex file being compiled and everything worked fine. Why would LaTeX recognise a .cls file in my ~/texmf directory but not a .sty file?
Tell me more
×
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.
|
|
||||
| show 2 more comments |
|
The most likely answer here is that neither file is being loaded from In general, TeX will find any |
||||
|
|
~/texmf/tex/latex/SOMENAMEand runtexhash. See tex.stackexchange.com/questions/2063/… and other previous related questions. – Leo Liu Feb 11 '11 at 8:15