diff options
author | Karl Berry <karl@freefriends.org> | 2020-05-18 20:41:36 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2020-05-18 20:41:36 +0000 |
commit | 227ff60d29bb5c5617ced1e1a6ca3c01e8c87e20 (patch) | |
tree | 5be38897636eb8c145964c68134b3b1978506943 /Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua | |
parent | ddad52fbcdd8fdcff155009cf9b0d82a32a8a5b6 (diff) |
luatexja (18may20)
git-svn-id: svn://tug.org/texlive/trunk@55207 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua')
-rw-r--r-- | Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua b/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua index e97da057905..7dd0dee9061 100644 --- a/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua +++ b/Master/texmf-dist/tex/luatex/luatexja/ltj-direction.lua @@ -139,6 +139,7 @@ do local STCK = luatexja.userid_table.STCK local IHB = luatexja.userid_table.IHB local id_local = node.id('local_par') + local id_dir = node.id('dir') local function test_list(h, lv) if not h then @@ -157,7 +158,7 @@ do flag = 0; break -- error end end - elseif p.id~=id_local then + elseif p.id~=id_local and p.id~=id_dir then flag = 0; break end end @@ -220,6 +221,9 @@ do if lv==0 and not page_direction then page_direction = v -- for first call of \yoko (in luatexja-core.sty) else + if luatexja.debug then + luatexja.ext_show_node_list(node.direct.tonode(h),'>> ', texio.write_nl) + end ltjb.package_error( 'luatexja', "Use `\\" .. tostring(name) .. "' at top of list", |