ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Footer including "Page n of m"
@ 2011-08-02  0:03 Alasdair McAndrew
  2011-08-02  0:26 ` Aditya Mahajan
  0 siblings, 1 reply; 8+ messages in thread
From: Alasdair McAndrew @ 2011-08-02  0:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 701 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1025 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Footer including "Page n of m"
  2011-08-02  0:03 Footer including "Page n of m" Alasdair McAndrew
@ 2011-08-02  0:26 ` Aditya Mahajan
  2011-08-02  0:41   ` Alasdair McAndrew
  0 siblings, 1 reply; 8+ messages in thread
From: Aditya Mahajan @ 2011-08-02  0:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Footer including "Page n of m"
  2011-08-02  0:26 ` Aditya Mahajan
@ 2011-08-02  0:41   ` Alasdair McAndrew
  2011-08-02  4:19     ` Wolfgang Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Alasdair McAndrew @ 2011-08-02  0:41 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1771 bytes --]

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 <adityam@umich.edu> wrote:

> 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

[-- Attachment #1.2: Type: text/html, Size: 2994 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Footer including "Page n of m"
  2011-08-02  0:41   ` Alasdair McAndrew
@ 2011-08-02  4:19     ` Wolfgang Schuster
  2011-08-02  4:34       ` Alasdair McAndrew
  0 siblings, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2011-08-02  4:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Footer including "Page n of m"
  2011-08-02  4:19     ` Wolfgang Schuster
@ 2011-08-02  4:34       ` Alasdair McAndrew
  2011-08-02  4:43         ` Wolfgang Schuster
  2011-08-02  5:01         ` Wolfgang Schuster
  0 siblings, 2 replies; 8+ messages in thread
From: Alasdair McAndrew @ 2011-08-02  4:34 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1245 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2190 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Footer including "Page n of m"
  2011-08-02  4:34       ` Alasdair McAndrew
@ 2011-08-02  4:43         ` Wolfgang Schuster
  2011-08-02  4:51           ` Alasdair McAndrew
  2011-08-02  5:01         ` Wolfgang Schuster
  1 sibling, 1 reply; 8+ messages in thread
From: Wolfgang Schuster @ 2011-08-02  4:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Footer including "Page n of m"
  2011-08-02  4:43         ` Wolfgang Schuster
@ 2011-08-02  4:51           ` Alasdair McAndrew
  0 siblings, 0 replies; 8+ messages in thread
From: Alasdair McAndrew @ 2011-08-02  4:51 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1379 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 2314 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Footer including "Page n of m"
  2011-08-02  4:34       ` Alasdair McAndrew
  2011-08-02  4:43         ` Wolfgang Schuster
@ 2011-08-02  5:01         ` Wolfgang Schuster
  1 sibling, 0 replies; 8+ messages in thread
From: Wolfgang Schuster @ 2011-08-02  5:01 UTC (permalink / raw)
  To: mailing list for ConTeXt users


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]
> 
> does.

Example!

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2011-08-02  5:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-02  0:03 Footer including "Page n of m" Alasdair McAndrew
2011-08-02  0:26 ` Aditya Mahajan
2011-08-02  0:41   ` Alasdair McAndrew
2011-08-02  4:19     ` Wolfgang Schuster
2011-08-02  4:34       ` Alasdair McAndrew
2011-08-02  4:43         ` Wolfgang Schuster
2011-08-02  4:51           ` Alasdair McAndrew
2011-08-02  5:01         ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).