[OS X TeX] Re: Texdoc

Denis Chabot chabotd at globetrotter.net
Tue Apr 20 04:04:01 CEST 2010

Well, thanks for many useful answers.

> From: "Adam R. Maxwell" <amaxwell at mac.com>
> If you use the standard TeX Live UNIX installer, it won't set your path.  MacTeX will set your path, but upgrading the operating system after installing MacTeX will reset it.
> hth,
> Adam

I used MacTeX. Upgrading to Snow Leopard (that was quite a while ago though) must have done it.

> From: Herbert Schulz <herbs at wideopenwest.com>
> Did you install TeX Live directly or via MacTeX? Assuming the latter you should have a TeX Distribution System Preference Pane which shows the active distribution.

TeXLive 2009

> What does
> which pdflatex
> return in Terminal? It should return
> /usr/texbin/pdflatex

Nope, in my case in returns my home directory.
> if not something happened to you PATH setting. Did you recently upgrade to Snow Leopard from Leopard? That would return the PATH to its original setting. See QM.10 on the MacTeX FAQ, <http://www.tug.org/mactex/2009/faq/>, for instructions on how to fix the problem.

useful document. But I thought the relevant part for me was:

	• Upgrading to Snow Leopard may remove /usr/texbin from your default PATH. If so, fix the problem by creating a text file named TeX with contents

and then moving this file to /etc/paths.d. One way to create the file is to use "cat" in Terminal as follows:
cd Desktop 
cat > TeX 

and then type control-D to complete the command. Now move this file to /etc/paths.d as follows
sudo cp TeX /etc/paths.d 

I did all this and then typed texdoc texdoc in the terminal, to no avail:

LAUChabotD-QC-DFO-MPO-GC-CA:Desktop dchabot$ cat > TeX 

LAUChabotD-QC-DFO-MPO-GC-CA:Desktop dchabot$ sudo cp TeX /etc/paths.d 
LAUChabotD-QC-DFO-MPO-GC-CA:Desktop dchabot$ texdoc texdoc
-bash: texdoc: command not found

But I do not care too much because of Herb's next point:

> One other thing to note, TeXShop has an interface to texdoc, Help->Show Help for Package... (Opt-Cmd-I in recent TeXShop builds [2.33 is the latest version]), that might help too.
> Good Luck,
> Herb Schulz
> (herbs at wideopenwest dot com)

This works fine and is much more convenient!

> From: David Messerschmitt <messer at eecs.berkeley.edu>
> Thanks, this is precisely what I was asking for. So a related question...I assume this help menu feature is not broken by reinstalling the OS like the command line approach? (If so, this is another easier route for Denis.)
> -dave

> From: Gilberto <ah.gilberto.c at gmail.com>
> Are you running mac os x 10.6.x? Did you install texlive 2009 under  
> 10.5.x and then migrated everything to snow leopard?
> If so, reinstalling texlive 2009 will fix all broken links.
> Gilberto
I may have to do this.

So thanks everyone.


More information about the macostex-archives mailing list