ifluatex 和 ifxetex 不在存储库中

ifluatex 和 ifxetex 不在存储库中

尝试运行 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

软件包ifluatexifxelatex现在是的一部分。看来您现在iftex无法下载。ifxelatextlmgr

检查以下链接:

为了快速修复,您可以删除ifluatexifxelatex以及 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 镜像中正常工作:)

相关内容