[OS X TeX] how enable texdoc?

Murray Eisenberg murrayeisenberg at gmail.com
Mon Aug 27 23:39:09 CEST 2012


On Aug 27, 2012, at 3:00 PM, Herbert Schulz <herbs at wideopenwest.com> wrote:
> 
> On Aug 27, 2012, at 8:45 AM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
> 
>> I have MacTeX 2012 installed and running (under Mountain Lion). How do I enable texdoc to work from a command line in Terminal?
>> 
>> I find, e.g.:
>> 
>> $ texdoc mathmode
>> -bash: texdoc: command not found
>> 
>> Is there some reason texdoc is not automatically made available to bash when MacTeX 2012 is installed?
>> 
> 
> Howdy,
> 
> What do
> 
> echo $PATH
> 
> and
> 
> which pdflatex
> 
> and
> 
> ls -alf /
> 
> and
> 
> ls -alf /usr
> 
> return when run in Terminal? Did you update to Mountain Lion after installing MacTeX?

I did update to Mountain Lion after installing MacTeX 2012.

'which pdflatex' gives /usr/texbin/pdflatex. So I added /usr/texbin to my $PATH and now texdoc works as expected. Now 'echo $PATH' gives (for readability, new-lines inserted in output):

/Volumes/MacHD/Applications/Math/Macaulay2-1.4/bin:
/usr/texbin:
/Library/Frameworks/Python.framework/Versions/3.2/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:
/opt/local/bin:/opt/local/sbin:
/usr/local/mysql/bin:
/Volumes/MacHD/Applications/Math/Singular/3-1-5/ix86Mac-darwin/:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

Also, 'ls -alf /usr/' output includes:

rwxr-xr-x     1 root  wheel     63 Jul  8 11:15 texbin -> /Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin

BTW, that was surprising, since that target texbin of the /usr/texbin symlink is itself a symlink back to: 

  /Library/TeX/Distributions/.FactoryDefaults/TeXLive-2012/Contents

---
Murray Eisenberg                     murrayeisenberg at gmail.com
80 Fearing Street                      phone 413 549-1020 (H)
Amherst, MA 01002-1912








More information about the macostex-archives mailing list