* Placing pagenumer with coordinates (layers)
@ 2021-09-21 10:24 Huseyin Özoguz via ntg-context
2021-09-21 14:18 ` Wolfgang Schuster via ntg-context
0 siblings, 1 reply; 2+ messages in thread
From: Huseyin Özoguz via ntg-context @ 2021-09-21 10:24 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Huseyin Özoguz
Hello dear context-enthusiasts,
I want to place the pagenumber on a double-sided project with
coordinates. I tried the layer-mechanism:
\setuppagenumbering[location=]
\definelayer
[pagenumber]
[width=\paperwidth,
height=\paperheight,
location={left,top},
x=120mm,y=220mm,
doublesided=yes]
\startsetups layer
\setlayer[pagenumber][even]{\pagenumber}
\stopsetups
\setupbackgrounds[page][setups=layer,background={pagenumber}]
\starttext
~\page~\page~\page
\stoptext
And it works, but only for the left (even) page. On the right page I
want to place the pagenumber on different coordinates. I tried to copy
the layer and then change [even] to [odd] with different coordinates,
but that did not work (no pagenumber printed). What do you suggest?
Thank you.
Huseyin
___________________________________________________________________________________
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] 2+ messages in thread
* Re: Placing pagenumer with coordinates (layers)
2021-09-21 10:24 Placing pagenumer with coordinates (layers) Huseyin Özoguz via ntg-context
@ 2021-09-21 14:18 ` Wolfgang Schuster via ntg-context
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-09-21 14:18 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Wolfgang Schuster
Huseyin Özoguz via ntg-context schrieb am 21.09.2021 um 12:24:
> Hello dear context-enthusiasts,
>
> I want to place the pagenumber on a double-sided project with
> coordinates. I tried the layer-mechanism:
>
> \setuppagenumbering[location=]
>
> \definelayer
> [pagenumber]
> [width=\paperwidth,
> height=\paperheight,
> location={left,top},
> x=120mm,y=220mm,
> doublesided=yes]
>
> \startsetups layer
> \setlayer[pagenumber][even]{\pagenumber}
> \stopsetups
>
> \setupbackgrounds[page][setups=layer,background={pagenumber}]
>
> \starttext
> ~\page~\page~\page
> \stoptext
>
>
> And it works, but only for the left (even) page. On the right page I
> want to place the pagenumber on different coordinates. I tried to copy
> the layer and then change [even] to [odd] with different coordinates,
> but that did not work (no pagenumber printed). What do you suggest?
Use a doublesided layout.
\setuppagenumbering
[alternative={singlesided,doublesided},
location=none]
\definelayer
[pagenumber]
[width=\paperwidth,
height=\paperheight,
x=12cm,
y=22cm,
doublesided=yes]
\startsetups layer
\setlayer[pagenumber][even][preset=lefttop]{\pagenumber}
\setlayer[pagenumber][odd][preset=righttop]{\pagenumber}
\stopsetups
\setupbackgrounds[page][setups=layer,background=pagenumber]
\starttext
\dorecurse{10}{\page[dummy]}
\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] 2+ messages in thread
end of thread, other threads:[~2021-09-21 14:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-21 10:24 Placing pagenumer with coordinates (layers) Huseyin Özoguz via ntg-context
2021-09-21 14:18 ` Wolfgang Schuster via ntg-context
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).