如何使 install-tl 生成 pdflatex.fmt

如何使 install-tl 生成 pdflatex.fmt

我正在使用install-tl以下配置文件:

selected_scheme scheme-basic
TEXDIR /path/to/build/texlive-basic
TEXMFLOCAL /path/to/build/texlive-basic/texmf-dist/texmf-local
TEXMFSYSVAR /path/to/build/texlive-basic/texmf-dist/texmf-var
TEXMFSYSCONFIG /path/to/build/texlive-basic/texmf-dist/texmf-config
collection-xetex 1
collection-luatex 1

它生成以下*.fmt文件:

build/texlive-basic/texmf-dist/texmf-var/web2c/xetex/xelatex.fmt
build/texlive-basic/texmf-dist/texmf-var/web2c/xetex/xelatex-dev.fmt
build/texlive-basic/texmf-dist/texmf-var/web2c/xetex/xetex.fmt
build/texlive-basic/texmf-dist/texmf-var/web2c/tex/tex.fmt
build/texlive-basic/texmf-dist/texmf-var/web2c/luatex/dviluatex.fmt
build/texlive-basic/texmf-dist/texmf-var/web2c/luatex/optex.fmt
build/texlive-basic/texmf-dist/texmf-var/web2c/luatex/luatex.fmt
build/texlive-basic/texmf-dist/texmf-var/web2c/pdftex/etex.fmt
build/texlive-basic/texmf-dist/texmf-var/web2c/pdftex/pdfetex.fmt
build/texlive-basic/texmf-dist/texmf-var/web2c/pdftex/pdftex.fmt
build/texlive-basic/texmf-dist/texmf-var/web2c/luahbtex/luahbtex.fmt

确实fmtutil-sys --all运行了:running fmtutil-sys --no-error-if-no-engine=luajithbtex,luajittex,mfluajit --no-strict --all ...done。没有...failed消息。

\documentclass当我尝试使用with编译 LaTeX 文件时--fmt .../pdftex.fmt,我得到

This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021_busytexnative) (preloaded format=/home/runner/work/busytex/busytex/dist-native/pdftex.fmt)
entering extended mode
(./example.tex
! Undefined control sequence.

这可能意味着 LaTeX 宏未加载到格式中。是真的吗?

我如何才能install-tl生产pdflatex.fmtlualatex.fmt

问题似乎在于fmtutil.pl无法正确发现引擎。如何fmtutil.pl发现引擎?我应该添加一些环境变量吗fmtutil.pl

尽管 ,但不知何故collection-latex(和latex-bin) 并未安装scheme-basic。我该如何强制install-tl安装它?

相关内容