CTeX-org / ctex-kit

Macro Packages and Scripts for Chinese TeX users
980 stars 124 forks source link

luatexja 支持 table feature 后,使用 latexmk 编译会陷入死循环 #654

Open tanukihee opened 1 year ago

tanukihee commented 1 year ago

luatexja 更新版本 20230408 后,支持了 table jfm feature,在使用此种 feature 时,ctex 文档类会因为字体缓存更新而导致 latexmk 陷入死循环,不断编译最终报错。

MWE

\documentclass[punct=ujis/{foo={bar}}]{ctexart}
\begin{document}
abc
\end{document}

log 节选

Rule 'lualatex':  Reasons for rerun
Changed files or newly in use/created:
  C:/texlive/2023/texmf-var/luatex-cache/generic/names/luaotfload-lookup-cache.luc
SyncTeX written on test.synctex.gz.
Transcript written on test.log.
Latexmk: Maximum runs of lualatex reached without getting stable files
----------------------
This message may duplicate earlier message.
Latexmk: Failure in processing file 'test':
   'lualatex' needed too many passes
----------------------

而使用 luatexja 文档类时,一切正常

MWE

\documentclass{ltjarticle}
\usepackage{luatexja-fontspec}
\setmainjfont{simsun.ttc}[
    YokoFeatures={JFM=ujis/{foo={bar}}}
  ]
\begin{document}
abc
\end{document}

ref https://osdn.net/projects/luatex-ja/ticket/47727