Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问为什么我更新fduthesis后编译时总是报错:! Package fduthesis Error: Package "xunicode-addon" is too old. #150

Closed
Jeff-Tian opened this issue Aug 16, 2020 · 5 comments
Milestone

Comments

@Jeff-Tian
Copy link

现象如题,看了源代码有这个检测,但是我不明白为什么即使我 tlmgr install xunicode-addon 也不能解决问题,还请指点……

最小可重现tex: 

% !TeX encoding = UTF-8
\documentclass{fduthesis}

\begin{document}
\chapter{欢迎}
\section{Welcome to fduthesis!}
你好,\LaTeX{}!
\end{document}

重现步骤:

docker run --rm -it -v $(pwd):/work -w /work -e LC_ALL=C.UTF-8 jefftian/texlive-full:latest latexmk -lualatex --shell-escape -synctex=1 -interaction=nonstopmode -enable-write18 fduthesis.tex

不胜感激!

@stone-zeng
Copy link
Owner

docker 我不是很熟悉,你有更详细的信息吗?比如 TeX Live 版本之类的。

另外 dockerfile 有吗?在 https://hub.docker.com/u/jefftian/ 似乎没看到。

@Jeff-Tian
Copy link
Author

Jeff-Tian commented Aug 17, 2020

Docker可以忽略,就是方便重现,应该执行这个命令就能重现:

docker run --rm -it -v $(pwd):/work -w /work -e LC_ALL=C.UTF-8 jefftian/texlive-full:latest latexmk -lualatex --shell-escape -synctex=1 -interaction=nonstopmode -enable-write18 fduthesis.tex

如果是 Windows:

docker run --rm -it -v %cd%:/work -w /work -e LC_ALL=C.UTF-8 jefftian/texlive-full:latest latexmk -lualatex --shell-escape -synctex=1 -interaction=nonstopmode -enable-write18 fduthesis.tex

具体 Dockerfile 以及镜像:

版本信息

我本地安装的最新版TexLive也是这样,版本是2020。
之前是好的,执行了tlmgr update ... 之后就报这个错了。

sudo tlmgr update --self --all --no-auto-install
  • TexLive: 2020
  • tlmgr:
     ➜ tlmgr --version
     tlmgr revision 55369 (2020-06-01 02:32:00 +0200)
     tlmgr using installation: /usr/local/texlive/2020
     TeX Live (https://tug.org/texlive) version 2020

@Jeff-Tian
Copy link
Author

我发现即使报了这个错误,PDF 还是正常生成了。目前优先级不高,如果能够消除这个错误那是更好了。

@stone-zeng
Copy link
Owner

这里看起来是和 xunicode 有关的一系列宏包有兼容性问题,先暂时不要用 lualatex 编译,换成 xelatex 应该可以。

@stone-zeng stone-zeng added the bug label Aug 17, 2020
@Jeff-Tian
Copy link
Author

了解了,我用到了 plantuml 包,目前必须用 lualatex 编译。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants