From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/35243 Path: news.gmane.org!not-for-mail From: "Wolfgang Schuster" Newsgroups: gmane.comp.tex.context Subject: Re: fancyhdr equivalent Date: Mon, 2 Jul 2007 16:12:03 +0200 Message-ID: <115224fb0707020712p7781d9b6w20586edfb82675ca@mail.gmail.com> References: <115224fb0707020404x2d3e4b18pc9f194a6b5420b3b@mail.gmail.com> <115224fb0707020531l7d2acba8v3ba2c98ef53a03e6@mail.gmail.com> 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: sea.gmane.org 1183385547 14549 80.91.229.12 (2 Jul 2007 14:12:27 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2007 14:12:27 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 02 16:12:24 2007 connect(): Connection refused 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 1I5Mdb-0002qf-T2 for gctc-ntg-context-518@m.gmane.org; Mon, 02 Jul 2007 16:12:23 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7110820113; Mon, 2 Jul 2007 16:12:22 +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 26842-01-3; Mon, 2 Jul 2007 16:12:11 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3B46120106; Mon, 2 Jul 2007 16:12:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AFD972010A for ; Mon, 2 Jul 2007 16:12:08 +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 26842-01-2 for ; Mon, 2 Jul 2007 16:12:04 +0200 (CEST) Original-Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.235]) by ronja.ntg.nl (Postfix) with ESMTP id F01E920105 for ; Mon, 2 Jul 2007 16:12:03 +0200 (CEST) Original-Received: by wx-out-0506.google.com with SMTP id i27so645230wxd for ; Mon, 02 Jul 2007 07:12:03 -0700 (PDT) Original-Received: by 10.90.113.18 with SMTP id l18mr4866646agc.1183385523388; Mon, 02 Jul 2007 07:12:03 -0700 (PDT) Original-Received: by 10.90.104.4 with HTTP; Mon, 2 Jul 2007 07:12:03 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 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:35243 Archived-At: 2007/7/2, Peter I. Hansen : > On 7/2/07, Peter I. Hansen wrote: > > On 7/2/07, Wolfgang Schuster > wrote: > > > 2007/7/2, Peter I. Hansen : > > > > On 7/2/07, Wolfgang Schuster > > > > wrote: > > > > > > > > > 2007/7/2, Peter I. Hansen < peterih@gmail.com>: > > > > > > Thanks, this works for me. One thing though, I would like to turn > the > > > > > > framing off on pages where a chapter begins. I tried > > > > > > \setuphead[chapter][header=empty], but this just > gives > > > > me > > > > > > an empty frame. > > > > > > Is there a way to selectively turn of backgounds on for example > chapter > > > > > > pages? > > > > > > > > > > \setuphead > > > > > [chapter] > > > > > > > > > > [%before={\blank[force,\dimexpr\headerheight+\headerdistance\relax]}, > > > > > header=high] > > > > > > > > > > \setupbackgrounds[header][text][frame=on] > > > > > > > > > > \starttext > > > > > > > > > > \dorecurse{4} > > > > > {\chapter{Knuth} > > > > > \dorecurse{12} > > > > > {\input knuth\par}} > > > > > > > > > > \stoptext > > > > > > > > Beautifull. One problem arise, if you put a \placecontent after > \starttext > > > > the first chapter will stil have the frame on. > > > > > > do you mean > > > > > > \starttext > > > \placecontent > > > \chapter{Knuth} > > > \stoptext > > > > > > I see only a frame on the first page with the table of contents and > > > this normal because there is no chapter on this page. > > > > > > use \completecontent and not \placecontent > > > > > > if this is not what you mean send a example > > > > \completecontent seems to solve my problem so far... To see what my > > problem was try out the following example: > > > > \setuplayout [location=middle, > > header=\lineheight, > > > headerdistance=\lineheight] > > > > \setuppagenumbering [alternative=doublesided,location=] > > > > \setupheadertexts [section][pagenumber] > > [pagenumber][chapter] > > > > \setuphead > > [chapter] > > > [%before={\talkingk[force,\dimexpr\headerheight+\headerdistance\relax]}, > > header=high] > > > > \setupbackgrounds > [header][text][frame=off,bottomframe=on] > > > > \starttext > > > > \placecontent > > %\completecontent > > > > \dorecurse{3} > > {\chapter{Test} > > \dorecurse{250}{talking talking talking } > > } > > > > \stoptext > > > > Actually, if I add something before the content, eg. > \subject{Preface}\page[yes] then things go bad again... There is something > about this I can't grasp. Can you send the pdf file and explain what is wrong in the output Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________