diff options
author | Norbert Preining <norbert@preining.info> | 2020-05-19 03:03:34 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-05-19 03:03:34 +0000 |
commit | bb24aab36b14425d5408e5c0c889c83a70cc7a5a (patch) | |
tree | facbdb453b615f64b1421387e38cfd43222f956a /macros/luatex/generic/luatexja/src/ltj-direction.lua | |
parent | 277978fd69546e800dd8c46a0aec0d859d475ebb (diff) |
CTAN sync 202005190303
Diffstat (limited to 'macros/luatex/generic/luatexja/src/ltj-direction.lua')
-rw-r--r-- | macros/luatex/generic/luatexja/src/ltj-direction.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/macros/luatex/generic/luatexja/src/ltj-direction.lua b/macros/luatex/generic/luatexja/src/ltj-direction.lua index e97da05790..7dd0dee906 100644 --- a/macros/luatex/generic/luatexja/src/ltj-direction.lua +++ b/macros/luatex/generic/luatexja/src/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", |