diff options
author | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-06-02 23:03:30 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg42.2a@gmail.com> | 2016-06-02 23:03:30 +0200 |
commit | 2bca80bc96d0182956e57c51b5d4977f714bed5c (patch) | |
tree | e0edb360bc5de3067487bcbb31eb040f696e2853 /tex/context/base/mkiv/layo-ini.lua | |
parent | a274872832cdd1e71ce4b019858c61c5a77c6b98 (diff) | |
download | context-2bca80bc96d0182956e57c51b5d4977f714bed5c.tar.gz |
2016-06-02 21:33:00
Diffstat (limited to 'tex/context/base/mkiv/layo-ini.lua')
-rw-r--r-- | tex/context/base/mkiv/layo-ini.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tex/context/base/mkiv/layo-ini.lua b/tex/context/base/mkiv/layo-ini.lua index d35d7ef69..bfe33595d 100644 --- a/tex/context/base/mkiv/layo-ini.lua +++ b/tex/context/base/mkiv/layo-ini.lua @@ -18,7 +18,7 @@ layouts = { local status = layouts.status -function status.leftorrightpagection(left,right) +function status.leftorrightpageaction(left,right) if left == nil then left, right = false, true end @@ -41,14 +41,14 @@ function status.leftorrightpagection(left,right) end end -function status.isleftpage() +function status.isleftpage(r) if not conditionals.layoutisdoublesided then return false elseif conditionals.layoutissinglesided then return false elseif texgetcount("pagenoshift") % 2 == 0 then - return texgetcount("realpageno") % 2 == 0 + return (r or texgetcount("realpageno")) % 2 == 0 else - return not texgetcount("realpageno") % 2 == 0 + return not (r or texgetcount("realpageno")) % 2 == 0 end end |