[tex-live] problem with texdoc

Pablo Alfonso González Luengo pablgonz at educarchile.cl
Tue Nov 13 03:41:22 CET 2018


> Truthfully, I expected it to throw a "no-found-nothing" error
>
> If you want to disable the fuzzy search feature, you can set
>
>        fuzzy_level = 0
>
> in your own texdoc.cnf. Please see the documentation for the details.
Ok, the truth is that I rarely touch the configuration files :)

> The reason that Texdoc gives different results for each invocation is that
> the program selects the final result randomly from the candidates which
have
> the same Levenshtein distances to the (mistyped) input keyword; this is
> because it is impossible to decide the best one in those candidates.

ok I understand the behavior, but, the list that you select should be
constant and
only the chosen file should be random. Here I leave the output provided by
windows
and linux as a report

% win10pro x64, v1803
C:\>tlmgr update --self --all --reinstall-forcibly-removed
tlmgr.pl: package repository
http://ftp.inf.utfsm.cl/pub/tex-archive/systems/texlive/tlnet (verified)

C:\>tlmgr shell --machine-readable -v
D:tlmgr:main: ::tldownload_server defined:
TeXLive::TLDownload=HASH(0x3e58ad4)
protocol 1
tlmgr>
version
revision 48598
installation C:/texlive/2018
tlversion 2018
TLConfig 48727
TLUtils 48975
TLPOBJ 48828
TLPDB 48874
TLPaper 45795
TLWinGoo 47907
tlmgr>
quit

C:\>texdoc -f
c:/texlive/2018/texmf-dist/scripts/texdoc/texdoclib.tlu 3.0
Configuration files are:
    active      c:\texlive\2018\texmf-dist\texdoc\texdoc.cnf
Recommended file(s) for personal settings:
    C:/Users/pablo/texmf/texdoc/texdoc.cnf

C:\>texdoc -l tikzz
 1 C:\texlive\2018\texmf-dist\doc\fonts\tipa\tipaman.pdf
   = [en] Package manual (English)
 2 C:\texlive\2018\texmf-dist\doc\latex\tipa-de\tipaman-de.pdf
   = [de] The document itself
 3 C:\texlive\2018\texmf-dist\doc\fonts\tipa\vowel.pdf
 4 C:\texlive\2018\texmf-dist\doc\fonts\tipa\00README
   = Readme
 5 C:\texlive\2018\texmf-dist\doc\fonts\tipa\Manifest.txt
 6 C:\texlive\2018\texmf-dist\doc\fonts\tipa\00README.doc
 7 C:\texlive\2018\texmf-dist\doc\latex\tipa-de\LIESMICH
   = [de] Readme
Enter number of file to view, RET to view 1, anything else to skip:

C:\>texdoc -l tikzz
 1 C:\texlive\2018\texmf-dist\doc\latex\tipfr\tipfr-doc.pdf
   = [fr] Package documentation
 2 C:\texlive\2018\texmf-dist\doc\latex\tipfr\README
   = Readme
Enter number of file to view, RET to view 1, anything else to skip:

C:\>texdoc -l tikzz
 1 C:\texlive\2018\texmf-dist\doc\latex\ticket\manual.pdf
   = Package manual
 2 C:\texlive\2018\texmf-dist\doc\latex\ticket\ex_file.pdf
 3 C:\texlive\2018\texmf-dist\doc\latex\ticket\ex_flashcard.pdf
 4 C:\texlive\2018\texmf-dist\doc\latex\ticket\ex_flashcard_dup.pdf
 5 C:\texlive\2018\texmf-dist\doc\latex\ticket\ex_flashcard_rm.pdf
 6 C:\texlive\2018\texmf-dist\doc\latex\ticket\ex_marks.pdf
 7 C:\texlive\2018\texmf-dist\doc\latex\ticket\ex_pin.pdf
 8 C:\texlive\2018\texmf-dist\doc\latex\ticket\ex_vcard.pdf
 9 C:\texlive\2018\texmf-dist\doc\latex\ticket\README.txt
   = Package Readme
10 C:\texlive\2018\texmf-dist\doc\latex\ticket\comment
Enter number of file to view, RET to view 1, anything else to skip:

