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

ctex: 在最新版 LuaLaTeX 下编译错误 #497

Closed
qinglee opened this issue Apr 15, 2020 · 2 comments
Closed

ctex: 在最新版 LuaLaTeX 下编译错误 #497

qinglee opened this issue Apr 15, 2020 · 2 comments
Assignees

Comments

@qinglee
Copy link
Member

qinglee commented Apr 15, 2020

ctex v2.4.16 在最新的 TeX Live 2020 下编译会报错:

) (c:/texlive/2020/texmf-dist/tex/xelatex/xecjk/xunicode-extra.def)...exlive/20
20/texmf-dist/tex/luatex/luatexja/ltj-jfont.lua:473: table index is nil
stack traceback:
        ...exlive/2020/texmf-dist/tex/luatex/luatexja/ltj-jfont.lua:473: in field 'add
_kyenc_list'
        [\directlua]:1: in main chunk.
<to be read again>
\cs_new_protected_nopar:Npn
l.319 \cs_new_protected_nopar:Npn
                                \__ctex_ltj_change_encoding:
?

原因是 luatexja 20200412.0 开始采用 \luadeftoken.scan_argument 处理 TeX 与 lua 脚本的交互问题,改动了部分 API。

https://osdn.net/projects/luatex-ja/scm/git/luatexja/commits/b63e8444e3a6c4bad1f38e73d1ed8e99751ee85d

@qinglee qinglee self-assigned this Apr 15, 2020
@qinglee qinglee mentioned this issue Apr 17, 2020
25 tasks
@chrisyeh96
Copy link

I am running into the same error using ctex package v2.4.16. I see that commit 5ce1dfa supposedly fixes this issue for the upcoming v2.5 release. Will v2.5 be released soon (within the next 2 days)?

Otherwise, are there any good workarounds for this problem?

@Liam0205
Copy link
Contributor

Liam0205 commented Apr 20, 2020

@chrisyeh96 You can download and compile the in-developing version of CTeX 2.5, and put the compiled files under your TEXMFLOCAL TDS. After these, run texhash to rebuild the ls-R database to use the new version.

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

3 participants