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 | 54 |
1 files changed, 27 insertions, 27 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 51d4cd34a26..4e12ae932c8 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 d459e18 2017-02-23 02:07:49 +0800 Qing Lee <sobenlee@gmail.com> $ +\GetIdInfo$Id: ctex.dtx c498d8c 2017-04-01 21:33:50 +0800 Qing Lee <sobenlee@gmail.com> $ {LuaLaTeX adapter (CTEX)} \ProvidesExplFile{ctex-engine-luatex.def} - {\ExplFileDate}{2.4.8}{\ExplFileDescription} + {\ExplFileDate}{2.4.9}{\ExplFileDescription} \msg_new:nnn { ctex } { luatexja-loaded } { Package~`luatexja'~can~not~be~loaded~before~`ctex'.\\ @@ -88,31 +88,6 @@ { \ltjalchar "2423 \exp_stop_f: } { \fontspec_visible_space_fallback: } } -\cs_new_protected:Npn \ctex_ltj_set_math_letter:NN #1#2 - { - \group_begin: - \cs_set_protected:Npn #1 ##1##2##3 - { \ltjsetmathletter { ##1 } } - #2 - \group_end: - } -\ctex_at_end_package:nn { unicode-math } - { - \cs_if_exist:NTF \um_input_math_symbol_table: - { - \ctex_ltj_set_math_letter:NN - \um_sym:nnn - \um_input_math_symbol_table: - } - { - \cs_set_eq:NN \use@mathgroup \ctex_ltj_use_math_group:Nn - \cs_set_protected_nopar:Npn \ctex_ltj_math_group_hook: - { \__um_switchto_literal: } - \ctex_ltj_set_math_letter:NN - \__um_sym:nnn - \__um_input_math_symbol_table: - } - } \ctex_at_end_package:nn { listings } { \use:x @@ -294,6 +269,31 @@ } \cs_new_eq:NN \ctex_ltj_math_group_hook: \prg_do_nothing: \cs_set_eq:NN \use@mathgroup \ctex_ltj_use_math_group:Nn +\cs_new_protected:Npn \ctex_ltj_set_math_letter:NN #1#2 + { + \group_begin: + \cs_set_protected:Npn #1 ##1##2##3 + { \ltjsetmathletter { ##1 } } + #2 + \group_end: + } +\ctex_at_end_package:nn { unicode-math } + { + \cs_if_exist:NTF \um_input_math_symbol_table: + { + \ctex_ltj_set_math_letter:NN + \um_sym:nnn + \um_input_math_symbol_table: + } + { + \cs_set_eq:NN \use@mathgroup \ctex_ltj_use_math_group:Nn + \cs_set_protected_nopar:Npn \ctex_ltj_math_group_hook: + { \__um_switchto_literal: } + \ctex_ltj_set_math_letter:NN + \__um_sym:nnn + \__um_input_math_symbol_table: + } + } \cs_new_protected_nopar:Npn \ctex_mono_jfm:n #1 { \str_if_eq:nnTF {#1} { plain } |