From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98771 Path: news.gmane.org!.POSTED!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: =?utf-8?b?SG93IGNhbiBJIGFkZCDigJxwYWdlICMgb2YgIyM=?= =?utf-8?q?=E2=80=9D_on_my_document_=3F?= Date: Thu, 10 Aug 2017 11:43:58 +0200 Message-ID: <96B93258-3B99-4FAD-AAED-A78CD50ABEC4@gmail.com> References: <17463336-7ca8-4450-082b-3f123de496fb@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.0 \(3443.1\)) Content-Type: multipart/mixed; boundary="===============1308234888626892504==" X-Trace: blaine.gmane.org 1502358272 5892 195.159.176.226 (10 Aug 2017 09:44:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2017 09:44:32 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 10 11:44:27 2017 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dfk0t-000148-0x for gctc-ntg-context-518@m.gmane.org; Thu, 10 Aug 2017 11:44:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 07ECA10523A; Thu, 10 Aug 2017 11:44:15 +0200 (CEST) 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 79LX225IiJOi; Thu, 10 Aug 2017 11:44:14 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 29AFE105247; Thu, 10 Aug 2017 11:44:14 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id ABD95105247 for ; Thu, 10 Aug 2017 11:44:13 +0200 (CEST) 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 yqy3TM9dHcnX for ; Thu, 10 Aug 2017 11:44:12 +0200 (CEST) Original-Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8FF3610523A for ; Thu, 10 Aug 2017 11:44:02 +0200 (CEST) Original-Received: by mail-wm0-f50.google.com with SMTP id t138so19668737wmt.1 for ; Thu, 10 Aug 2017 02:44:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=pJD1PJsOMIjP66p4x2z8PxF4WzdMdk/+zEbzFTZ9U6w=; b=H+FltHNy6fGSjyAXPOkR3v1phUXc+pPznHiqAY+JgGDDhTC4iOwxfTU/SXlq2xQRaQ U6jdl8/XailtbpsNJeH9wdMAlXgUMs9YpFXrtX4c+RHfvfEPoWmHap2bm6nWp7yu3vzO o1HIRpTjW7KgVTTSPB1nMXzPeFpfezv46VKXHZwobjfzYuKlu2sclYiHxQZJnUsD3iD4 InOb74GNXTahFkz+fZ7s15MwQQ4IX4AYDCOr0vNh0Lrr5rTXXn9ILr5OdBZKDIQvCPp5 k7yuvMLGQMTj0ijj9oECNSD7U8Jt0TE8UXXB7z//RUHt3k92N/Zt88fCbwp1vrUvH+hC sNpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=pJD1PJsOMIjP66p4x2z8PxF4WzdMdk/+zEbzFTZ9U6w=; b=fz1mj/BMma0YXrattF3c917uEeRqmR1OyVMwEFHStMj1aqjjPtaEqdPuj90lfnUIHQ T56y3Wvo2W6YXBERbCvn3HQ+4ONETEMLGX1qK432DegDInUeVTZuQkjbrTBc36/yX5Y2 49HTAvrr3Y05xa0Mfn+u07dAV089OecaxZxzFziGDQ6aCxUtbg3flh9XugnupRkr10f4 G8ByIoo1ajSxP2qrp47mQoYkSrHJtQlS2d57rhbCkQFGYZh9zigmy9gVmIG9EvFIDva4 vIDmCD54JDiCAzIvZG0cpQp3ousJ9wBilc+5QeTn9LnPPB8mLTfTm/L6QV1RK75Xl9AY iJbg== X-Gm-Message-State: AHYfb5hX5iWiXZQAeVx4iul3RD8pj67koN+AUR2bwUGZVSDdzmHdRSDI vGAT2Ob9Af3jDEOdqjs= X-Received: by 10.28.226.136 with SMTP id z130mr7082564wmg.153.1502358241928; Thu, 10 Aug 2017 02:44:01 -0700 (PDT) Original-Received: from [192.168.0.16] (lns-bzn-43-82-249-173-162.adsl.proxad.net. [82.249.173.162]) by smtp.gmail.com with ESMTPSA id y203sm4025607wmc.27.2017.08.10.02.44.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Aug 2017 02:44:01 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3443.1) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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.org gmane.comp.tex.context:98771 Archived-At: --===============1308234888626892504== Content-Type: multipart/alternative; boundary="Apple-Mail=_4A23A357-82B8-4F76-90BB-FDC67229612B" --Apple-Mail=_4A23A357-82B8-4F76-90BB-FDC67229612B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Fabrice, The following gives the desired result, as Hans pointed ou: \setuppagenumbering[alternative=3D] \setupfootertexts[Page \pagenumber\ sur\ \lastpage][] \starttext \dorecurse{5}{\input knuth.tex \page} \stoptext Best regards: OK > On 10 Aug 2017, at 11:28, Fabrice Couvreur = wrote: >=20 > Hi Hans and Pablo, >=20 > \setuppagenumbering[alternative=3D] >=20 > \setupfootertexts[Page \pagenumber\ sur\ \lastpage][] >=20 > The behavior is not that expected: >=20 > Page 1 sur 0 > Page 2 sur 0 > Page 3 sur 0 .... >=20 > Thanks > Fabrice >=20 > 2017-08-10 9:57 GMT+02:00 Hans Hagen >: > On 8/9/2017 11:42 PM, Fabrice Couvreur wrote: > Hello, > With Latex, I did this : >=20 > = \usepackage[colorlinks=3Dtrue,pdfstartview=3DFitV,linkcolor=3Dblue,citecol= or=3Dblue,urlcolor=3Dblue]{hyperref} > \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage}}}} >=20 >=20 > With Context, I tried this unsuccessfully ; >=20 > \setupinteraction > [state=3Dstart, > style=3D, > color=3D\darkred, > contrastcolor=3D] >=20 > \setuppagenumbering > [alternative=3D, > location=3D{footer,right}, > command=3D{Page\,\pagenumber\,sur\,\lastpage } ] > \setuppagenumbering[alternative=3D] >=20 > \setupfootertexts[Page \pagenumber\ sur\ \lastpage][] >=20 > ----------------------------------------------------------------- > Hans Hagen | PRAGMA ADE > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl = | www.pragma-pod.nl = > ----------------------------------------------------------------- >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_4A23A357-82B8-4F76-90BB-FDC67229612B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi = Fabrice,

The = following gives the desired result, as Hans pointed ou:

\setuppagenumbering[alternative=3D]

\setupfootertexts[Page \pagenumber\ = sur\ \lastpage][]

\starttext

\dorecurse{5}{\input knuth.tex \page}

\stoptext

Best regards: OK

On 10 = Aug 2017, at 11:28, Fabrice Couvreur <fabrice1.couvreur@gmail.com> wrote:

Hi Hans and Pablo,

\setuppagenumbering[alternative=3D]

\setupfootertexts[Page \pagenumber\ sur\ \lastpage][]

The behavior is not that = expected:

Page = 1 sur 0
Page 2 sur = 0
Page 3 sur 0 ....

Thanks
Fabrice

2017-08-10 9:57 GMT+02:00 Hans = Hagen <pragma@wxs.nl>:
On = 8/9/2017 11:42 PM, Fabrice Couvreur wrote:
Hello,
With Latex, I did this :

\usepackage[colorlinks=3Dtrue,pdfstartview=3DFitV,linkcolor=3Dblue,citecolor=3Dblue,urlcolor=3Dblue]{hyperref} \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage}}}}


With Context, I tried this unsuccessfully ;

\setupinteraction
     [state=3Dstart,
      style=3D,
      color=3D\darkred,
      contrastcolor=3D]

  \setuppagenumbering
         [alternative=3D,
          location=3D{footer,right},
          command=3D{Page\,\pagenumber\,sur\,\lastpage } ]
\setuppagenumbering[alternative=3D]

\setupfootertexts[Page \pagenumber\ sur\ \lastpage][]

-----------------------------------------------------------------
                    =                     =   Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 = GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
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
___________________________________________________________________________________

= __________________________________________________________________________= _________
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
_______________________________________________________________= ____________________

= --Apple-Mail=_4A23A357-82B8-4F76-90BB-FDC67229612B-- --===============1308234888626892504== 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 X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============1308234888626892504==--