OSDN Git Service

Merge branch 'master' into kitagawa_test
[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}[2013/05/14 Patch to unicode-math for LuaTeX-ja]
7
8 \RequirePackage{unicode-math,luatexja}
9
10 \ExplSyntaxOn
11
12 \group_begin:
13   \cs_gset:Npn \um_cs_set_eq_active_char:Nw #1 = "#2 \q_nil {%"
14     \group_begin:
15       %\typeout {um: \string#1, \int_from_hexadecimal:n {#2}} <- for debug
16       \char_set_lccode:nn { `! } { "#2 }
17       \tex_lowercase:D {
18         \tl_set:Nn \l_tmpa_tl {\relax\ifmmode!\else{\directlua{tex.globaldefs = 0}\ltj@allalchar!}\fi}
19         \cs_gset_eq:NN #1 \l_tmpa_tl
20       }
21       \ltjsetmathletter{ \int_from_hexadecimal:n {#2} }
22     \group_end:
23   }
24 \group_end:
25
26 \ExplSyntaxOff
27
28 \endinput