From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51020 Path: news.gmane.org!not-for-mail From: richard.stephens@converteam.com Newsgroups: gmane.comp.tex.context Subject: Page number updates Date: Thu, 4 Jun 2009 12:59:50 +0100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1244116864 27865 80.91.229.12 (4 Jun 2009 12:01:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jun 2009 12:01:04 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Jun 04 14:01:02 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1MCBcu-0007hR-VH for gctc-ntg-context-518@m.gmane.org; Thu, 04 Jun 2009 14:00:57 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5BF1F1FB38; Thu, 4 Jun 2009 14:00:55 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32163-06; Thu, 4 Jun 2009 14:00:27 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 95C1D1FADC; Thu, 4 Jun 2009 14:00:27 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 585311FADC for ; Thu, 4 Jun 2009 14:00:26 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03237-01 for ; Thu, 4 Jun 2009 14:00:18 +0200 (CEST) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by ronja.ntg.nl (Postfix) with ESMTP id AB8E21FADB for ; Thu, 4 Jun 2009 14:00:18 +0200 (CEST) Original-Received: from mail.converteam.com (mail.converteam.com [212.155.191.29]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n54C0H2X025827 for ; Thu, 4 Jun 2009 14:00:18 +0200 X-Mailer: Lotus Notes Release 7.0.3 September 26, 2007 X-Disclaimed: 51763 X-MIMETrack: CD-MIME by Router on G-WWH20/SRV/ALSTOM(Release 7.0.3|September 26, 2007) at 04/06/2009 14:01:15, CD-MIME complete at 04/06/2009 14:01:15, Itemize by Router on G-WWH20/SRV/ALSTOM(Release 7.0.3|September 26, 2007) at 04/06/2009 14:01:15 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=212.155.191.29; country=FR; region=A3; city=Saint Denis; latitude=46.9333; longitude=2.5333; http://maps.google.com/maps?q=46.9333,2.5333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 237387759 - 505fb2fceaac - 20090604 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:51020 Archived-At: Hello again, I want to set up a header which stretches across the margins as well as the text area, so I've defined a layer for use as a background, as follows: \setuplayout[backspace=3.5cm,leftmargin=0.5cm,leftmargindistance=1.0cm] \definelayer[pagenumber][width=3cm,height=3cm] \startsetups layer \setlayer[pagenumber]{Page \pagenumber} \stopsetups \setupbackgrounds[header][leftmargin][setups=layer,background=pagenumber] \starttext \dorecurse{4}{\page[empty]} \stoptext Unfortunately, the page numbers are all '1'. If I change the line: \setupbackgrounds[header][leftmargin][setups=layer,background=pagenumber] to \setupbackgrounds[page][setups=layer,background=pagenumber] the page numbering works, so I can get what I want by adjusting the offsets of the layer. My question is: should the first one work? Regards, Richard Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. Registration Number: 2416188 Registered in England and Wales. Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU. CONFIDENTIALITY : This e-mail and any attachments are confidential and may be privileged. If you are not a named recipient, please notify the sender immediately and do not disclose the contents to another person, use it for any purpose or store or copy the information in any medium. Please consider the environment before printing this e-mail ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________