[NTG-context] Checking for singlesided/doublesided at run-time

Lukas/ConTeXt lpr.context at email.cz
Wed Jun 24 16:14:02 CEST 2020


Hello,




I've just been noticed about wiki update related to *singlesided and *
doublesided modes.




Thank you, Wolfgang and Aditya, for answering and filling in the wiki.




Best regards,




Lukas




---------- Původní e-mail ----------
Od: Wolfgang Schuster <wolfgang.schuster.lists at gmail.com>
Komu: mailing list for ConTeXt users <ntg-context at ntg.nl>
Datum: 24. 6. 2020 15:08:33
Předmět: Re: [NTG-context] Checking for singlesided/doublesided at run-time 
"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
"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20200624/8c205d95/attachment.htm>


More information about the ntg-context mailing list