doublesided margin page number
I've managed to put double-sided page numbers -- but numbers are restarting after two, though. What's going on? ==== \setuppagenumbering[location=,alternative=doublesided] % https://tex.stackexchange.com/questions/128854/context-eliminate-topspace-an... \definelayer [pagenumber] [ width=\paperwidth, height=\paperheight, % preset=rightbottom, voffset=.3\paperheight ] %\setupbackgrounds[page][background=pagenumber, setups=setpagenumber] \setupbackgrounds[text] [rightmargin] [background=pagenumber, setups=setpagenumber] %isso aqui é o que funciona para doublesided (frente e verso) \startsetups setpagenumber % Set the page number to be (2em, \lineheight) from the bottom right corner % Note the `preset=rightbottom` above. % % The 2nd set of optional arguments are for the frame. For illustration I change % the color and font of the page number \setlayerframed [pagenumber] [ x=3em, y=2em, ] [ frame=on, foregroundcolor=red, foregroundstyle=bold, ] {\pagenumber} \stopsetups % Disable default page numbering \starttext Page 1 \page Page 2 \page Page 3 \page Page 4 \dorecurse{15}{\input knuth} \stoptext ===================== Thanks a lot for any help!
On 1/24/22 2:28 AM, Youssef Cherem via ntg-context wrote:
I've managed to put double-sided page numbers -- but numbers are restarting after two, though. What's going on?
Hi Yousesef, I think this is related to how \setupbackgrounds is invoked. The following command works: \setupbackgrounds[page] [setups=setpagenumber, background=pgnumber] Of course, you have to place the layer properly. Just in case it might help, Pablo
On 1/31/22 7:19 PM, Pablo Rodriguez via ntg-context wrote:
On 1/24/22 2:28 AM, Youssef Cherem via ntg-context wrote:
I've managed to put double-sided page numbers -- but numbers are restarting after two, though. What's going on?
Hi Yousesef, ^
Sorry for the typo when writing your name, Youssef. Pablo
participants (3)
-
Pablo Rodriguez
-
Wolfgang Schuster
-
Youssef Cherem