-
Notifications
You must be signed in to change notification settings - Fork 124
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: punct=plain 在 xelatex 编译时报错 #474
Labels
Comments
Lines 6558 to 6569 in dacf770
中(6564 行), 传过去的是 \l__ctex_punct_tl .
在 ctex 中可以用 --- a/ctex/ctex.dtx
+++ b/ctex/ctex.dtx
@@ -6561,7 +6561,7 @@ Copyright and Licence
{
\tl_set:Nx \l_@@_punct_tl { #1 }
%<pdftex> \punctstyle { \l_@@_punct_tl }
-%<xetex> \xeCJKsetup { PunctStyle = \l_@@_punct_tl }
+%<xetex> \exp_args:Nx \xeCJKsetup { PunctStyle = \l_@@_punct_tl }
%<luatex> \ctex_mono_jfm:o { \l_@@_punct_tl }
%<uptex|aptex> \msg_warning:nn { ctex } { invalid-option }
} , 修复,模仿 Lines 4235 to 4239 in dacf770
我更倾向于在 xecjk 中修复,例如 --- a/xeCJK/xeCJK.dtx
+++ b/xeCJK/xeCJK.dtx
@@ -5978,9 +5978,10 @@ Copyright and Licence
{ \tl_set_eq:NN \l_xeCJK_punct_style_tl \c_@@_punct_style_plain_tl } ,
PunctStyle / unknown .code:n =
{
- \IfInstanceExistTF { xeCJK / punctuation } { \l_keys_value_tl }
- { \tl_set:Nx \l_xeCJK_punct_style_tl { \l_keys_value_tl } }
- { \@@_error:nx { punct-style-unknown } { \l_keys_value_tl } }
+ \tl_set:Nx \l__xeCJK_tmp_tl { \l_keys_value_tl }
+ \IfInstanceExistTF { xeCJK / punctuation } { \l__xeCJK_tmp_tl }
+ { \tl_set:Nx \l_xeCJK_punct_style_tl { \l__xeCJK_tmp_tl } }
+ { \__xeCJK_error:nx { punct-style-unknown } { \l__xeCJK_tmp_tl } }
}
} PS:现在还推荐写 |
经交流
|
stone-zeng
added a commit
that referenced
this issue
Jan 21, 2020
zepinglee
pushed a commit
that referenced
this issue
Apr 17, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
报错为:
直接用
xeCJK
指定\xeCJKsetup{PunctStyle=plain}
不出现此问题。The text was updated successfully, but these errors were encountered: