On Wed, 9 Feb 2000, Sebastian Rahtz wrote:

> Denis Barbier writes:
>  > For maximal customization, i prefer reading variables from texmf.cnf.
>  > Attached patch works with those lines in texmf.cnf:
>  >   TEXDOCSSUFFIX = :.dvi:.ps:.html:.txt
>  >   TEXDOCSCOMPRESS = :.gz:.bz2:.zip:.Z
>  >   TEXDOCEXT = {$TEXDOCSSUFFIX}{$TEXDOCSCOMPRESS}
> 
> not a good idea, on TeX Live at least. you do
>  texdoc longtable
> and it finds longtable.html from the Williams Catalogue *before*
> longtable.dvi.bz2. You need to try .dvi.bz2 immediately after .dvi

Every (te)TeX distribution has its preferred documentation format.
Order in which formats are parsed is actually hardcoded in texdoc, which
i do not like. To fit your needs you only have to edit texmf.cnf without
patching texdoc, e.g.
   TEXDOCSSUFFIX = :.html:.dvi:.doc

>  > There is one funny drawback: temporary file is removed before viewer is
>  > launched, but this should be easy to fix.
> sounds a bit fundamental...

Yes, but it will imply some changes in current texdoc's behaviour, so
Thomas will decide what is _the_ answer.

Denis

Reply via email to