Checking for singlesided/doublesided at run-time
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? Regards, Lukas
Am 24.06.2020 um 08:19 schrieb Lukas/ConTeXt
: 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?
I wanted to refer to the mmodes manual, but it’s gone. Was it accidentally removed, or are modes now explained in some other manual? I didn’t find it. Hraban
On Wed, 24 Jun 2020, Henning Hraban Ramm wrote:
I wanted to refer to the mmodes manual, but it’s gone. Was it accidentally removed, or are modes now explained in some other manual? I didn’t find it.
http://www.pragma-ade.com/general/manuals/mmodes.pdf and my tugboat article wikified at: https://wiki.contextgarden.net/Modes Aditya
Am 24.06.2020 um 15:48 schrieb Aditya Mahajan
: On Wed, 24 Jun 2020, Henning Hraban Ramm wrote:
I wanted to refer to the mmodes manual, but it’s gone. Was it accidentally removed, or are modes now explained in some other manual? I didn’t find it.
Thank you, but it was in the distribution previously. Is it outdated? HR
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
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
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 "
Hi, I try to update and to fill the french content of mult-def.lua. Currently, I have an updated "mult-def.lua" file. 3 questions : 1/ which commands should be executed in order to make the new local interface effective with context 2/ which commands should be executed in order to build a local version of setup-fr.pdf 3/ many commands in setup-fr.pdf are not documented in mult-def.lua where does the additionnal translations should come from ? Thanks a lot for your precious help.
participants (5)
-
Aditya Mahajan
-
Garulfo
-
Henning Hraban Ramm
-
Lukas/ConTeXt
-
Wolfgang Schuster