[OS X TeX] Where to put file like "longdiv.tex"?

Herbert Schulz herbs at wideopenwest.com
Wed Feb 28 10:42:10 EST 2007


On Feb 28, 2007, at 8:39 AM, Alain Schremmer wrote:

> Any difference between "run[ning] texhash" (I assume from the  
> terminal) and LaTeXing from TeXShop?
>
> Regards
> --schremmer

Howdy,

It should be

sudo texhash

done from Terminal. This must be done if files are added to any tree  
OTHER than your personal tree, ~/Library/texmf/; new files in the  
personal tree are found automatically without running texhash.

To be able to find files quickly---after all there are thousands of  
files in a TeX distribution---a file, ls-R, is created, by running  
texhash, that allows for rapid searches of a tree structure. You must  
use sudo to run texhash because these ls-R files are created in  
directories that are not writable by normal users.

E.g., you can get a list of directories searched by pdflatex for .sty  
files using the command

kpsepath -n pdflatex sty

in Terminal. Items in that list that start with !! will be rapidly  
searched using the ls-R file rather than a recursive search through  
the tree. Notice that searches in your personal tree does NOT have a  
leading !!.

Good Luck,

Herb Schulz
(herbs at wideopenwest.com)



------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list