[OS X TeX] TexShop suddenly can't find pdflatex.fmt (even though it's there)

Martin Costabel costabel at wanadoo.fr
Wed Sep 10 15:18:57 EDT 2008


Nathaniel Pearson wrote:
> Hi Herb,
> 
> Thanks for helping.  I'm not sure what my $PATH is (sorry, I'm a linux 
> amateur here...).  which latex gives:
> 
> /sw/bin/pdflatex
> 
> Texshop typesetting prefs:
> Default command: latex
> Default script: pdftex
> 
> Engine prefs: path settings for pdftex: /usr/texbin
> distller: /usr/local/bin
> 
> Does that help explain what's happening?  Thanks,

You need to tell your system that it should look in /usr/texbin before 
/sw/bin. For this, you edit the file

   ~/.bash_profile

(this is the default, if you don't have it, it could also be
~/.bash_login or ~/.profile). There is a line

   test -r /sw/bin/init.sh && . /sw/bin/init.sh

in this file. Add another line

   export PATH=/usr/texbin:$PATH

after the one with /sw/bin/init.sh.

Once you have done this and opened a new Terminal window, `which latex`
should give /usr/texbin/latex.

-- 
Martin








More information about the MacOSX-TeX mailing list