Bug#211056: tetex-bin: texdoc shows Catalogue entry instead of compressed file (e.g. dvi.gz)
Package: tetex-bin
Version: 2.0.2-4.3
Severity: normal
Tags: patch
It seems that the fix of #93781 broke something else. Take tabularx as
an example, texdoc tabularx should launch
xdvi /usr/share/texmf/doc/latex/tools/tabularx.dvi.gz
but instead it shows the Catalogue entry
/usr/share/doc/texmf/help/Catalogue/entries/tabularx.html
in the appropriate viewer.
The reason is the order of extensions in $listext generated from
"kpsewhich --expand-brace='$TEXDOCEXT'":
listext=.pdf:.dvi:.ps:.html:.txt:.pdf.gz:.dvi.gz: [...]
Now .html is checked before dvi.gz. And for nearly every package there
is a html file, the CTAN catalogue entry. You can test it e.g. with
tabularx.
Since there seems to be no way to discriminate Catalogue entries from
other html documentation, I would suggest to move the html to the very
end. If somebody prefers the html documentation, he can bookmark it;
it's mainly two big documents (latex2e-html and uktug-faq). A wishlist
thing would be a file "htmlhelpindex.html" containing all html docs.
The following patch worked for me:
--- /etc/texmf/texmf.d/90TeXDoc.cnf.orig Mon Sep 15 18:04:01 2003
+++ /etc/texmf/texmf.d/90TeXDoc.cnf Mon Sep 15 18:02:37 2003
@@ -1,7 +1,9 @@
% the default extensions for documentation
-TEXDOCSSUFFIX = .pdf:.dvi:.ps:.html:.txt
+TEXDOCSSUFFIX = .pdf:.dvi:.ps:.txt
% we allow some compression methods
TEXDOCSCOMPRESS = :.gz:.bz2
+% put html at the very end, to avoid showing the Catalogue:
+TEXDOCHTML = .html
% and put that all now together
-TEXDOCEXT = {$TEXDOCSSUFFIX}{$TEXDOCSCOMPRESS}
+TEXDOCEXT = {$TEXDOCSSUFFIX}{$TEXDOCSCOMPRESS}:{$TEXDOCHTML}{$TEXDOCSCOMPRESS}
Bye, Frank
-- System Information
Debian Release: 3.0-bunk-1
Architecture: i386
Kernel: Linux alhambra 2.4.21 #1 Mit Sep 3 17:47:29 CEST 2003 i686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro
Versions of packages tetex-bin depends on:
ii debconf 1.2.34 Debian configuration management sy
ii debianutils 2.5.4 Miscellaneous utilities specific t
ii dpkg 1.9.21 Package maintenance system for Deb
ii ed 0.2-19 The classic unix line editor
ii libc6 2.2.5-11.5 GNU C Library: Shared libraries an
ii libkpathsea3 2.0.2-4.3 shared libkpathsea for teTeX
ii libpng3 1.2.1-1.1.woody.3 PNG library - runtime
ii libstdc++2.10-glibc2.2 1:2.95.4-11woody1 The GNU stdc++ library
ii libwww0 5.4.0-5 The W3C WWW library
ii libxaw7 4.2.1-3.bunk.5 X Athena widget set library
ii mime-support 3.18-1.3 MIME files 'mime.types' & 'mailcap
ii perl 5.6.1-8.3 Larry Wall's Practical Extraction
ii t1lib1 1.3.1-1 Type 1 font rasterizer library - r
ii tetex-base 2.0.2-4.2 Basic library files of teTeX
ii xlibs 4.2.1-3.bunk.5 X Window System client libraries
ii zlib1g 1:1.1.4-1 compression library - runtime
Reply to: