From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86623 Path: news.gmane.org!not-for-mail From: Thangalin Newsgroups: gmane.comp.tex.context Subject: Re: struggling with section headers Date: Mon, 10 Mar 2014 14:11:32 -0700 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1394485899 2334 80.91.229.3 (10 Mar 2014 21:11:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2014 21:11:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 10 22:11:50 2014 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 1WN7UD-0006Lz-7H for gctc-ntg-context-518@m.gmane.org; Mon, 10 Mar 2014 22:11:49 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 83DFB101EE; Mon, 10 Mar 2014 22:11:48 +0100 (CET) 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 ComCL+x0Xy2h; Mon, 10 Mar 2014 22:11:46 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 84FE3101E3; Mon, 10 Mar 2014 22:11:46 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id EBA4D101E3 for ; Mon, 10 Mar 2014 22:11:45 +0100 (CET) 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 LJv3uGuLZgcI for ; Mon, 10 Mar 2014 22:11:44 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id A2EC2101E1 for ; Mon, 10 Mar 2014 22:11:34 +0100 (CET) Original-Received: from mail-ie0-x231.google.com (mail-ie0-x231.google.com [IPv6:2607:f8b0:4001:c03::231]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2ALS7Nr004861 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 10 Mar 2014 22:28:08 +0100 Original-Received: by mail-ie0-f177.google.com with SMTP id rl12so7909359iec.36 for ; Mon, 10 Mar 2014 14:11:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=iq6N2Ovpn8h+NXpjQzJQ06qowspBpMKeTVlE4WoJbTM=; b=EJT2iPj+Z4x15eq8TPzYWjBq64stNL1Elqr/+XbqHOQr1CscNd4QY9q4yiIKp0Ko9a sZPKQxG2HuYCBxSMn02aVGztc50/6M1muNxSQyWo/JxF0shU+W+7zGkxXfZKcEuHDprb qyyQpGm4h/LXczJ9lMzxx8b1mF9OMRk2EX8eR4DjpZOzxwqOLtANZ5GxaLOBCvEWsPVT Xpao9fJo5u+PZp1C0iDmtH1+D+0KZG+mLz+wjfex2qdj+YOin/NTJyqKFp5BOumPexT3 0ohSCovWzbhQXPwdxzRM1tvUbgYRT/RjoAv6Td7n9Ng7sBQXSbZ57qR16uSX+ZKOv4KJ rB1g== X-Received: by 10.50.50.241 with SMTP id f17mr20393316igo.23.1394485892540; Mon, 10 Mar 2014 14:11:32 -0700 (PDT) Original-Received: by 10.43.18.69 with HTTP; Mon, 10 Mar 2014 14:11:32 -0700 (PDT) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c03::231; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LzVs8iG - e72842ddb0ba - 20140310 (trained as not-spam) 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:86623 Archived-At: Hi, Try using \testpage[3]. The 3 will have to vary depending on the number of lines that the section titles can possibly take up. For example, if the section title takes up 4 lines, then you might want to use \testpage[5]. \usemodule[visual] % fakewords \definepapersize[a6][width=105mm,height=148mm] % ConTeXt seems to have forgotten about a5 and a6?? \setuppapersize[a6][a6] % small paper to get more breaks \setupbodyfont[rm,9pt] \setupinterlinespace[12pt] \setupindenting[yes, medium, next] \setupblank[big] \setupcolor[state=start] \setuplayout[grid=yes] \setupheads[ align={right,nothyphenated}, tolerance=verytolerant, grid=line ] \definefont[SectionFont][Sans at 11pt] % fits within grid \setuphead[section][ page=no, style={\SectionFont}, before={\blank\testpage[3]}, after={}, interlinespace=12pt ] % dummy section with long, red title \def\Section{ \startsection[title={\definecolor[fakerulecolor][red]Section Title\fakewords{2}{15}\definecolor[fakerulecolor][black]}] \fakewords{20}{50}\par\fakewords{20}{50}\par\fakewords{20}{50}\par \stopsection } \starttext \startchapter[title={See, ye mighty, and despair!}] \fakewords{10}{30} \dorecurse{20}{\Section} \stopchapter \stoptext ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________