From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/114267 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Youssef Cherem via ntg-context Newsgroups: gmane.comp.tex.context Subject: doublesided margin page number Date: Sun, 23 Jan 2022 22:28:29 -0300 Message-ID: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5521441707389981619==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26176"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Youssef Cherem To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon Jan 24 02:29:11 2022 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane-mx.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nBoAR-0006c1-1m for gctc-ntg-context-518@m.gmane-mx.org; Mon, 24 Jan 2022 02:29:11 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 504CF289098; Mon, 24 Jan 2022 02:28:47 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U7itTtLCoGPt; Mon, 24 Jan 2022 02:28:45 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id CC45E2858B5; Mon, 24 Jan 2022 02:28:45 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id E9DD92858B5 for ; Mon, 24 Jan 2022 02:28:43 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OHJ8QB2BVK7g for ; Mon, 24 Jan 2022 02:28:42 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.219.172; helo=mail-yb1-f172.google.com; envelope-from=ycherem@gmail.com; receiver= Original-Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 619412856F5 for ; Mon, 24 Jan 2022 02:28:42 +0100 (CET) Original-Received: by mail-yb1-f172.google.com with SMTP id h14so46136007ybe.12 for ; Sun, 23 Jan 2022 17:28:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=/f7jHsnf8IH0nKf53eKis7nQuutnSVNr2Knun0H6JMA=; b=onPlpoXX0XSEGBX7aXZ76FzxKzRE85vqn4Fzt6adI8nzKpVQQQ/Apfp9JRlQ3hif0q iVoe21do5tfHvmE9Pc2xHmpCtjGvcPvqC5NSXL1PUuenNh/VXKLZpFU6XCb5mKsk3wYX SRyHEkrxG8dO4/Mit/AczRsJpd1+ko8oU4T8uQ+5J8YVnk/ayc5ACyo5vHAu8Qyyrfh/ hXl6khM9Y2oyN3TP5lXUTO45KrMW7Lh8Vcz/GLcFhQDhwJVuOP9HQ76RVB6j0PCUqy7K xHklCzdkCwBRj28RpYJk6bcYmL1jEhx0dFvtVJbAYnVZsKE+ty+UsRVa1E3XpVzWEwRH H/QQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/f7jHsnf8IH0nKf53eKis7nQuutnSVNr2Knun0H6JMA=; b=SUHeyDGPpXA6YHTVsLSWF8vUgHt1CtMZi47f8XbUsW90pOpNueBIueJGfE0cmPoBD9 X+Vh5V/eDLggJ4mtbu4d5IcTQn82RK+vyRCjxs08b9VfaSUhJzgS7XNjAcvgveOM63yb NS3ik7MK92JuxNmBnSvD7k0QNllU/739b0vgOWiTbF45FJdL745eLd93j9gP6A4TcaTL VjvtXJvtV1hhWPUJxB+Qf4EtLQ1QHmxtXhKLSHdMAXD5+gDS8UgI50cQFh45PBIG/hL7 eOWZcndEJWQAxKMZ+jnE1QqTnNEmteZSN0j5HTNqvshkInYtyelTmTxvAUwJWPT4TYI1 AYBA== X-Gm-Message-State: AOAM533mK2N1VUCsb3qTQugg4ogw1dPQG0n8ih2QqOmtNmb/hqhhheri ru8/VdNwwN8OJqI0+HEiwG3JmuR7ZCtNWMTuItVZVo2whZ8W/w== X-Google-Smtp-Source: ABdhPJxsxNFZFXG8CuuHvULl3D5RiwH7AprIQdjMcMe9BRTaW3kJIGHj1Q4TBUmt5abSEIbu7m/hmC2CmbgUp4jqnW8= X-Received: by 2002:a05:6902:102b:: with SMTP id x11mr14126385ybt.263.1642987720605; Sun, 23 Jan 2022 17:28:40 -0800 (PST) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.io gmane.comp.tex.context:114267 Archived-At: --===============5521441707389981619== Content-Type: multipart/alternative; boundary="0000000000007502d005d649e380" --0000000000007502d005d649e380 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I've managed to put double-sided page numbers -- but numbers are restarting after two, though. What's going on? =3D=3D=3D=3D \setuppagenumbering[location=3D,alternative=3Ddoublesided] % https://tex.stackexchange.com/questions/128854/context-eliminate-topspace-a= nd-bottomspace?rq=3D1 \definelayer [pagenumber] [ width=3D\paperwidth, height=3D\paperheight, % preset=3Drightbottom, voffset=3D.3\paperheight ] %\setupbackgrounds[page][background=3Dpagenumber, setups=3Dsetpagenumber] \setupbackgrounds[text] [rightmargin] [background=3Dpagenumber, setups=3Dsetpagenumber] %isso aqui =C3=A9 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=3Drightbottom` 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=3D3em, y=3D2em, ] [ frame=3Don, foregroundcolor=3Dred, foregroundstyle=3Dbold, ] {\pagenumber} \stopsetups % Disable default page numbering \starttext Page 1 \page Page 2 \page Page 3 \page Page 4 \dorecurse{15}{\input knuth} \stoptext =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Thanks a lot for any help! --0000000000007502d005d649e380 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I've managed to put double-sided page numbers -- bu= t numbers are restarting after two, though. What's going on?


=3D=3D=3D=3D

\setuppagenumbering[location=3D,alternative=3Dd= oublesided]


%https://tex.stackexchange.com/questions/128854/context-eliminate-tops= pace-and-bottomspace?rq=3D1

\definelayer

[pagenumber]

[

width=3D\paperwidth,

height=3D\paperheight,

% preset=3Drightbottom,

voffset=3D.3\paperheight

]


%\setupbackgrounds[page][backg= round=3Dpagenumber, setups=3Dsetpagenumber]

\setupbackgrounds[text] [right= margin] [background=3Dpagenumber, setups=3Dsetpagenumber]

%isso aqui =C3=A9 o que funcio= na para doublesided (frente e verso)


\startsetups setpagenumber

% Set the page number to be = (2em, \lineheight) from the bottom right corner

% Note the `preset=3Drightbo= ttom` above.

%

% The 2nd set of optional ar= guments are for the frame. For illustration I change

% the color and font of the = page number

\setlayerframed

[pagenumber]

[

x=3D3em,

y=3D2em,

]

[

frame=3Don,

foregroundcolor=3Dred,

foregroundstyle=3Dbold,<= /p>

]

{\pagenumber}

\stopsetups


% Disable default page numberi= ng



\starttext


Page 1


\page


Page 2


\page


Page 3


\page


Page 4


\dorecurse{15}{\input knuth}


\stoptext

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D




Thanks a lot for any help!




--0000000000007502d005d649e380-- --===============5521441707389981619== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============5521441707389981619==--