%  Linux fedora 4.18.17-300.fc29.x86_64 #1 SMP Mon Nov 5 17:56:16 UTC 2018
x86_64 x86_64 x86_64 GNU/Linux
[pablo at fedora ~] $ su -
Contraseña:
su: Fallo de autenticación
[pablo at fedora ~] $ su -
Contraseña:
[root at fedora ~] # tlmgr update --self --all --reinstall-forcibly-removed
tlmgr: package repository http://ctan.dcc.uchile.cl/systems/texlive/tlnet
(verified)
tlmgr: saving backups to /usr/local/texlive/2018/tlpkg/backups
[root at fedora ~] # tlmgr shell --machine-readable -v
D:tlmgr:main: ::tldownload_server not defined
protocol 1
tlmgr>
version
revision 48598
installation /usr/local/texlive/2018
tlversion 2018
TLConfig 48727
TLUtils 48975
TLPOBJ 48828
TLPDB 48874
TLPaper 45795
TLWinGoo 47907
tlmgr>
quit
[root at fedora ~] # exit
logout
[pablo at fedora ~] $ texdoc -f
/usr/local/texlive/2018/texmf-dist/scripts/texdoc/texdoclib.tlu 3.0
Configuration files are:
    active    /usr/local/texlive/2018/texmf-dist/texdoc/texdoc.cnf
Recommended file(s) for personal settings:
    /home/pablo/texmf/texdoc/texdoc.cnf
[pablo at fedora ~] $ texdoc -l tikzz
 1 /usr/local/texlive/2018/texmf-dist/doc/fonts/tipa/tipaman.pdf
   = [en] Package manual (English)
 2 /usr/local/texlive/2018/texmf-dist/doc/latex/tipa-de/tipaman-de.pdf
   = [de] The document itself
 3 /usr/local/texlive/2018/texmf-dist/doc/fonts/tipa/vowel.pdf
 4 /usr/local/texlive/2018/texmf-dist/doc/fonts/tipa/00README
   = Readme
 5 /usr/local/texlive/2018/texmf-dist/doc/fonts/tipa/Manifest.txt
 6 /usr/local/texlive/2018/texmf-dist/doc/fonts/tipa/00README.doc
 7 /usr/local/texlive/2018/texmf-dist/doc/latex/tipa-de/LIESMICH
   = [de] Readme
Enter number of file to view, RET to view 1, anything else to skip:
[pablo at fedora ~] $ texdoc -l tikzz
 1 /usr/local/texlive/2018/texmf-dist/doc/man/man1/tie.man1.pdf
Enter number of file to view, RET to view 1, anything else to skip:

[pablo at fedora ~] $ texdoc -l tikzz
 1 /usr/local/texlive/2018/texmf-dist/doc/man/man1/tie.man1.pdf
Enter number of file to view, RET to view 1, anything else to skip:

[pablo at fedora ~] $ texdoc -l tikzz
 1 /usr/local/texlive/2018/texmf-dist/doc/latex/tikz-cd/tikz-cd-doc.pdf
   = Package documentation
 2 /usr/local/texlive/2018/texmf-dist/doc/latex/tikz-cd/README
   = Readme
Enter number of file to view, RET to view 1, anything else to skip:
> I examined a bit on my Windows PC and found that a "Too many argument in
> command line" error always occur for `texdoc 2up`. Is this the problem
you're
> talking about?
I just referred to that problem, excuse my English, my computer is in
Spanish (my native language).
I must clarify that after the last update this problem seems to have
disappeared...

This may sound like a request, but, the behavior to enter a wrong word
(badword) could be
First: List the files that BEGIN with "badword", sorted from the shortest
length to the longest (or some other criteria).
Second: List the files that DO NOT BEGIN with "badword" (that only continue
it), ordered by some criteria.
Third: If you do not find anything that matches "badword" to show the
classic error of not found, look in ctan.
Similar to the behavior of the fedora package manager $ dnf search "badword"
Greetings and thanks for your great job
(Saludos y gracias por tu gran trabajo)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://tug.org/pipermail/tex-live/attachments/20181112/429ccfa5/attachment-0001.html>


More information about the tex-live mailing list