From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98772 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:47:07 +0200 Message-ID: <4A19FF7C-7361-4781-BECE-84929A34B7FC@gmail.com> References: <17463336-7ca8-4450-082b-3f123de496fb@wxs.nl> <96B93258-3B99-4FAD-AAED-A78CD50ABEC4@gmail.com> 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="===============6982410942319112719==" X-Trace: blaine.gmane.org 1502358536 21725 195.159.176.226 (10 Aug 2017 09:48:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2017 09:48:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 10 11:48:51 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 1dfk59-0005Ad-2p for gctc-ntg-context-518@m.gmane.org; Thu, 10 Aug 2017 11:48:47 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6F4601053CD; Thu, 10 Aug 2017 11:47:52 +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 hvJL315qltaq; Thu, 10 Aug 2017 11:47:51 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 97F04105394; Thu, 10 Aug 2017 11:47:51 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 6BAFE105382 for ; Thu, 10 Aug 2017 11:47:50 +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 dUm8-7M9MTx8 for ; Thu, 10 Aug 2017 11:47:49 +0200 (CEST) Original-Received: from mail-wr0-f179.google.com (mail-wr0-f179.google.com [209.85.128.179]) (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 AE0C4105394 for ; Thu, 10 Aug 2017 11:47:39 +0200 (CEST) Original-Received: by mail-wr0-f179.google.com with SMTP id 33so983157wrz.4 for ; Thu, 10 Aug 2017 02:47:39 -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=HjUvaNJJnWMshMYJXDQ6PklYYKNAZPyzI+F0hERm7gI=; b=O5Dp4hdtn/ftg1FY0R3flo6ENCtn/WmXcQEJ+9FHS4Fj2ea8kKAn9nnX+929FMYDFA If2Y82yiqO8YsehU/TeyfsBcrFH7CZIT+7jQageonETDV1/VoSzABmUZaHi5ewuaKlij 14D1SwE6PjY1/Ejo/uBPs4MwFGIu+PjlUQ6ZzLXuRBCSrEECwyKMKrj3x2bA+k4JGSGB 38miVrx8BTGqhxDya8jek4ZhB/s6XHcU4RTWVkMFLLblGPSmTO9HsDgiF7i9V/MJYq3s hMQZTlED6X/u+JGjRNHkECHItrnLe6xe9j0uDJLBYFTq0RCMUf/cm4M+xC2Zgnxtdu/F JTpA== 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=HjUvaNJJnWMshMYJXDQ6PklYYKNAZPyzI+F0hERm7gI=; b=rMqzSeWVLvvE584n8zpZrK3X5kMT8+MA0LLv0YW7c740kBKw5KqtSDJLqz0nl5P6Tl Svpb6Sp/JlWET3FdYPJTmw0pORiQIVydeUK+UYmmnYXRX+Fe3jMm9prAe14+8YSucVwe tiBWhukmsspKM0uHl/itae2p8cgOE7tis78tU9DDXpzA1DtTsA4bXtI2IqlFS3otNQ/X PbqwL2z5bO0Oir4cRwp/4mR8HMh+f3GJePWL4TktU6MLo9ERMatua26AkRxVjMUyWxjM x03pLwV99b5sphZriHu0zFtj1wTjuY/nsP0BZ/ghq0jUvuON8zMpVr06NYvO1+20BOAE J+5g== X-Gm-Message-State: AHYfb5geviRsRAXLLLQLUSCr4G/NiSGnXAg0aQErcInt+vSDLTwtDfox 7z4BXGKdAtZ/0mGLezc= X-Received: by 10.223.177.2 with SMTP id l2mr8781066wra.65.1502358430780; Thu, 10 Aug 2017 02:47:10 -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 s8sm4681259wmf.1.2017.08.10.02.47.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Aug 2017 02:47:10 -0700 (PDT) In-Reply-To: <96B93258-3B99-4FAD-AAED-A78CD50ABEC4@gmail.com> 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:98772 Archived-At: --===============6982410942319112719== Content-Type: multipart/alternative; boundary="Apple-Mail=_70F9F748-5D65-4920-AA85-F4FB1DD8B454" --Apple-Mail=_70F9F748-5D65-4920-AA85-F4FB1DD8B454 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii I forgot to add that you can also use \setupfootertexts[Page \pagenumber\ sur\ \totalnumberofpages][]=20 Best regards: OK > On 10 Aug 2017, at 11:43, Otared Kavian wrote: >=20 > Hi Fabrice, >=20 > The following gives the desired result, as Hans pointed ou: >=20 > \setuppagenumbering[alternative=3D] >=20 > \setupfootertexts[Page \pagenumber\ sur\ \lastpage][] >=20 > \starttext >=20 > \dorecurse{5}{\input knuth.tex \page} >=20 > \stoptext >=20 > Best regards: OK >=20 >> 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 >> = __________________________________________________________________________= _________ >=20 --Apple-Mail=_70F9F748-5D65-4920-AA85-F4FB1DD8B454 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii I = forgot to add that you can also use

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

Best regards: OK

On 10 = Aug 2017, at 11:43, Otared Kavian <otared@gmail.com> wrote:

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=_70F9F748-5D65-4920-AA85-F4FB1DD8B454-- --===============6982410942319112719== 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 --===============6982410942319112719==--