[OS X TeX] Man pages for latex installation

Bruno Voisin bvoisin at mac.com
Mon Jun 11 19:54:09 CEST 2007


Le 11 juin 07 à 17:58, Alan Munn a écrit :

> At 10:40 AM -0500 6/11/07, Chris Goedde wrote:
>
>> On Jun 11, 2007, at 10:08 AM, Alan Munn wrote:
>>
>>> For some reason the man command doesn't seem to find any man  
>>> pages for binaries in my TeX installation, either gwTeX or TeX Live.
>>>
>>> I seem to have the right entries in /usr/share/misc/man.conf  
>>> (i.e. the following lines show up in it:)
>>>
>>> ## TeX modifications start at Fri May 18 07:56:22 EDT 2007
>>> ## Do not remove previous line
>>> MANPATH /Library/TeX/Distributions/.DefaultTeX/Contents/Man
>>> ## Do not remove next line
>>> ## TeX modifications end at Fri May 18 07:56:22 EDT 2007
>>> ## TeXMap modifications start at Fri May 18 07:56:22 EDT 2007
>>> ## Do not remove previous line
>>> MANPATH_MAP /usr/texbin /Library/TeX/Distributions/.DefaultTeX/ 
>>> Contents/Man
>>> ## Do not remove next line
>>> ## TeXMap modifications end at Fri May 18 07:56:22 EDT 2007
>>>
>>> Yes when I do 'setenv' is displays
>>>
>>> MANPATH=/usr/share/man:/usr/local/share/man:/usr/X11R6/man
>>>
>>> which isn't right, and man <command> yeilds "No manual entry for  
>>> <command> " if <command> is one of the TeX binaries.
>>>
>>> What can I do to fix this?  Is there some other place that the  
>>> path could be set, overriding what's in man.conf?
>>>
>>> (I'm using tscsh as my shell; neither my .login file nor  
>>> my .cshrc file contain manpath statements.)
>>
>> I believe that this was discussed about a year ago, in this  
>> thread: http://tug.org/mailman/htdig/macostex-archives/2006-July/ 
>> 023572.html (if you follow that link, just click on "thread" and  
>> you can follow the discussion).
>>
>> The tex installers install the binaries in /usr/local/bin and the  
>> man pages in /usr/local/man, but Mac OS X is set up to have the  
>> man pages in /usr/local/share/man. There are various solutions to  
>> this (discussed in that thread); the one I chose was to move the  
>> man pages to /usr/local/share/man. If you do that, then everything  
>> just works and you don't have to edit any configuration files. I  
>> think there's a solution via editing .cshrc, .login, or man.conf  
>> but I haven't tried any of those.
>
> Thanks, Chris.  I remember reading this thread, and see that I  
> modified my man.conf file in  the following way:
>
> I have the following lines (in addition to the default associations)
>
> MANPATH /usr/local/man
>
> and
>
> MANPATH_MAP	/usr/local/bin		/usr/local/man
>
> yet things still don't work.
>
> I would prefer to use the man.conf solution than moving the man  
> files themselves, since any new additions to /usr/local would need  
> to be moved manually, which is just another thing to remember. So  
> perhaps those who have taken the man.conf solution to the problem  
> could weigh in here on what I've done wrong.

Gerben Wierda just posted the following message to the MacTeX list. I  
don't think he will mind my forwarding it here, as it answers  
partially the present discussion.

Bruno


> De : Gerben Wierda
> Date : 11 juin 2007 15:25:02 HAEC
> À : "MacOS X and TeX."
> Objet : Rép : [MacTeX] Path settings
> Répondre à : "MacOS X and TeX."
>
> Hi folks,
>
> On Jun 8, 2007, at 11:45 , Morten Høgholm wrote:
>
>>>         export PATH=/usr/texbin:$PATH
>>>         export MANPATH=/Library/TeX/Distributions/.DefaultTeX/
>>> Contents/Man:
>>> $MANPATH
>>>
>>> With this change, tex command line programs and man files will be
>>> found in
>>> the distribution selected by the TeX Dist preference pane.
>>
>> Thanks, this was what I had managed to do already except I was  
>> missing
>> the MANPATH setting. Just wanted to hear from the experts since I am
>> not so Unix-savvy.
>
> The use of the MANPATH environment variable is deprecated in a modern
> man setup. It overrules more intelligent settings in man.conf
> (manpath.conf on some systems).
>
> As is, $MANPATH is empty (try "echo $MANPATH" on a basic Mac OS X
> account). So, if you want to create a MANPATH variable, best is to
> inherit from the settings in man.conf. This can be done by using the
> manpath command.  The manpath command gives you the current path man
> would use. On my system I get
>
> $ manpath
> /usr/share/man:/Library/TeX/Distributions/.DefaultTeX/Contents/Man:/
> usr/local/share/man:/usr/local/man:/usr/X11R6/man
>
> E.g. instead of the above, one would write (dynamically getting
> manpath):
>
> export MANPATH=/Library/TeX/Distributions/.DefaultTeX/Contents/
> Man:`manpath`
>
> after which one would have a static (deprecated, mind you) setting
> based on the previous dynamic one.
>
> see "man man"  for details.
>
> G

------------------------- 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 macostex-archives mailing list