[tex-live] TEXDOCVIEW_pdf ???

Heiko Oberdiek oberdiek at uni-freiburg.de
Mon Aug 4 17:03:24 CEST 2008


On Mon, Aug 04, 2008 at 03:13:14PM +0200, Norbert Preining wrote:

> On Mo, 04 Aug 2008, Rolf Niepraschk wrote:
> >   export TEXDOC_VIEWER_PDF='(kpdf %s) &'

My older texdoc (unknown version, <= 2004) uses TEXMFDOCVIEW_pdf.

> > But the result is the same. "Evince" instead of "kpdf" starts. What is 
> > wrong?
> 
> Hmm, reading the source code I see:
>         viewer_pdf  = os.getenv ("PDFVIEWER"),
>         viewer_ps   = os.getenv ("PSVIEWER"),
>         viewer_dvi  = os.getenv ("DVIVIEWER"),
>         viewer_html = os.getenv ("BROWSER"),
>         viewer_txt  = os.getenv ("PAGER")
> 
> So I assume it should be simply
> 	PDFVIEWER

It's quite irritating if every texdoc version uses another
environment variables. I would keep TEXDOCVIEW_* and the other
if TEXDOCVIEW_* is unset. (similar to first_in_path).

  viewer_pdf = os.getenv("TEXDOCVIEW_pdf");
  if viewer_pdf == nil then viewer_pdf = os.getenv("PDFVIEWER");

(Or something more elaborate, supporting variable settings in texmf.cnf).

Yours sincerely
  Heiko <oberdiek at uni-freiburg.de>


More information about the tex-live mailing list