diff options
author | Karl Berry <karl@freefriends.org> | 2021-01-26 21:47:29 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-01-26 21:47:29 +0000 |
commit | b160cf306d45454709fdbedefdd5bb3be65ad28c (patch) | |
tree | 3244de238f0f015e88ca4fbd274edbadac3a7d94 /Master/texmf-dist/tex/generic/babel/babel-bidi-basic.lua | |
parent | eb7f2b3abbc0b1da0f7eb6e28319387ff7637b7a (diff) |
babel (26jan21)
git-svn-id: svn://tug.org/texlive/trunk@57530 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/generic/babel/babel-bidi-basic.lua')
-rw-r--r-- | Master/texmf-dist/tex/generic/babel/babel-bidi-basic.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/generic/babel/babel-bidi-basic.lua b/Master/texmf-dist/tex/generic/babel/babel-bidi-basic.lua index 8acc02ed6fe..02e7b7889d1 100644 --- a/Master/texmf-dist/tex/generic/babel/babel-bidi-basic.lua +++ b/Master/texmf-dist/tex/generic/babel/babel-bidi-basic.lua @@ -7,7 +7,7 @@ -- babel.dtx (with options: `basic') -- -- --- Copyright (C) 2012-2020 Javier Bezos and Johannes L. Braams. +-- Copyright (C) 2012-2021 Javier Bezos and Johannes L. Braams. -- Copyright (C) 1989-2012 Johannes L. Braams and -- any individual authors listed elsewhere in this file. -- All rights reserved. @@ -268,6 +268,12 @@ function Babel.bidi(head, ispar, hdir) has_en = false end + -- Force mathdir in math if ON (currently works as expected only + -- with 'l') + if inmath and d == 'on' then + d = ('TRT' == tex.mathdir) and 'r' or 'l' + end + if d then if d == 'al' then d = 'r' |