From: Youssef Cherem via ntg-context <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: Youssef Cherem <ycherem@gmail.com>
Subject: doublesided margin page number
Date: Sun, 23 Jan 2022 22:28:29 -0300 [thread overview]
Message-ID: <CAPENqt1p5dYNrTRW03JiYvY849r_NX6RBp4LYQbHmdXT_1zzdw@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1357 bytes --]
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-and-bottomspace?rq=1
\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!
[-- Attachment #1.2: Type: text/html, Size: 5182 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
___________________________________________________________________________________
next reply other threads:[~2022-01-24 1:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-24 1:28 Youssef Cherem via ntg-context [this message]
2022-01-31 18:19 ` Pablo Rodriguez via ntg-context
2022-01-31 18:50 ` Pablo Rodriguez via ntg-context
2022-01-31 19:42 ` Wolfgang Schuster via ntg-context
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPENqt1p5dYNrTRW03JiYvY849r_NX6RBp4LYQbHmdXT_1zzdw@mail.gmail.com \
--to=ntg-context@ntg.nl \
--cc=ycherem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).