CTeX-org / ctex-kit

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

\xeCJKsetup{xCJKecglue=true} 弹出错误 #677

Closed InnocentFIVE closed 11 months ago

InnocentFIVE commented 11 months ago

具体问题和 #636 类似:

\documentclass{ctexart}

\xeCJKsetup{xCJKecglue=true}

\begin{document}
a 咕
\end{document}

弹出错误信息如下:

> xelatex test
This is XeTeX, Version 3.141592653-2.6-0.999995 (TeX Live 2023) (preloaded format=xelatex)
 restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2022-11-01> patch level 1
L3 programming layer <2023-02-22>
(c:/texlive/2023/texmf-dist/tex/latex/ctex/ctexart.cls
(c:/texlive/2023/texmf-dist/tex/latex/ctex/config/ctexbackend.cfg)
(c:/texlive/2023/texmf-dist/tex/latex/l3kernel/expl3.sty
(c:/texlive/2023/texmf-dist/tex/latex/l3backend/l3backend-xetex.def))
Document Class: ctexart 2022/07/14 v2.5.10 Chinese adapter for class article (C
TEX)
(c:/texlive/2023/texmf-dist/tex/latex/ctex/ctexhook.sty)
(c:/texlive/2023/texmf-dist/tex/latex/ctex/ctexpatch.sty)
(c:/texlive/2023/texmf-dist/tex/latex/base/fix-cm.sty
(c:/texlive/2023/texmf-dist/tex/latex/base/ts1enc.def))
(c:/texlive/2023/texmf-dist/tex/latex/ctex/config/ctexopts.cfg)
(c:/texlive/2023/texmf-dist/tex/latex/base/article.cls
Document Class: article 2022/07/02 v1.4n Standard LaTeX document class
(c:/texlive/2023/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2023/texmf-dist/tex/latex/ctex/engine/ctex-engine-xetex.def
(c:/texlive/2023/texmf-dist/tex/xelatex/xecjk/xeCJK.sty
(c:/texlive/2023/texmf-dist/tex/latex/l3packages/xtemplate/xtemplate.sty)
(c:/texlive/2023/texmf-dist/tex/latex/fontspec/fontspec.sty
(c:/texlive/2023/texmf-dist/tex/latex/l3packages/xparse/xparse.sty)
(c:/texlive/2023/texmf-dist/tex/latex/fontspec/fontspec-xetex.sty
(c:/texlive/2023/texmf-dist/tex/latex/base/fontenc.sty)
(c:/texlive/2023/texmf-dist/tex/latex/fontspec/fontspec.cfg)))
(c:/texlive/2023/texmf-dist/tex/xelatex/xecjk/xeCJK.cfg)))
(c:/texlive/2023/texmf-dist/tex/latex/zhnumber/zhnumber.sty
(c:/texlive/2023/texmf-dist/tex/latex/zhnumber/zhnumber-utf8.cfg))
(c:/texlive/2023/texmf-dist/tex/latex/ctex/scheme/ctex-scheme-chinese-article.d
ef (c:/texlive/2023/texmf-dist/tex/latex/ctex/config/ctex-name-utf8.cfg))
(c:/texlive/2023/texmf-dist/tex/latex/ctex/ctex-c5size.clo)
(c:/texlive/2023/texmf-dist/tex/latex/ctex/fontset/ctex-fontset-windows.def))
(c:/texlive/2023/texmf-dist/tex/latex/ctex/config/ctex.cfg) (./test.aux)
! Too many }'s.
\__xeCJK_boundary_group_end:n ...class_group_end:
                                                  {\xeCJK_make_node:n {#1}}
l.7 \end
        {document}
?

编译环境: Windows 10 22H2, TeX Live 2023, XeLaTeX 版本如下:

XeTeX 3.141592653-2.6-0.999995 (TeX Live 2023)
kpathsea version 6.3.5
Copyright 2023 SIL International, Jonathan Kew and Khaled Hosny.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 72.1; using 72.1
Compiled with zlib version 1.2.13; using 1.2.13
Compiled with FreeType2 version 2.13.0; using 2.13.0
Compiled with Graphite2 version 1.3.14; using 1.3.14
Compiled with HarfBuzz version 7.0.1; using 7.0.1
Compiled with libpng version 1.6.39; using 1.6.39
Compiled with pplib version v2.05 less toxic i hope
Compiled with fontconfig version 2.14.2; using 2.14.2

xeCJK 版本是 v3.9.1, 在 v3.8.8 上没有此问题. 在 Overleaf 上进行测试, 只能筛到 TeX Live 2023 会出问题, TeX Live 2022 没有问题的地步.

muzimuzhi commented 11 months ago

和 #636 是同一个问题。#636 的修复提交到在代码仓库后,xecjk(还)没有发新版(最新版依然是 v3.9.1,和 #363 报告时相同)。

我在 https://github.com/CTeX-org/ctex-kit/issues/636#issuecomment-1777564375 回复了一个手动应用修复的临时方案。

muzimuzhi commented 11 months ago

Duplicate of #636