From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84080 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Setting `before` option of chapter breaks header text Date: Tue, 3 Sep 2013 17:54:07 +0200 Message-ID: <5526BCEC-7BD7-43AD-B39E-8225D3E73983@gmail.com> References: <89A80267-412F-4F53-9EF3-7EC771A1C6A8@gmail.com> <8371E36D-D606-4F44-9AE1-D6874200D384@gmail.com> <9BF1100A-6230-425F-9FF6-EC236A53BD7F@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1378223659 15351 80.91.229.3 (3 Sep 2013 15:54:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Sep 2013 15:54:19 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Sep 03 17:54:23 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VGsvs-0001GS-5P for gctc-ntg-context-518@m.gmane.org; Tue, 03 Sep 2013 17:54:20 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 75A0410203; Tue, 3 Sep 2013 17:52:49 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WGwdxoJ8Nvo8; Tue, 3 Sep 2013 17:52:47 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8E75310208; Tue, 3 Sep 2013 17:52:47 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D015210208 for ; Tue, 3 Sep 2013 17:52:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id V6+D625ImDon for ; Tue, 3 Sep 2013 17:52:41 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id DC34A10203 for ; Tue, 3 Sep 2013 17:52:41 +0200 (CEST) Original-Received: from mail-ee0-x22f.google.com (mail-ee0-x22f.google.com [IPv6:2a00:1450:4013:c00::22f]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r83Fs9DH005805 for ; Tue, 3 Sep 2013 17:54:10 +0200 Original-Received: by mail-ee0-f47.google.com with SMTP id d49so3061797eek.20 for ; Tue, 03 Sep 2013 08:54:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=EEmQ6LKh1FQWIvbNAxaBx177R5q+JAz+4dTlFjqkAW8=; b=IriJe3IX5OsGrMljtraAUsTg0dQl7YJdfLeDE9t27LSm2Fa3dVtj0VWae42vaWFPsX f1Zk9UIoAHEpVOTJ7s+fnUEynAsLQJ0Gfc8oZgqBV9m7cm7dgG6VKjnz2kBTiRIZpzqZ 6HCu554+DCSQyIo7T4JQZDMng/lYgrxdehD5QjzSZpqfvV8IlweVDwJCL66DCCdv4P+b wcXoLKLeIoZ1cKVKg2JQctShDMrERd+2kK2T2XhB1Hv1rC5JhuJKe3SnBLa4Ztlt9far 1MCApT68LH6HpADQSBvFKfvdjtOxsLAbCdMM7g1hF/c7WmFIpLpzUXFImCkf161BC4GH 6Ugg== X-Received: by 10.14.182.9 with SMTP id n9mr4389537eem.66.1378223649801; Tue, 03 Sep 2013 08:54:09 -0700 (PDT) Original-Received: from keima.localdomain (x2f21aa2.dyn.telefonica.de. [2.242.26.162]) by mx.google.com with ESMTPSA id m54sm32569249eex.2.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Sep 2013 08:54:09 -0700 (PDT) In-Reply-To: <9BF1100A-6230-425F-9FF6-EC236A53BD7F@gmail.com> X-Mailer: Apple Mail (2.1508) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2a00:1450:4013:c00::22f; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KkDS9bC - cb6077494946 - 20130903 X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84080 Archived-At: Am 03.09.2013 um 16:32 schrieb Michael Scholtz : > On 03.09.2013, at 16:13, Wolfgang Schuster = wrote: > = >> = >> Am 03.09.2013 um 16:02 schrieb Michael Scholtz : >> = >>> If chapter titles are styled using the `before` option, the header text= s on each first page of the documents (body|back|appendix)part are incorrec= t, because chapter name and number are empty. = >>> (Tested with ConTeXt version 2013.05.28 00:36 and 2013.09.03 10:22) >>> = >>> Is this a bug? (If not, is there any other way to set `before` without = breaking the headers?) >> = >> It=92s the wrong method to add rules at the begin/end of a heading. >> = >> A better way to add rules is to put a frame around the text. >> = >> \defineframedtext >> [ChapterFrame] >> [frame=3Doff, >> width=3D\textwidth, >> topframe=3Don, >> bottomframe=3Don, >> offset=3D0pt, >> toffset=3D1ex, >> boffset=3D1ex] >> = >> \setuphead >> [chapter] >> [before=3D\startChapterFrame, >> after=3D\stopChapterFrame] >> = >> Wolfgang > = > = > Thanks, I got this from the wiki page: http://wiki.contextgarden.net/Titl= es#Your_Own_Titling_Levels > ...but it seems to be wrong there. It=92s a solution which works but also with side effects because allow TeX = to break the page between the rule and the heading which isn=92t the case with frame= dtext where the whole block is unbreakable. > I used `before` (probably in the wrong way ;-) ) to add more space above = each chapter title. = > How to do this without `before`? Controlling the space before and after the heading is the default way in wh= ich the before/after keys are used. There has been a few suggestions to add a spacebefore key to= \setuphead which will replace "before=3D\blank" for this but this hasn=92t happened so far. In the example above you can now set the spaces before and after the headin= g in the framedtext setup with "before=3D{\blank[2cm]}" and "after=3D\blank". Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________