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 } ] Thank you Fabrice
On 08/09/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}}}}
Hi Fabrice, this is a ConTeXt list. Personally, I don’t remember what the code above could achieve in LaTeX (I haven’t used it in the last decade).
With Context, I tried this unsuccessfully ;
\setupinteraction [state=start, style=, color=\darkred, contrastcolor=]
It is clear that color=darkred isn’t color=darkblue ;-). But I guess you need: \enabledirectives[references.border=darkred] (Or blue, the color you want.) \setupinteraction [state=start, style=, color=, contrastcolor=] \enabledirectives[references.border=darkred] \unexpanded\def\href#1{\goto{#1} [url(#1)]} \starttext \href{http://wiki.contextgarden.net/} \stoptext
\setuppagenumbering [alternative=, location={footer,right}, command={Page\,\pagenumber\,sur\,\lastpage } ]
\showframe \setupfootertexts[][Page\,\pagenumber\,sur\,\lastpagenumber] \setuppagenumbering[location=] \starttext \dorecurse{50}{a\page} \stoptext Wikify what you think it may help others (or that it might have helped you if it was there before), Pablo -- http://www.ousia.tk
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 -----------------------------------------------------------------
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 ____________________________________________________________ _______________________
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
mailto:pragma@wxs.nl>: 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 http://www.pragma-ade.nl/ | www.pragma-pod.nl http://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 mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / http://context.aanhet.net http://context.aanhet.net/ archive : https://bitbucket.org/phg/context-mirror/commits/ https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net 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 ___________________________________________________________________________________
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
mailto:fabrice1.couvreur@gmail.com> 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
mailto:pragma@wxs.nl>: 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 http://www.pragma-ade.nl/ | www.pragma-pod.nl http://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 mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / http://context.aanhet.net http://context.aanhet.net/ archive : https://bitbucket.org/phg/context-mirror/commits/ https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net 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 mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl http://www.pragma-ade.nl/ / http://context.aanhet.net http://context.aanhet.net/ archive : https://bitbucket.org/phg/context-mirror/commits/ https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net http://contextgarden.net/ ___________________________________________________________________________________
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 ____________________________________________________________ _______________________
Hi Otared, This works with Texlive context but this does not work with Standalone context that I use with Emacs.
I believe that Emacs calls ConTeXt with `context --once`. You need multiple runs to resolve \lastpage. Aditya
On 08/10/2017 12:35 PM, Fabrice Couvreur wrote:
[...] How to make the last page number interactive ?
Hi Fabrice, I guess this might be what you want: \showframe \setupinteraction [state=start, style=, color=, contrastcolor=, focus=standard] \enabledirectives[references.border=darkred] \setuppagenumbering[alternative=] \setupfootertexts[{Page\,\pagenumber\,sur\,\at[final page]}] \starttext \dorecurse{50}{a\page} \reference[final page]{final} \stoptext Just in case it helps, Pablo -- http://www.ousia.tk
Hi,
@Aditya "You need multiple runs to resolve \lastpage"
What you propose does not solve the problem
@Pablo Very nice job !
Thanks
Merci
2017-08-10 18:54 GMT+02:00 Pablo Rodriguez
On 08/10/2017 12:35 PM, Fabrice Couvreur wrote:
[...] How to make the last page number interactive ?
Hi Fabrice,
I guess this might be what you want:
\showframe \setupinteraction [state=start, style=, color=, contrastcolor=, focus=standard] \enabledirectives[references.border=darkred] \setuppagenumbering[alternative=] \setupfootertexts[{Page\,\pagenumber\,sur\,\at[final page]}] \starttext \dorecurse{50}{a\page} \reference[final page]{final} \stoptext
Just in case it helps,
Pablo -- http://www.ousia.tk ____________________________________________________________ _______________________ 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 ____________________________________________________________ _______________________
On Thu, 10 Aug 2017, Fabrice Couvreur wrote:
Hi, @Aditya "You need multiple runs to resolve \lastpage" What you propose does not solve the problem
How are you running it. You need to remove the --once call from the context call. (Not sure how to do this in Emacs) Aditya
Hi Peter and Aditya,
"You run the command "ConTeXt Full" instead of "ConTeXt"
It works !
Thank you
Fabrice
2017-08-11 9:30 GMT+02:00 Peter Münster
On Thu, Aug 10 2017, Aditya Mahajan wrote:
You need to remove the --once call from the context call. (Not sure how to do this in Emacs)
You run the command "ConTeXt Full" instead of "ConTeXt".
-- Peter ____________________________________________________________ _______________________ 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 ____________________________________________________________ _______________________
participants (6)
-
Aditya Mahajan
-
Fabrice Couvreur
-
Hans Hagen
-
Otared Kavian
-
Pablo Rodriguez
-
Peter Münster