Дана 26/11/04 08:22PM, Roderick написа:
> Question1: What do you recommend to read pdf files?

mupdf / zathura

> Question 2:
> How do I find a TeX package? "pkg -Q tex" does not work. Look:
> 
> # pkg_info -Q tex
> p5-Text-CSV_XS-1.65
> 
> # pkg_info -Q tex-
> latex-mk-1.9.1p3
> p5-LaTeX-Driver-1.3.1
> p5-LaTeX-Encode-0.092.0p0
> p5-LaTeX-Pod-0.23
> p5-LaTeX-TOM-1.06
> tex-by-topic-20230810v0
> 
> # pkg_info -Q texmf
> texlive_texmf-buildset-2026 (installed)
> texlive_texmf-context-2026
> texlive_texmf-docs-2026
> texlive_texmf-full-2026p0
> texlive_texmf-minimal-2026

Likely a bug in pkg_info, it seems the underscore in package names
affects what's perceived as "substring" in the argument of -Q.

For example:

$ pkg_info -Q ve | grep tex
$ pkg_info -Q ve_ | grep tex
debug-texlive_base-2026
debug-texlive_mktexlsr-2026
debug-texlive_synctex-2026
texlive_base-2026
texlive_mktexlsr-2026
texlive_synctex-2026 (installed)
texlive_texmf-buildset-2026
texlive_texmf-context-2026
texlive_texmf-docs-2026
texlive_texmf-full-2026p0
texlive_texmf-minimal-2026

Same results as for "ve_" are obtained when using "liv" as substring.
Also, "ive" returns nothing when filtered with grep as above, but
"live" returns the above list. It is as if the underscore "covers" the
surrounding characters if the substring has up to three characters not
including the underscore, but if the substring has four or more, it is
processed normally.

Reply via email to