diff options
author | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-10-13 23:19:12 +0000 |
---|---|---|
committer | Akira Kakuto <kakuto@fuk.kindai.ac.jp> | 2015-10-13 23:19:12 +0000 |
commit | 2a6b0dc182991e61d84f65b4aacdec9a7f63933f (patch) | |
tree | efe7c7d69a427e015eacb3e50abb9c6598889fd7 /Build | |
parent | fb35d1d5f62df8de833442b9cdab51b6377c7e83 (diff) |
web2c/luatexdir/tex/mlist.w: Sync with the upstream.
git-svn-id: svn://tug.org/texlive/trunk@38633 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-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; |