diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty b/Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty index e0913a4d904..069b1d7b397 100644 --- a/Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty +++ b/Master/texmf-dist/tex/latex/unicode-math/unicode-math-luatex.sty @@ -39,9 +39,11 @@ } \cs_set:Nn \__um_set_mathsymbol:nNNn { - \bool_if:nT + \bool_lazy_and:nnT + { + \int_compare_p:nNn {#4} > {127} + } { - \int_compare_p:nNn {#4} > {127} && \int_compare_p:nNn { \char_value_catcode:n {#4} } = {11} } { \char_set_catcode_other:n {#4} } @@ -659,7 +661,7 @@ \seq_if_in:NnTF \g__um_mathclasses_seq {##1} { \seq_put_right:Nn \l__um_mclass_range_seq {##1} } { - \bool_if:nTF { \tl_if_single_p:n {##1} && \token_if_cs_p:N ##1 } + \bool_lazy_and:nnTF { \tl_if_single_p:n {##1} } { \token_if_cs_p:N ##1 } { \seq_put_right:Nn \l__um_cmd_range_seq {##1} } { \seq_put_right:Nn \l__um_char_range_seq {##1} } } @@ -1605,11 +1607,11 @@ } \cs_new:Npn \__um_peek_execute_branches_ss: { - \bool_if:nTF + \bool_lazy_any:nTF { - \token_if_eq_catcode_p:NN \l_peek_token \c_group_begin_token || - \token_if_eq_catcode_p:NN \l_peek_token \c_group_end_token || - \token_if_eq_meaning_p:NN \l_peek_token \c_space_token + { \token_if_eq_catcode_p:NN \l_peek_token \c_group_begin_token } + { \token_if_eq_catcode_p:NN \l_peek_token \c_group_end_token } + { \token_if_eq_meaning_p:NN \l_peek_token \c_space_token } } { \__peek_false:w } { \__um_peek_execute_branches_ss_aux: } @@ -1928,8 +1930,6 @@ } \AtEndOfPackageFile * { mathtools } { -\AtEndOfPackageFile * { mathtools } - { \cs_set_eq:NN \MToverbracket \overbracket \cs_set_eq:NN \MTunderbracket \underbracket @@ -1955,8 +1955,7 @@ \let\Uunderbracket=\underbracket \let\overbracket =\MToverbracket \let\underbracket =\MTunderbracket - } - } + }% end of AtBeginDocument \msg_warning:nn { unicode-math } { mathtools-colon } \NewDocumentCommand \dblcolon { } { \Colon } \NewDocumentCommand \coloneqq { } { \coloneq } |