![dvipdfmx 在全新安装的 tl 发行版中无法找到 pdftex.map / kanjix.map](https://linux22.com/image/423465/dvipdfmx%20%E5%9C%A8%E5%85%A8%E6%96%B0%E5%AE%89%E8%A3%85%E7%9A%84%20tl%20%E5%8F%91%E8%A1%8C%E7%89%88%E4%B8%AD%E6%97%A0%E6%B3%95%E6%89%BE%E5%88%B0%20pdftex.map%20%2F%20kanjix.map.png)
更新:我添加了完整的复现脚本https://gist.github.com/vadimkantorov/cb638c61afc2fb4526d05e6c4c3b48b6
dvidpfmx 的警告:
warning: Couldn't open font map file "pdftex.map".
warning: Couldn't open font map file "kanjix.map".
我该如何消除这些警告?最近的问题是否在于install-tl
将字体映射放入,但在的定义中texlive/texmf-var/fonts/map/pdftex/updmap/
没有提及?我应该手动修补它吗?updmap
TEXFONTMAPS
texlive/texmf-dist/web2c/texmf.cnf
字体映射是在 中生成的texlive/texmf-var
,但在定义texmf-var
中根本找不到TEXFONTMAPS
。似乎TEXMFVAR
/TEXMFSYSVAR
设置和带updmap
后缀都存在问题。
我按如下方式安装 TexLive./texlive
并使用定制版本kpsewhich
(我没有系统范围的安装),我没有进行任何手动调用updmap
:
URL_TEXLIVE_INSTALLER=http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
wget --no-clobber $URL_TEXLIVE_INSTALLER
mkdir -p install-tl
tar -xf install-tl-unx.tar.gz --strip-components=1 --directory=install-tl
echo selected_scheme scheme-basic > install-tl.profile
echo TEXDIR $PWD/texlive >> install-tl.profile
echo TEXMFLOCAL $PWD/texlive/texmf-local >> install-tl.profile
echo TEXMFSYSVAR $PWD/texlive/texmf-var >> install-tl.profile
echo TEXMFSYSCONFIG $PWD/texlive/texmf-config >> install-tl.profile
TEXLIVE_INSTALL_NO_RESUME=1 $PWD/install-tl/install-tl -profile install-tl.profile
pdftex.map
和kanjix.map
在 TexLive 树中找到,但texmf.cnf
不包含updmap
目录:
export TEXMFCNF=$PWD/texlive/texmf-dist/web2c
export TEXMFDIST=$PWD/texlive/texmf-dist
kpsewhich -debug 32 pdftex.map
# kdebug:start search(xname=texmf.cnf, must_exist=1, find_all=1, path=/mnt/c/Users/user/busytex/bug/texlive/texmf-dist/web2c).
# kdebug: path_search(file=texmf.cnf, must_exist=1, find_all=1, path=/mnt/c/Users/user/busytex/bug/texlive/texmf-dist/web2c)
# kdebug: dir_list_search(file=texmf.cnf, find_all=1, casefold=no)
# kdebug:start generic search(files=[ls-r ls-R], must_exist=1, find_all=1, path=/mnt/c/Users/texmf-local:/mnt/c/Users/user/texmf-config:/mnt/c/Users/user/texmf-var:/mnt/c/Users/user/busytex/bug/texlive/texmf-dist)
# kdebug: dir_list_search_list(files=[ls-r ls-R], find_all=1, casefold=no)
# kdebug:returning from generic search([ls-r ls-R]) => /mnt/c/Users/user/busytex/bug/texlive/texmf-dist/ls-r /mnt/c/Users/user/busytex/bug/texlive/texmf-dist/ls-R
# kdebug:start search(xname=aliases, must_exist=1, find_all=1, path=/mnt/c/Users/texmf-local:/mnt/c/Users/user/texmf-config:/mnt/c/Users/user/texmf-var:/mnt/c/Users/user/busytex/bug/texlive/texmf-dist).
# kdebug: path_search(file=aliases, must_exist=1, find_all=1, path=/mnt/c/Users/texmf-local:/mnt/c/Users/user/texmf-config:/mnt/c/Users/user/texmf-var:/mnt/c/Users/user/busytex/bug/texlive/texmf-dist)
# kdebug: dir_list_search(file=aliases, find_all=1, casefold=no)
# kdebug: dir_list_search(file=aliases, find_all=1, casefold=yes)
# kdebug: casefold_readable_file(aliases) in /mnt/c/Users/user/busytex/bug/texlive/texmf-dist => (nil)
# kdebug:returning from search(aliases) =>
# kdebug:kpse_find_file: searching for pdftex.map of type map (from texmf.cnf)
# kdebug:start generic search(files=[pdftex.map], must_exist=0, find_all=0, path=.:/home/vadimkantorov/.texlive2020/texmf-config/fonts/map/busytex//:/home/vadimkantorov/.texlive2020/texmf-var/fonts/map/busytex//:/home/vadimkantorov/texmf/fonts/map/busytex//:!!/mnt/c/Users/texmf-local/fonts/map/busytex//:!!/mnt/c/Users/user/texmf-config/fonts/map/busytex//:!!/mnt/c/Users/user/texmf-var/fonts/map/busytex//:!!/mnt/c/Users/user/busytex/bug/texlive/texmf-dist/fonts/map/busytex//:/home/vadimkantorov/.texlive2020/texmf-config/fonts/map/pdftex//:/home/vadimkantorov/.texlive2020/texmf-var/fonts/map/pdftex//:/home/vadimkantorov/texmf/fonts/map/pdftex//:!!/mnt/c/Users/texmf-local/fonts/map/pdftex//:!!/mnt/c/Users/user/texmf-config/fonts/map/pdftex//:!!/mnt/c/Users/user/texmf-var/fonts/map/pdftex//:!!/mnt/c/Users/user/busytex/bug/texlive/texmf-dist/fonts/map/pdftex//:/home/vadimkantorov/.texlive2020/texmf-config/fonts/map/dvips//:/home/vadimkantorov/.texlive2020/texmf-var/fonts/map/dvips//:/home/vadimkantorov/texmf/fonts/map/dvips//:!!/mnt/c/Users/texmf-local/fonts/map/dvips//:!!/mnt/c/Users/user/texmf-config/fonts/map/dvips//:!!/mnt/c/Users/user/texmf-var/fonts/map/dvips//:!!/mnt/c/Users/user/busytex/bug/texlive/texmf-dist/fonts/map/dvips//:/home/vadimkantorov/.texlive2020/texmf-config/fonts/map///:/home/vadimkantorov/.texlive2020/texmf-var/fonts/map///:/home/vadimkantorov/texmf/fonts/map///:!!/mnt/c/Users/texmf-local/fonts/map///:!!/mnt/c/Users/user/texmf-config/fonts/map///:!!/mnt/c/Users/user/texmf-var/fonts/map///:!!/mnt/c/Users/user/busytex/bug/texlive/texmf-dist/fonts/map///)
# kdebug: dir_list_search_list(files=[pdftex.map], find_all=0, casefold=no)
# kdebug: dir_list_search_list(files=[pdftex.map], find_all=0, casefold=yes)
# kdebug: casefold_readable_file(pdftex.map) in . => (nil)
# kdebug:returning from generic search([pdftex.map]) =>
find texlive -name pdftex.map
# texlive/texmf-var/fonts/map/pdftex/updmap/pdftex.map
find texlive -name kanjix.map
# texlive/texmf-var/fonts/map/dvipdfmx/updmap/kanjix.map
find texlive -name texmf.cnf
# texlive/texmf-dist/web2c/texmf.cnf
# texlive/texmf.cnf
grep 'fonts/map' texlive/texmf-dist/web2c/texmf.cnf
# TEXFONTMAPS = $TEXMFDOTDIR;$TEXMF/fonts/map/{$progname,pdftex,dvips,}//