[OS X TeX] how enable texdoc?
murrayeisenberg at gmail.com
Mon Aug 27 17:39:09 EDT 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?
> What do
> echo $PATH
> which pdflatex
> ls -alf /
> 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):
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:
Murray Eisenberg murrayeisenberg at gmail.com
80 Fearing Street phone 413 549-1020 (H)
Amherst, MA 01002-1912
More information about the MacOSX-TeX