From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/109371 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sylvain Hubert Newsgroups: gmane.comp.tex.context Subject: Re: "page i/n" in footer Date: Sun, 8 Nov 2020 11:42:54 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0641752135256766613==" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40548"; mail-complaints-to="usenet@ciao.gmane.io" To: Wolfgang Schuster , mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Nov 08 11:47:20 2020 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 1kbiE9-000ANH-7n for gctc-ntg-context-518@m.gmane-mx.org; Sun, 08 Nov 2020 11:47:17 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 2C0A81A8E7E; Sun, 8 Nov 2020 11:43:10 +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 mVXVvkDkCINp; Sun, 8 Nov 2020 11:43:08 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id C23C31AA349; Sun, 8 Nov 2020 11:43:08 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 26E6E1A9DCB for ; Sun, 8 Nov 2020 11:43:07 +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 3axxfBuzsZhE for ; Sun, 8 Nov 2020 11:43:06 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.47; helo=mail-io1-f47.google.com; envelope-from=champignoom@gmail.com; receiver= Original-Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) (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 821FD1A8E7E for ; Sun, 8 Nov 2020 11:43:06 +0100 (CET) Original-Received: by mail-io1-f47.google.com with SMTP id m9so6882141iox.10 for ; Sun, 08 Nov 2020 02:43:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=BVw2r/ZmAL24U5XzuObrzsnHg8UI2/6AKrxyGkduY8c=; b=mBM7smx32Ou9JSqPenMsioeNJV5npap8D46d052McUCAhA3HMqjw0B8AFIIN/na6ST 2OUQzxF9kPZY++BzhAQ0FwjVGmEi4jkKhvbcBrsj4rN5N6Wp8JGhkhI+0oySEYJimRE2 o2du+HFP/2QatSKFbUVP0Ck2fl/MP870vadTZugH/3NdCnadG8DDuvTp8PDm9FJGwt5N lRE84gifI1NLBteh8w/LbipyI+Q9URIMlCtsPrNjd+UJLGyvo2RL/X9i8w5LeuERfI2U 9Sg/IGJbUHvusJw/Hmj7B17K+HZcveAQ4wgDTJIR9hJq1q2SCuFsVx88Pd+2gul9b4xV UYuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=BVw2r/ZmAL24U5XzuObrzsnHg8UI2/6AKrxyGkduY8c=; b=jrmlP+lTI9Rk2J12LWvdTCFYPfG7k7/Fuyje1UrWCBRrc3C5E1RWVKzY+1Uto0eDaK annd+CjTx1IfOFMCnOOkJR/xPB/IF2iUU1jdaG0II1ZW9IOkHuahQC1cwEBTJeuFPFUf CMp5SWwBKXpE8Vag3m8lERR0IO4yb2DAbe1nqcj8VwjTNvnYWhiFI7xbwXLNYYViNO02 RuZCxVeKHNTPnOGdpLRKGox1lsWFigwoAPuR2kt15uyGANqPq+S5yon3C1OMBjcF8aDK FbwaDATTvLPlWBNm5g1wFucsd9/pZHl/NjgSEJKK4H1M1MKTGm1yJI1bK97rPEqPx6sK vjeg== X-Gm-Message-State: AOAM531UGbkGHSaPNnORFfarjBriUhSH2dENtwEokZc/5UFjAQdnzM31 k50+GOeG7pTa14x6w5Na9DswLBLIZ0CbFEW6PX8= X-Google-Smtp-Source: ABdhPJwCC5TEA5J2HvwfgrlWclwmV+ktrW1a6YG8txSOYoinAGz3is/5CszKaAb9iOXyIcQ2A37nzbAVhinT28zDMV0= X-Received: by 2002:a02:a15b:: with SMTP id m27mr7664660jah.116.1604832185580; Sun, 08 Nov 2020 02:43:05 -0800 (PST) In-Reply-To: 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:109371 Archived-At: --===============0641752135256766613== Content-Type: multipart/alternative; boundary="000000000000587fe105b3961c16" --000000000000587fe105b3961c16 Content-Type: text/plain; charset="UTF-8" Many thanks for the help! On Sun, 8 Nov 2020 at 10:20, Wolfgang Schuster < wolfgang.schuster.lists@gmail.com> wrote: > Sylvain Hubert schrieb am 08.11.2020 um 02:58: > > Dear List, > > > > Does anyone know how to set the footer to be "page i/n" where i=current > > page number, n=total number of page? I've tried > > > > \setuppagenumbering[location=footer, command=\groupedcommand{page > > }{/\lastcounter[userpage]}] > > > > but \lastcounter[userpage] results in empty string. > > > \setuppagenumbering > [ left={Page }, > right={/\lastuserpagenumber}] > > \starttext > \unknown > \stoptext > > or > > > \setuppagenumbering > [location=] > > \setupfootertexts > [Page \userpagenumber/\lastuserpagenumber] > > \starttext > \unknown > \stoptext > > > Wolfgang > --000000000000587fe105b3961c16 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Many thanks for the help!

On Sun, 8 Nov 2020 at 10:20, = Wolfgang Schuster <= wolfgang.schuster.lists@gmail.com> wrote:
Sylvain Hubert schrieb am 08.11.2020 um 02= :58:
> Dear List,
>
> Does anyone know how to set the footer to be "page i/n" wher= e i=3Dcurrent
> page number, n=3Dtotal number of page? I've tried
>
>=C2=A0 =C2=A0=C2=A0=C2=A0 \setuppagenumbering[location=3Dfooter, comman= d=3D\groupedcommand{page
> }{/\lastcounter[userpage]}]
>
> but \lastcounter[userpage] results in empty string.


\setuppagenumbering
=C2=A0 =C2=A0[ left=3D{Page },
=C2=A0 =C2=A0 right=3D{/\lastuserpagenumber}]

\starttext
\unknown
\stoptext

or


\setuppagenumbering
=C2=A0 =C2=A0[location=3D]

\setupfootertexts
=C2=A0 =C2=A0[Page \userpagenumber/\lastuserpagenumber]

\starttext
\unknown
\stoptext


Wolfgang
--000000000000587fe105b3961c16-- --===============0641752135256766613== 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== --===============0641752135256766613==--