summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/mkiv/strc-pag.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/mkiv/strc-pag.mkiv')
-rw-r--r--Master/texmf-dist/tex/context/base/mkiv/strc-pag.mkiv10
1 files changed, 7 insertions, 3 deletions
diff --git a/Master/texmf-dist/tex/context/base/mkiv/strc-pag.mkiv b/Master/texmf-dist/tex/context/base/mkiv/strc-pag.mkiv
index 0a55fb45f33..21758d671ba 100644
--- a/Master/texmf-dist/tex/context/base/mkiv/strc-pag.mkiv
+++ b/Master/texmf-dist/tex/context/base/mkiv/strc-pag.mkiv
@@ -23,7 +23,7 @@
\countdef\realpageno \zerocount \realpageno \plusone
\countdef\userpageno \plusone \userpageno \plusone
-\countdef\subpageno \plustwo \subpageno \zerocount % !
+\countdef\subpageno \plustwo \subpageno \plusone % was \zerocount but that doesn't work well with bytext
\countdef\arrangeno \plusthree \arrangeno \zerocount % !
\countdef\pagenoshift\plusfour \pagenoshift\zerocount % !
\countdef\lastpageno \plusfive \lastpageno \zerocount % !
@@ -307,12 +307,16 @@
\installdirectcommandhandler \??pagenumbering {pagenumbering}
+% some day ifsinglesided and ifdoublesided will become obsolete
+
\appendtoks
\singlesidedfalse \setfalse\layoutisdoublesided
\doublesidedfalse \setfalse\layoutissinglesided
+ \resetsystemmode\v!singlesided
+ \resetsystemmode\v!doublesided
\processallactionsinset[\directpagenumberingparameter\c!alternative]
- [ \v!singlesided=>\singlesidedtrue\settrue\layoutissinglesided,
- \v!doublesided=>\doublesidedtrue\settrue\layoutisdoublesided]%
+ [ \v!singlesided=>\setsystemmode\v!singlesided\singlesidedtrue\settrue\layoutissinglesided,
+ \v!doublesided=>\setsystemmode\v!doublesided\doublesidedtrue\settrue\layoutisdoublesided]%
\ifdefined\trackingmarginnotestrue
\ifdoublesided
\trackingmarginnotestrue