From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/19082 Path: news.gmane.org!not-for-mail From: Duncan Hothersall Newsgroups: gmane.comp.tex.context Subject: Re: Header background won't go away Date: Thu, 17 Mar 2005 09:25:06 +0000 Message-ID: <42394CF2.20205@capdm.com> References: <20050317081040.DFE97128D3@ronja.ntg.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1111053725 10617 80.91.229.2 (17 Mar 2005 10:02:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 17 Mar 2005 10:02:05 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu Mar 17 11:02:05 2005 Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DBrpG-0000kO-DU for gctc-ntg-context-518@m.gmane.org; Thu, 17 Mar 2005 11:01:58 +0100 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 00DAF128C8; Thu, 17 Mar 2005 11:03:24 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01124-04; Thu, 17 Mar 2005 11:03:20 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5F61F128FD; Thu, 17 Mar 2005 10:25:22 +0100 (CET) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 46389128FD for ; Thu, 17 Mar 2005 10:25:20 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 00514-01-3 for ; Thu, 17 Mar 2005 10:25:17 +0100 (CET) Original-Received: from liszt-09.ednet.co.uk (liszt-09.ednet.co.uk [212.20.226.21]) by ronja.ntg.nl (Postfix) with ESMTP id 972D0128EE for ; Thu, 17 Mar 2005 10:25:17 +0100 (CET) Original-Received: from [192.168.254.41] (unknown [212.20.255.162]) by liszt-09.ednet.co.uk (Postfix) with ESMTP id 4FEF2225D89 for ; Thu, 17 Mar 2005 09:25:17 +0000 (GMT) User-Agent: Mozilla Thunderbird 0.9 (Windows/20041103) X-Accept-Language: en-us, en Original-To: ntg-context@ntg.nl In-Reply-To: <20050317081040.DFE97128D3@ronja.ntg.nl> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 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: by amavisd-new at ntg.nl X-MailScanner-From: ntg-context-bounces@ntg.nl X-MailScanner-To: gctc-ntg-context-518@m.gmane.org Xref: news.gmane.org gmane.comp.tex.context:19082 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:19082 Hans wrote: > you can do a stepwise page change: > > \setuphead[part][page={yes,blank,right}] > \setuphead[chapter][header=high,page={yes,blank,right}] > > also, in order to let backgrounds adapt to each page, say: > > \setupbackgrounds[state=repeat] > > otherwise only text|page backgrounds will be calculated each page and the other > ones when backgrounds are set/changed (otherwise too slow) > > Hans > > (some day i'll make this nicer) Thanks Hans, fixes problem 2, but 1 remains. So this is maybe a bug? This is my test file now: -- \setuppagenumbering[alternative=doublesided] \setuplayout[location=doublesided, backspace=8.5pc,topspace=5.5pc,top=0pt,topdistance=0pt, header=12pt,headerdistance=12pt,height=61pc,footer=16pt, bottom=6pc,leftedge=9pc,leftedgedistance=0pt,leftmargin=0pt, leftmargindistance=0pt,width=29pc,rightmargindistance=0pt, rightmargin=6.5pc,rightedgedistance=0pt,rightedge=6.5pc] \setuphead[part] [placehead=yes,resetnumber=no,page={yes,blank,right}, header=high,before=,after=] \def\XPart#1#2{#1 #2} %simplified \setuphead[chapter] [header=high,page={yes,blank,right}, before=\vbox to 14pc\bgroup,after=\vss\egroup] \def\XChapter#1#2{#1 #2} %simplified %... \setupcolors[rgb=no,cmyk=no,spot=yes,state=start] \definecolor[PantoneTwoNineFour][c=1,m=.56,y=0,k=.18] \definecolor[IFSblueheadertint][PantoneTwoNineFour][p=.12] %... \setupbackgrounds[header] [leftedge,leftmargin,text,rightmargin,rightedge] [background=color,backgroundcolor=IFSblueheadertint,state=start] \setupheader[state=start] \setupheadertexts[margin] [] [\hfill\llap{\tfx\getmarking[chapter][current]}] [\hbox to \leftmarginwidth{\rlap{\tfx\getmarking[section][last]\hfil}}] [] %... \starttext \startbodymatter \part{First part} Looks good, and no band on next page either! \chapter{First chapter} Looks good, no band on first page of chapter. \page[yes] \section{First section} Looks good, the band is there. \page[yes] \section{Second section} Looks good, the band is still there. \chapter{Second chapter} Ugh, the band has impinged on my title again. \stopbodymatter \stoptext -- Thanks, Duncan