diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-luatex.def')
-rw-r--r-- | Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-luatex.def | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-luatex.def b/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-luatex.def index bb0cfb50ea5..665914d7d9e 100644 --- a/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-luatex.def +++ b/Master/texmf-dist/tex/latex/ctex/engine/ctex-engine-luatex.def @@ -26,10 +26,10 @@ %% %% ------------------------------------------------------------------------------ %% -\GetIdInfo$Id: ctex.dtx 1fcc459 2016-04-25 13:35:13 +0800 Liu Haiyang <leoliu.pku@gmail.com> $ +\GetIdInfo$Id: ctex.dtx f745b21 2016-05-14 12:17:18 +0800 Qing Lee <sobenlee@gmail.com> $ {LuaLaTeX adapter (CTEX)} \ProvidesExplFile{ctex-engine-luatex.def} - {\ExplFileDate}{2.4}{\ExplFileDescription} + {\ExplFileDate}{2.4.1}{\ExplFileDescription} \msg_new:nnn { ctex } { luatexja-loaded } { Package~`luatexja'~can~not~be~loaded~before~`ctex'.\\ @@ -968,17 +968,6 @@ } \seq_put_right:No \l__ctex_ltj_alternate_seq { \l__ctex_ltj_tmp_tl } } -\cs_new_protected_nopar:Npn \ctex_ltj_update_xkanjiskip: - { - \skip_if_eq:nnT - { \ltjgetparameter { xkanjiskip } } { \l__ctex_ltj_xkanjiskip_skip } - { - \skip_set:Nn \l__ctex_ltj_xkanjiskip_skip { .25 \zw plus 1pt minus 1pt } - \ltjsetxkanjiskip \l__ctex_ltj_xkanjiskip_skip - } - } -\skip_new:N \l__ctex_ltj_xkanjiskip_skip -\skip_set:Nn \l__ctex_ltj_xkanjiskip_skip { .25 \zw plus 1pt minus 1pt } \AtBeginDocument { \ctex_appto_cmd:NnnTF \verbatim@font @@ -1075,10 +1064,25 @@ { \ctex_ltj_select_font: \ctex_ltj_select_alternate_font: - \ctex_ltj_update_xkanjiskip: } \tl_set:Nn \CJK@family { song } \selectfont \tl_clear:N \CJK@family +\cs_new_protected_nopar:Npn \ctex_update_xkanjiskip: + { + \skip_if_eq:nnT + { \ltjgetparameter { xkanjiskip } } { \l__ctex_xkanjiskip_skip } + { + \skip_set:Nn \l__ctex_xkanjiskip_skip { \l__ctex_xkanjiskip_tl } + \ltjsetxkanjiskip \l__ctex_xkanjiskip_skip + } + } +\tl_new:N \l__ctex_xkanjiskip_tl +\tl_set:Nn \l__ctex_xkanjiskip_tl + { .25\zw plus 1pt minus 1pt } +\skip_new:N \l__ctex_xkanjiskip_skip +\skip_set:Nn \l__ctex_xkanjiskip_skip + { \ltjgetparameter { xkanjiskip } } +\ctex_add_to_selectfont:n { \ctex_update_xkanjiskip: } \keys_define:nn { ctex } { space .code:n = |