* Checking for singlesided/doublesided at run-time
@ 2020-06-24 6:19 Lukas/ConTeXt
2020-06-24 9:13 ` Henning Hraban Ramm
2020-06-24 13:05 ` Wolfgang Schuster
0 siblings, 2 replies; 7+ messages in thread
From: Lukas/ConTeXt @ 2020-06-24 6:19 UTC (permalink / raw)
To: ntg-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?
Regards,
Lukas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Checking for singlesided/doublesided at run-time
2020-06-24 6:19 Checking for singlesided/doublesided at run-time Lukas/ConTeXt
@ 2020-06-24 9:13 ` Henning Hraban Ramm
2020-06-24 13:48 ` Aditya Mahajan
2020-06-24 13:05 ` Wolfgang Schuster
1 sibling, 1 reply; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-06-24 9:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
> Am 24.06.2020 um 08:19 schrieb Lukas/ConTeXt <lpr.context@email.cz>:
>
> 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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Checking for singlesided/doublesided at run-time
2020-06-24 6:19 Checking for singlesided/doublesided at run-time Lukas/ConTeXt
2020-06-24 9:13 ` Henning Hraban Ramm
@ 2020-06-24 13:05 ` Wolfgang Schuster
2020-06-24 14:14 ` Lukas/ConTeXt
1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Schuster @ 2020-06-24 13:05 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Checking for singlesided/doublesided at run-time
2020-06-24 13:05 ` Wolfgang Schuster
@ 2020-06-24 14:14 ` Lukas/ConTeXt
2020-06-24 20:13 ` Garulfo
0 siblings, 1 reply; 7+ messages in thread
From: Lukas/ConTeXt @ 2020-06-24 14:14 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1234 bytes --]
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@gmail.com>
Komu: mailing list for ConTeXt users <ntg-context@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
"
[-- Attachment #1.2: Type: text/html, Size: 1572 bytes --]
[-- Attachment #2: Type: text/plain, Size: 493 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-06-24 20:13 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-24 6:19 Checking for singlesided/doublesided at run-time Lukas/ConTeXt
2020-06-24 9:13 ` Henning Hraban Ramm
2020-06-24 13:48 ` Aditya Mahajan
2020-06-24 14:09 ` Henning Hraban Ramm
2020-06-24 13:05 ` Wolfgang Schuster
2020-06-24 14:14 ` Lukas/ConTeXt
2020-06-24 20:13 ` Garulfo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).