From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/98773 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur 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 12:35:35 +0200 Message-ID: References: <17463336-7ca8-4450-082b-3f123de496fb@wxs.nl> <96B93258-3B99-4FAD-AAED-A78CD50ABEC4@gmail.com> <4A19FF7C-7361-4781-BECE-84929A34B7FC@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4882672758291213416==" X-Trace: blaine.gmane.org 1502361370 12647 195.159.176.226 (10 Aug 2017 10:36:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 10 Aug 2017 10:36:10 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Aug 10 12:36:01 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 1dfkoh-0002EW-UA for gctc-ntg-context-518@m.gmane.org; Thu, 10 Aug 2017 12:35:51 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 224CF1052F7; Thu, 10 Aug 2017 12:35:49 +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 TtiPqhkxfLL0; Thu, 10 Aug 2017 12:35:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 5E4CE104FE1; Thu, 10 Aug 2017 12:35:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 4D07A104FE1 for ; Thu, 10 Aug 2017 12:35:47 +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 bulKpFVGsHvv for ; Thu, 10 Aug 2017 12:35:46 +0200 (CEST) Original-Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) (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 5D46E104EDA for ; Thu, 10 Aug 2017 12:35:36 +0200 (CEST) Original-Received: by mail-wm0-f51.google.com with SMTP id k20so20040438wmg.0 for ; Thu, 10 Aug 2017 03:35:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=RgUTBaozdm68Pl6KnvwqZ7YqmTOVJYeaEI/yLuELvp0=; b=NvbpsNspzC6S2H3YdIDGTezKEYNW0m58CoWswdDCyFRjWCeOyIVLXC/acQk8OLzwOD 77vBPBOLvTYLokN/1B8Gep9j1ZKmzJ44fHexEXwXY2dskBY/t9kowQZXZcqgliZ7jWHW PYH1gMeF+ZuJSrBsIs0nNHllOb1Xso3rnXw48+CiYf+1RMrROW6IX6dqYdnR3KiIM+7e 0umnsKlOLTX9xBgGuMEPDJbDwurnUERCT8BuRVoMOK3Bluu+/rRK8QzIMtlGEaAtXjw2 SMsDtQJbSANbCvNPnyHidYy26XNX7O8EdO4kmnPgwY5PLo4uetjSVga7yeBNn3vXV/Aw 7vAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=RgUTBaozdm68Pl6KnvwqZ7YqmTOVJYeaEI/yLuELvp0=; b=JtAE9vUTUBjEZC9tZqRMtWE7BEa7VvpwbnnYk23O4NvChM4GMLvA7FUjQAdkN1618R Qqa2vXKKDeYtlpcYDBRJa/dAc3/XBd+Y3Bd+x3zaAINp1R8XBB0v1/GLo3Szcoa0ce22 gil0bHtn79eYIBI85REV9dZFXW4TxLCBisElmF303tZQ5jtGQceN+GYWJDPjOeO9v9KF FkoowrWr0rkCBgtGpy2keiZAi+N3DfIbeSsskqbJtWGxqebrz6henwjgk6EfktHWyT5b RsfMNZK94FXzZmuD+SLSBHhVrDMM/JCUpWcWTvd2wajYF1SZ+VfCqNDwWkfkqLSMf5B7 EevQ== X-Gm-Message-State: AHYfb5ia3U9aSQTdduhfDFCK2ZBqRgrwDQK3asXB3aiN7H0kYVdAK0Lw mtBGY6UuOXLgtKeu8rjSEcinH2YFfwOw X-Received: by 10.80.154.195 with SMTP id p61mr11343202edb.129.1502361335755; Thu, 10 Aug 2017 03:35:35 -0700 (PDT) Original-Received: by 10.80.205.92 with HTTP; Thu, 10 Aug 2017 03:35:35 -0700 (PDT) In-Reply-To: <4A19FF7C-7361-4781-BECE-84929A34B7FC@gmail.com> 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:98773 Archived-At: --===============4882672758291213416== Content-Type: multipart/alternative; boundary="f403045c2760bdf950055663c1b2" --f403045c2760bdf950055663c1b2 Content-Type: text/plain; charset="UTF-8" Hi Otared, This works with Texlive context but this does not work with Standalone context that I use with Emacs. How to make the last page number interactive ? Thank you Fabrice 2017-08-10 11:47 GMT+02:00 Otared Kavian : > 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 wrote: > > Hi Fabrice, > > The following gives the desired result, as Hans pointed ou: > > \setuppagenumbering[alternative=] > > \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: > > Hi Hans and Pablo, > > \setuppagenumbering[alternative=] > > \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 : > >> On 8/9/2017 11:42 PM, Fabrice Couvreur wrote: >> >>> Hello, >>> With Latex, I did this : >>> >>> \usepackage[colorlinks=true,pdfstartview=FitV,linkcolor=blue >>> ,citecolor=blue,urlcolor=blue]{hyperref} >>> \rfoot{\scriptsize{\textsf{Page~\thepage{}~sur~\pageref{LastPage}}}} >>> >>> >>> With Context, I tried this unsuccessfully ; >>> >>> \setupinteraction >>> [state=start, >>> style=, >>> color=\darkred, >>> contrastcolor=] >>> >>> \setuppagenumbering >>> [alternative=, >>> location={footer,right}, >>> command={Page\,\pagenumber\,sur\,\lastpage } ] >>> >> \setuppagenumbering[alternative=] >> >> \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/list >> info/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 > ____________________________________________________________ > _______________________ > > > > > ____________________________________________________________ > _______________________ > 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 > ____________________________________________________________ > _______________________ > --f403045c2760bdf950055663c1b2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Otared,
This works with Texlive context but this d= oes not work with Standalone context that I use with Emacs.
How to make the last page number interactive ?

