![ifluatex 和 ifxetex 不在存储库中](https://linux22.com/image/408830/ifluatex%20%E5%92%8C%20ifxetex%20%E4%B8%8D%E5%9C%A8%E5%AD%98%E5%82%A8%E5%BA%93%E4%B8%AD.png)
尝试运行 tinytex 的 docker 安装,遇到无法在存储库中找到 ifluatex 和 ifxetex 的问题。我尝试了几个不同的镜像,但无济于事 [RIT、dal 等]。
有什么建议去哪里看吗?
running mktexlsr ...
done running mktexlsr.
running updmap-sys ...
done running updmap-sys.
regenerating fmtutil.cnf in /tmp/texlive/texmf-dist
running fmtutil-sys --no-error-if-no-engine=luahbtex,luajittex,mfluajit --no-error-if-no-format --byengine xetex ...
done running fmtutil-sys --no-error-if-no-engine=luahbtex,luajittex,mfluajit --no-error-if-no-format --byengine xetex.
running fmtutil-sys --no-error-if-no-engine=luahbtex,luajittex,mfluajit --no-error-if-no-format --byengine luatex ...
done running fmtutil-sys --no-error-if-no-engine=luahbtex,luajittex,mfluajit --no-error-if-no-format --byengine luatex.
running fmtutil-sys --no-error-if-no-engine=luahbtex,luajittex,mfluajit --no-error-if-no-format --byengine pdftex ...
done running fmtutil-sys --no-error-if-no-engine=luahbtex,luajittex,mfluajit --no-error-if-no-format --byengine pdftex.
tlmgr: package log updated: /tmp/texlive/texmf-var/web2c/tlmgr.log
tlmgr install: package ifluatex not present in repository.
tlmgr install: package ifxetex not present in repository.
tlmgr: package repository http://mirrors.rit.edu/CTAN/systems/texlive/tlnet (verified)
tlmgr install: package already present: dvipdfmx
tlmgr install: package already present: lm
tlmgr install: package already present: luaotfload
tlmgr install: package already present: texlive-scripts
[1/74, ??:??/??:??] install: amscls [32k
答案1
软件包ifluatex
和ifxelatex
现在是的一部分。看来您现在iftex
无法下载。ifxelatex
tlmgr
检查以下链接:
为了快速修复,您可以删除ifluatex
和ifxelatex
以及 require的依赖iftex
。并在源代码中将\ifxelatex
和替换\ifluatex
为\ifXeTeX
和\ifLuaTeX
。
答案2
对于遇到此问题的 R 用户:
我将 dockerfile 从
RUN R -e "install.packages(c('pander','tinytex'),repos='https://cloud.r-project.org/')" \
&& R -e "tinytex::install_tinytex(extra_packages=c('iftex','pdftexcmds','grffile','epstopdf-pkg','lm-math','unicode-math','lualatex-math','filehook'))"
到
RUN apt-get update && apt-get install -y --no-install-recommends \
pandoc \
texlive \
texlive-latex-base \
texlive-latex-recommended \
texlive-plain-generic
并且 rmarkdown/knitr/pander 等现在都可以在我的 docker 镜像中正常工作:)