ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* 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  9:13 ` Henning Hraban Ramm
@ 2020-06-24 13:48   ` Aditya Mahajan
  2020-06-24 14:09     ` Henning Hraban Ramm
  0 siblings, 1 reply; 7+ messages in thread
From: Aditya Mahajan @ 2020-06-24 13:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

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

[-- 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

* Re: Checking for singlesided/doublesided at run-time
  2020-06-24 13:48   ` Aditya Mahajan
@ 2020-06-24 14:09     ` Henning Hraban Ramm
  0 siblings, 0 replies; 7+ messages in thread
From: Henning Hraban Ramm @ 2020-06-24 14:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> Am 24.06.2020 um 15:48 schrieb Aditya Mahajan <adityam@umich.edu>:
> 
> 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

Thank you, but it was in the distribution previously. Is it outdated?

HR
___________________________________________________________________________________
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

* Re: Checking for singlesided/doublesided at run-time
  2020-06-24 14:14   ` Lukas/ConTeXt
@ 2020-06-24 20:13     ` Garulfo
  0 siblings, 0 replies; 7+ messages in thread
From: Garulfo @ 2020-06-24 20:13 UTC (permalink / raw)
  To: ntg-context

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.

___________________________________________________________________________________
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).