OSDN Git Service

Correct date of packages
[luatex-ja/luatexja.git] / src / patches / lltjp-unicode-math.sty
1 %
2 % lltjp-unicode-math.sty
3 %
4
5 \NeedsTeXFormat{LaTeX2e}
6 \ProvidesPackage{lltjp-unicode-math}[2015/08/27 Patch to unicode-math for LuaTeX-ja]
7
8 \RequirePackage{unicode-math,luatexja}
9
10 \ExplSyntaxOn
11
12 \group_begin:
13   \tl_set:Nn \l_tmpa_tl { um_cs_set_eq_active_char:Nw }
14   \cs_if_exist:cT { __um_cs_set_eq_active_char:Nw } {
15     \tl_set:Nn \l_tmpa_tl { __um_cs_set_eq_active_char:Nw }
16   }
17   \cs_gset:cpn { \tl_use:N \l_tmpa_tl } #1 = "#2 \q_nil {%"
18     \group_begin:
19       %\typeout {um: \string#1, \int_from_hexadecimal:n {#2}, #2}% <- for debug
20       \char_set_lccode:nn { `! } { "#2 }%"
21       \tex_lowercase:D {
22         \tl_set:Nn \l_tmpa_tl {  \relax
23           \ifmmode!\else{\directlua{tex.globaldefs = 0}\ltj@allalchar!}\fi}
24         \cs_gset_eq:NN #1 \l_tmpa_tl
25       }
26       \ltjsetmathletter{ \int_from_hexadecimal:n {#2} }
27     \group_end:
28   }
29 \group_end:
30
31 \ExplSyntaxOff
32
33 \endinput