Discussion:
Problem with `kpsewhich --all'
(too old to reply)
Werner LEMBERG
2018-04-07 10:39:34 UTC
Permalink
Raw Message
[SVN r46655 from Feb. 25th]

It seems that option `--all' of `kpsewhich' has an undocumented
limitation: It doesn't work for PK files.

Consider the following setup.

$ locate '*cmr10.*pk'
/home/wl/.texlive2017/texmf-var/fonts/pk/ljfour/public/cm/cmr10.600pk
/usr/local/backup/TeXLive/Master/texmf-dist/fonts/pk/ljfour/public/cm/dpi600/cmr10.pk

$ kpsewhich --all cmr10.600pk
/home/wl/.texlive2017/texmf-var/fonts/pk/ljfour/public/cm/cmr10.600pk

$ PKFONTS='/usr/local/backup/TeXLive/Master/texmf-dist/fonts/pk//' \
kpsewhich --all cmr10.600pk
/usr/local/backup/TeXLive/Master/texmf-dist/fonts/pk/ljfour/public/cm/dpi600/cmr10.pk

As can be seen, there are two PK files of `cmr10' for 600dpi. I would
expect that the first call to `kpsewhich' finds both fonts. However,
I have to explicitly set `PKFONTS' to get the second one.

Looking into the debug output I see

kdebug:start search(file=cmr10.600pk, must_exist=0, find_all=0, ...)

So `find_all' is set to value 0, contrary to, say, a search for a
`.tex' file.

Is this intended behaviour?


Werner
Akira Kakuto
2018-04-07 13:48:52 UTC
Permalink
Raw Message
Dear Werner,
Post by Werner LEMBERG
It seems that option `--all' of `kpsewhich' has an undocumented
limitation: It doesn't work for PK files.
Thanks a lot.
kpse_pk_format,
kpse_gf_format, and
kpse_any_glyph_format
do not support --all switch.
I don't know that is documented or not. Karl?

Best,
Akira

Loading...