From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50568 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Robert-Andr=E9_Mauchin?= Newsgroups: gmane.comp.tex.context Subject: Re: \textrules in header Date: Sun, 17 May 2009 21:43:31 +0200 Message-ID: <4A1068E3.3030201@pengzone.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242629964 14940 80.91.229.12 (18 May 2009 06:59:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2009 06:59:24 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Mon May 18 08:59:17 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 1M5woe-00060Z-5O for gctc-ntg-context-518@m.gmane.org; Mon, 18 May 2009 08:59:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 70B631FDD3; Mon, 18 May 2009 08:59:15 +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 19578-05; Mon, 18 May 2009 08:58:42 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id DA0521FDCE; Mon, 18 May 2009 08:58:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 911181FADC for ; Sun, 17 May 2009 21:50:36 +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 13799-02 for ; Sun, 17 May 2009 21:50:23 +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 6A01F1FDD1 for ; Sun, 17 May 2009 21:50:23 +0200 (CEST) Original-Received: from relay3-v.mail.gandi.net (relay3-v.mail.gandi.net [217.70.178.77]) by filter1-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n4HJoMuP025815 for ; Sun, 17 May 2009 21:50:23 +0200 Original-Received: from localhost (mfilter2-d.gandi.net [217.70.178.42]) by relay3-v.mail.gandi.net (Postfix) with ESMTP id D656CBA2F for ; Sun, 17 May 2009 21:50:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter2-d.mgt.gandi.net Original-Received: from relay3-v.mail.gandi.net ([217.70.178.77]) by localhost (mfilter2-d.mgt.gandi.net [217.70.178.42]) (amavisd-new, port 10024) with ESMTP id xB1QYPWsaG22 for ; Sun, 17 May 2009 21:50:19 +0200 (CEST) Original-Received: from [192.168.10.51] (ip-201.net-89-3-63.rev.numericable.fr [89.3.63.201]) by relay3-v.mail.gandi.net (Postfix) with ESMTP id F37DABA0B for ; Sun, 17 May 2009 21:43:38 +0200 (CEST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=217.70.178.77; country=FR; region=A8; city=Paris; latitude=48.8667; longitude=2.3333; http://maps.google.com/maps?q=48.8667,2.3333&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 227066525 - 3d43bc6ce694 - 20090517 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.217 X-Virus-Scanned: amavisd-new at ntg.nl X-Mailman-Approved-At: Mon, 18 May 2009 08:58:40 +0200 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:50568 Archived-At: > Hans Hagen wrote (2001-10-18 (13:09)): > > > At 09:40 AM 10/18/2001 +0000, Peter Jander wrote: > > > Hi, > > > > > > I want a line to separate the header from the text body. Now if I > > > say > > > > > > \setupheader[after=\textrule] > > > > > > the line starts in the margin. The length is the width of the text > > > (which is ok). The same happens with a \hairline. > > > Any suggestions on how I can make the line span just the text > > > block? > > > > \setupbackgrounds[header][text] > > [frame=on,topframe=off,leftframe=off,rightframe=off] > > > > \setuplayout[header=18pt,headerdistance=12pt] > > > > \starttext \input tufte \stoptext > > Why doesn't Peter's solution work? It is the first that a new > user will think about (well, I did, at least :-). And the rules > really are something that logically belongs to the header, not > to the background. For example, when you start a new chapter, > and switch off the header on its first page, then you want the > rule to disappear as well, and not to switch it off separately > by changing the state of the background. (By the way, how would > that work? Can you give a \setuphead solution?) > > Marco Hi, Sorry to bump this very old thread, but I've searched a long time to find this solution : \setupheader[text][after=\hrule height 1pt] Hope it helps Bob ___________________________________________________________________________________ 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 ___________________________________________________________________________________