Closed zepinglee closed 2 years ago
像是 luatex-ja 的限制,texdoc luatex-ja
sec. 4.2
The value (a skip) of kanjiskip or xkanjiskip can be changed as the following. Note that only their values at the end of a paragraph or a hbox are adopted in the whole paragraph or the whole hbox.
\ziju
和 luatex-ja 的关系是,
\ziju
\ctex_ziju:n
\ctex_select_size:
\ctex_update_size:
\ctex_update_ziju:
\ctex_update_em_unit: % 引擎相关,luatex 下定义为 \dim_set:Nn \ccwd { \zw }
\ctex_update_ccglue: % 引擎相关
\ctex_ltj_set_kanjiskip:N
\ltj@setpar@global \ltjsetkanjiskip
\ziju
和 luatex-ja 的关系是,\ziju \ctex_ziju:n \ctex_select_size: \ctex_update_size: \ctex_update_ziju: \ctex_update_em_unit: % 引擎相关,luatex 下定义为 \dim_set:Nn \ccwd { \zw } \ctex_update_ccglue: % 引擎相关 \ctex_ltj_set_kanjiskip:N \ltj@setpar@global \ltjsetkanjiskip
啊,原来如此。感谢指导!
PS: 我是开 tracing 测试文本{\tracingall\ziju{1}\tracingnone 测试文本}测试文本\par
,然后配合 ctex.dtx
一起看的。
上述代码使用 XeLaTeX 编译的效果是:
但是使用 LuaLaTeX 编译时,段落内部的
\ziju
命令(分组不含\par
)则没有效果。我没找到
\ziju
与 luatex-ja 相关的代码。