ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Make page number appear on top of image
Date: Thu, 12 Oct 2006 13:29:17 -0400 (EDT)	[thread overview]
Message-ID: <Pine.WNT.4.63.0610121326090.2356@nqvgln> (raw)
In-Reply-To: <Pine.WNT.4.63.0610112023030.3248@nqvgln>

On Wed, 11 Oct 2006, Aditya Mahajan wrote:

> Hi,
>  I want to combine some papers into a single pdf file "with page
> numbers". I am including the papers using
>
> \copypages[filename]
>
> However, the pagenumber is not printed when the paper is a scanned
> copy. I guess this is because the page number is printed and then the
> scanned image is printed on top of it, thereby hiding the page number.
>
> How can I force the page number to appear on top?

I tried layer, and it almost works. How do I get the layer to be 
evaluated at each page. I get pagenumber=1 on all pages.

\definelayer
   [pagenumber]
   [width=\paperwidth,height=\paperheight,state=continue]

\setupbackgrounds[page][background={foreground,pagenumber}]

\setlayer[pagenumber]
          [corner={right,bottom},location={left,top},x=1cm,y=1cm]
          {\tfb \getnumber[page]}


with layer state=start I get the page number on only the first page. 
With state=repeat|continue I always get 1. What should I use so that 
the layer is evaluated again on each page?

Aditya

  reply	other threads:[~2006-10-12 17:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-12  0:26 Aditya Mahajan
2006-10-12 17:29 ` Aditya Mahajan [this message]
2006-10-13  5:01   ` Aditya Mahajan

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=Pine.WNT.4.63.0610121326090.2356@nqvgln \
    --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).