= Thank you
Fabrice

2017-08-10 11:47 GMT+02:00 = Otared Kavian <otared@gmail.com>:
I f= orgot to add that you can also use

\setupfootertexts[Pag= e \pagenumber\ sur\ \totalnumberofpages][]=C2=A0

B= est regards: OK


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

Hi Fabrice,

<= div>The following gives the desired result, as Hans pointed ou:
<= br>
\setuppagenumbering[alternative=3D]

<= /div>
\setupfootertexts[Page \pagenumber\ sur\ \lastpage][]
<= br>
\starttext

\dorecurse{5}{\input knut= h.tex \page}

\stoptext

Be= st 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:

P= age 1 sur 0
Page 2 su= r 0
Page 3 sur 0 ....=

Thanks
Fabrice
=

2017-08-10 9:57 G= MT+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
=C2=A0 =C2=A0 =C2=A0[state=3Dstart,
=C2=A0 =C2=A0 =C2=A0 style=3D,
=C2=A0 =C2=A0 =C2=A0 color=3D\darkred,
=C2=A0 =C2=A0 =C2=A0 contrastcolor=3D]

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

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

-----------------------------------------------------------------=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 H= ans Hagen | PRAGMA ADE
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Ridderstraat 27 | 8061 GH = Hasselt | The Netherlands
=C2=A0 =C2=A0 =C2=A0 =C2=A0tel: 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 t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net
archive=C2=A0 :
https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

_________________________________________________________________= __________________
If your question is of interest to others as well, pl= ease add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/= mailman/listinfo/ntg-context
webpage =C2=A0: http://www.pragma-ade.nl / http://context.aanhet.ne= t
archive =C2=A0: https://bitbucket.org/phg/context-mirror= /commits/
wiki =C2=A0=C2=A0=C2=A0=C2=A0: http://contextgarden.net
______________= _________________________________________________________________= ____


<= /div>

___________________________________________= ________________________________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" rel=3D"noreferrer= " target=3D"_blank">http://www.ntg.nl/mailman/listinfo/ntg-context=
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
_________________________________________________________________= __________________

--f403045c2760bdf950055663c1b2-- --===============4882672758291213416== 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 --===============4882672758291213416==--