From: Aditya Mahajan <adityam@umich.edu>
Subject: Re: Make page number appear on top of image
Date: Fri, 13 Oct 2006 01:01:09 -0400 (EDT) [thread overview]
Message-ID: <Pine.WNT.4.63.0610130058050.872@nqvgln> (raw)
In-Reply-To: <Pine.WNT.4.63.0610121326090.2356@nqvgln>
On Thu, 12 Oct 2006, Aditya Mahajan wrote:
> 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?
This is what I ended up doing
\startsetups pagenumber
\setlayer[pagenumber]{\tfb \getnumber[page]}
\stopsetups
\setupfootertexts[\setups{pagenumber}]
This makes sure that the layer is re-evaluated on each page. This
works fine but is there a better way to do this? If not, how about
adding something like
repeat=page
so that the layer is evaluated on each page?
Aditya
prev parent reply other threads:[~2006-10-13 5:01 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
2006-10-13 5:01 ` Aditya Mahajan [this message]
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.0610130058050.872@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).