![](https://secure.gravatar.com/avatar/74d41c3215dcdd377343cdc47311757c.jpg?s=120&d=mm&r=g)
24 Jun
2020
24 Jun
'20
7:05 a.m.
Lukas/ConTeXt schrieb am 24.06.2020 um 08:19:
Hello,
is there a way to detect whether the document is intended as single- or double- sided, IOW, whether \setuppagenumbering[alternative=singlesided] or \setuppagenumbering[alternative=doublesided] has been specified?
If so, is it possible by Lua, too?
%\setuppagenumbering[alternative=singlesided] %\setuppagenumbering[alternative=doublesided] %\setuppagenumbering[alternative={singlesided,doublesided}] \starttext \doifmode{*singlesided}{a} \doifmode{*doublesided}{b} \startluacode if tex.modes["*singlesided"] then context("x") end if tex.modes["*doublesided"] then context("y") end \stopluacode \stoptext Wolfgang