diff options
-rw-r--r-- | Build/source/texk/web2c/luatexdir/ChangeLog | 4 | ||||
-rw-r--r-- | Build/source/texk/web2c/luatexdir/tex/mlist.w | 12 |
2 files changed, 14 insertions, 2 deletions
diff --git a/Build/source/texk/web2c/luatexdir/ChangeLog b/Build/source/texk/web2c/luatexdir/ChangeLog index 4998e8413a1..2273375d482 100644 --- a/Build/source/texk/web2c/luatexdir/ChangeLog +++ b/Build/source/texk/web2c/luatexdir/ChangeLog @@ -1,3 +1,7 @@ +2015-10-13 Akira Kakuto <kakuto@fuk.kindai.ac.jp> + + * tex/mlist.w: Sync with the upstream. + 2015-10-09 Akira Kakuto <kakuto@fuk.kindai.ac.jp> * luatex.c: Sync with the upstream. diff --git a/Build/source/texk/web2c/luatexdir/tex/mlist.w b/Build/source/texk/web2c/luatexdir/tex/mlist.w index 7684dd0d171..be0cf552378 100644 --- a/Build/source/texk/web2c/luatexdir/tex/mlist.w +++ b/Build/source/texk/web2c/luatexdir/tex/mlist.w @@ -2128,12 +2128,20 @@ static void do_make_math_accent(pointer q, internal_font_number f, int c, if (sa == INT_MIN) { sa = half(width(y)); /* just take the center */ } - shift_amount(y) = s - sa; + if (math_direction == dir_TRT) { + shift_amount(y) = s + sa - width(y); + } else { + shift_amount(y) = s - sa; + } } else { if (width(y)== 0) { shift_amount(y) = s + w; } else { - shift_amount(y) = s + half(w - width(y)); + if (math_direction == dir_TRT) { + shift_amount(y) = s + width(y); + } else { + shift_amount(y) = s + half(w - width(y)); + } } } width(y) = 0; |