OSDN Git Service

lltjp-unicode-math.sty: fix \lfloor etc. were typeset in Japanese font
authorHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Wed, 22 Aug 2018 03:07:11 +0000 (12:07 +0900)
committerHironori Kitagawa <h_kitagawa2001@yahoo.co.jp>
Wed, 22 Aug 2018 03:07:14 +0000 (12:07 +0900)
src/patches/lltjp-unicode-math.sty

index acca226..a04f08c 100644 (file)
@@ -3,7 +3,7 @@
 %
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{lltjp-unicode-math}[2018/01/14 Patch to unicode-math for LuaTeX-ja]
+\ProvidesPackage{lltjp-unicode-math}[2018/08/21 Patch to unicode-math for LuaTeX-ja]
 
 \RequirePackage{unicode-math,luatexja,etoolbox}
 
 \group_begin:
   \bool_new:N \__lltjp_um_patch_mathgroup_bool
   \bool_set_true:N \__lltjp_um_patch_mathgroup_bool
+  \cs_gset:Nn \__um_set_delcode:nnn
+    {
+      \ltjsetmathletter{ #3 }
+      \Udelcode#2 = \csname sym#1\endcsname #3 \scan_stop:
+    }
+  \cs_gset:Nn \__um_radical:nn
+    {
+      \ltjsetmathletter{ #2 }
+      \Uradical \csname sym#1\endcsname #2 \scan_stop:
+    }
+  \cs_gset:Nn \__um_delimiter:Nnn
+    {
+      \ltjsetmathletter{ #3 }
+      \Udelimiter \mathchar@type#1 \csname sym#2\endcsname #3 \scan_stop:
+    }
+  \cs_gset:Nn \__um_accent:nnn
+    {
+      \ltjsetmathletter{ #3 }
+      \Umathaccent #1~ \mathchar@type\mathaccent \use:c { sym #2 } #3 \scan_stop:
+    }
   \cs_gset:Nn \__um_define_math_chars: {
     \group_begin:
       \cs_set:Npn \__um_sym:nnn ##1##2##3