[tex-live] texdoc doesn't find man pages

Mojca Miklavec mojca.miklavec.lists at gmail.com
Tue Jul 15 13:57:07 CEST 2008


On Tue, Jul 15, 2008 at 1:01 PM, Heiko Oberdiek
<oberdiek at uni-freiburg.de> wrote:
> On Tue, Jul 15, 2008 at 10:05:34AM +0200, Mojca Miklavec wrote:
>
>> On Tue, Jul 15, 2008 at 9:44 AM, Werner LEMBERG wrote:
>> >
>> >> 2.) Why not copying those man pages parallel to bin folder (to
>> >> texlive/2008/bin/man)? Then they would be found by man
>> >> automatically.  I don't know the exact algorithm of man page
>> >> searching, but we have
>> >>     texmf-bin/bin/mptopdf
>> >>     texmf-bin/man/mptopdf.1
>> >> and that works. I guess that it would also work with the proposal
>> >> above, though I didn't test.
>> >
>> > IMHO it's a bad idea to clutter a `bin' directory with non-bin stuff.
>>
>> But on the other hand the easiest solution that works out of the box.
>
> A clean implementation shouldn't be that difficult, e.g.
> the program `man' checks the environment variable MANPATH.
> texdoc has access to texmf.cnf and knows how to find the various
> TDS trees with their man directories. Then it sets MANPATH for the
> call of man. I don't think that texdoc should be able to display
> *all* manual pages of the system.

For texdoc that's OK. texdoc can probably call man /path/to/command.1 directly.

I had
   man mptopdf
in mind.

Mojca


More information about the tex-live mailing list