Footer including "Page n of m"
I'm trying to recreate an MS Word document in ConTeXt. The reason for this is so the final document won't stand out from the others too much, and also so that I can have better control over the layout. One thing I'm having difficulty with is the footer, which consists of a rule, followed by "Name of document on the left << space >> Page n of m" where "n" is the current page number, and "m" is the total number of pages and is on the right. Is there an automatic way of obtaining "m", and what's the best way of preceding this footer by a rule? Thanks very much, Alasdair -- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew
On Tue, 2 Aug 2011, Alasdair McAndrew wrote:
I'm trying to recreate an MS Word document in ConTeXt. The reason for this is so the final document won't stand out from the others too much, and also so that I can have better control over the layout.
One thing I'm having difficulty with is the footer, which consists of a rule, followed by
"Name of document on the left << space >> Page n of m"
where "n" is the current page number, and "m" is the total number of pages and is on the right. Is there an automatic way of obtaining "m",
\setupfootertexts[Page \currentpage\ of \lastpage]
and what's the best way of preceding this footer by a rule?
\setupbackgrounds[footer][text][topframe=on] Aditya
Thanks very much! All I had to do was include
\setuppagenumbering[state=stop]
to stop the page number being automatically included in the middle of my
footer.
cheers,
Alasdair
On Tue, Aug 2, 2011 at 10:26 AM, Aditya Mahajan
On Tue, 2 Aug 2011, Alasdair McAndrew wrote:
I'm trying to recreate an MS Word document in ConTeXt. The reason for
this is so the final document won't stand out from the others too much, and also so that I can have better control over the layout.
One thing I'm having difficulty with is the footer, which consists of a rule, followed by
"Name of document on the left << space >> Page n of m"
where "n" is the current page number, and "m" is the total number of pages and is on the right. Is there an automatic way of obtaining "m",
\setupfootertexts[Page \currentpage\ of \lastpage]
and what's the best way of preceding this footer by a rule?
\setupbackgrounds[footer][**text][topframe=on]
Aditya ______________________________**______________________________** _______________________ 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 http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ______________________________**______________________________** _______________________
-- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew
However, \setuppagenumbering[location=none] doesn't work for me (page numbers are still printed), whereas \setuppagenumbering[state=stop] does. -Alasdair On Tue, Aug 2, 2011 at 2:19 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 02.08.2011 um 02:41 schrieb Alasdair McAndrew:
Thanks very much! All I had to do was include
\setuppagenumbering[state=stop]
to stop the page number being automatically included in the middle of my footer.
Don’t do this, use \setuppagenumbering[location=none].
Wolfgang
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew
Am 02.08.2011 um 06:34 schrieb Alasdair McAndrew:
However,
\setuppagenumbering[location=none]
doesn't work for me (page numbers are still printed), whereas
\setuppagenumbering[state=stop]
Sorry, you need \setuppagenumbering[location=]. The “state=stop” setting isn’t the prefect solution because it stops pagenumbering. You can see this when you replace in Adityas example \currentpage with \pagenumber and \lastpage with \lastpagenumber. Wolfgang
Well, \setuppagenumbering[location=] still prints page numbers where I don't want them. -Alasdair On Tue, Aug 2, 2011 at 2:43 PM, Wolfgang Schuster < schuster.wolfgang@googlemail.com> wrote:
Am 02.08.2011 um 06:34 schrieb Alasdair McAndrew:
However,
\setuppagenumbering[location=none]
doesn't work for me (page numbers are still printed), whereas
\setuppagenumbering[state=stop]
Sorry, you need \setuppagenumbering[location=].
The “state=stop” setting isn’t the prefect solution because it stops pagenumbering. You can see this when you replace in Adityas example \currentpage with \pagenumber and \lastpage with \lastpagenumber.
Wolfgang
___________________________________________________________________________________ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net
___________________________________________________________________________________
-- Blog: http://amca01.wordpress.com Web: http://bit.ly/Alasdair Facebook: http://www.facebook.com/alasdair.mcandrew
participants (3)
-
Aditya Mahajan
-
Alasdair McAndrew
-
Wolfgang Schuster