ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Footer including "Page n of m"
Date: Mon, 1 Aug 2011 20:26:32 -0400 (EDT)	[thread overview]
Message-ID: <alpine.LNX.2.02.1108012020140.1998@ybpnyubfg.ybpnyqbznva> (raw)
In-Reply-To: <CAPGiC76s-A7KAE77O3u_cDa4OTvLH1FrCQcyh-mAiiPR9Hhodg@mail.gmail.com>

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
___________________________________________________________________________________


  reply	other threads:[~2011-08-02  0:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-02  0:03 Alasdair McAndrew
2011-08-02  0:26 ` Aditya Mahajan [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.02.1108012020140.1998@ybpnyubfg.ybpnyqbznva \
    --to=adityam@umich.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).