* double-sided page number placement
@ 2021-07-11 15:07 Charles Doherty
2021-07-12 5:20 ` Pablo Rodriguez
0 siblings, 1 reply; 4+ messages in thread
From: Charles Doherty @ 2021-07-11 15:07 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 779 bytes --]
Dear Hans,
The following file:
\setuplayout[location=doublesided]
\setuppagenumbering[location=inmargin,alternative=doublesided]
\starttext
\dorecurse{20}{\input knuth }
\stoptext
using:
> ConTeXt ver: 2021.04.21 11:39 LMTX fmt: 2021.7.11 int: english/english
the left page of the double spread places the page number on the right margin of the page and in the right page it is placed on the right margin
using:
> ConTeXt ver: 2019.06.20 18:47 MKIV beta fmt: 2019.6.23 int: english/english
the left page of the double spread places the page number on the left margin of the page and in the right page it is placed on the right margin. This is what I would like to get in LMTX as well. Am I doing something wrong here?
Thanks,
Charlie
[-- Attachment #1.2: Type: text/html, Size: 3119 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] 4+ messages in thread
* Re: double-sided page number placement
2021-07-11 15:07 double-sided page number placement Charles Doherty
@ 2021-07-12 5:20 ` Pablo Rodriguez
2021-07-12 10:48 ` Charles Doherty
2021-07-12 16:51 ` Hans Hagen
0 siblings, 2 replies; 4+ messages in thread
From: Pablo Rodriguez @ 2021-07-12 5:20 UTC (permalink / raw)
To: ntg-context
On 7/11/21 5:07 PM, Charles Doherty wrote:
> [...]
> the left page of the double spread places the page number on the left
> margin of the page and in the right page it is placed on the right
> margin. This is what I would like to get in LMTX as well. Am I doing
> something wrong here?
Hi Charles,
I think that "inright" is what you want:
\setuppagenumbering[alternative=doublesided,
location=inright]
\starttext
\dorecurse{20}{\input knuth }
\stoptext
With current latest from 2021.07.10 21:51, "location=inright" behaves as
you expect using LMTX.
Using MKIV with the current latest, there is no difference between
"location=inright" and "location=inmargin".
I don’t know whether this is intended or not.
I hope it might help,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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] 4+ messages in thread
* Re: double-sided page number placement
2021-07-12 5:20 ` Pablo Rodriguez
@ 2021-07-12 10:48 ` Charles Doherty
2021-07-12 16:51 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Charles Doherty @ 2021-07-12 10:48 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2669 bytes --]
Dear Pablo,
As you suggested location=inright works for me using LMTX
Hans sent me:
can you put this in cont-new.mkxl and test it with options
\unprotect
\def\page_layouts_place_text_line_left
{\hpack
{\ifdim\leftedgewidth>\zeropoint
\page_layouts_left_edge_element\c!righttext\c!rightstyle\c!rightcolor\c!rightwidth
\fi
\ifdim\leftmarginwidth>\zeropoint
\page_layouts_left_margin_element\c!righttext\c!rightstyle\c!rightcolor\c!rightwidth\plusone
\fi
\ifdim\makeupwidth>\zeropoint
\page_layouts_text_body_element_e_r_m_l
\fi
\ifdim\rightmarginwidth>\zeropoint
\page_layouts_right_margin_element\c!lefttext\c!leftstyle\c!leftcolor\c!leftwidth\zerocount
\fi
\ifdim\rightedgewidth>\zeropoint
\page_layouts_right_edge_element\c!lefttext\c!leftstyle\c!leftcolor\c!leftwidth
\fi}}
\protect
With this both inright and inmargin work in LMTX and MKIV
So everything is working for me now.
Thank you for taking the time,
Charlie
> On 12 Jul 2021, at 06:20, Pablo Rodriguez <oinos@gmx.es> wrote:
>
> On 7/11/21 5:07 PM, Charles Doherty wrote:
>> [...]
>> the left page of the double spread places the page number on the left
>> margin of the page and in the right page it is placed on the right
>> margin. This is what I would like to get in LMTX as well. Am I doing
>> something wrong here?
>
> Hi Charles,
>
> I think that "inright" is what you want:
>
> \setuppagenumbering[alternative=doublesided,
> location=inright]
>
> \starttext
> \dorecurse{20}{\input knuth }
> \stoptext
>
> With current latest from 2021.07.10 21:51, "location=inright" behaves as
> you expect using LMTX.
>
> Using MKIV with the current latest, there is no difference between
> "location=inright" and "location=inmargin".
>
> I don’t know whether this is intended or not.
>
> I hope it might help,
>
> Pablo
> --
> http://www.ousia.tk
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________
*******************************
CHARLES DOHERTY
13 BANCROFT ROAD
TALLAGHT
DUBLIN
D24 YH2V
home: +353 1 2447483
Mobile: +353 863868629
charles.doherty@icloud.com
[-- Attachment #1.2: Type: text/html, Size: 6912 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] 4+ messages in thread
* Re: double-sided page number placement
2021-07-12 5:20 ` Pablo Rodriguez
2021-07-12 10:48 ` Charles Doherty
@ 2021-07-12 16:51 ` Hans Hagen
1 sibling, 0 replies; 4+ messages in thread
From: Hans Hagen @ 2021-07-12 16:51 UTC (permalink / raw)
To: Pablo Rodriguez, mailing list for ConTeXt users
On 7/12/2021 7:20 AM, Pablo Rodriguez wrote:
> On 7/11/21 5:07 PM, Charles Doherty wrote:
>> [...]
>> the left page of the double spread places the page number on the left
>> margin of the page and in the right page it is placed on the right
>> margin. This is what I would like to get in LMTX as well. Am I doing
>> something wrong here?
>
> Hi Charles,
>
> I think that "inright" is what you want:
>
> \setuppagenumbering[alternative=doublesided,
> location=inright]
>
> \starttext
> \dorecurse{20}{\input knuth }
> \stoptext
>
> With current latest from 2021.07.10 21:51, "location=inright" behaves as
> you expect using LMTX.
>
> Using MKIV with the current latest, there is no difference between
> "location=inright" and "location=inmargin".
>
> I don’t know whether this is intended or not.
>
> I hope it might help,
the next version fixes it (the lmtx code is somewhat redone / modern)
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
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] 4+ messages in thread
end of thread, other threads:[~2021-07-12 16:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-11 15:07 double-sided page number placement Charles Doherty
2021-07-12 5:20 ` Pablo Rodriguez
2021-07-12 10:48 ` Charles Doherty
2021-07-12 16:51 ` Hans Hagen
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).