From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/86613 Path: news.gmane.org!not-for-mail From: Henning Hraban Ramm Newsgroups: gmane.comp.tex.context Subject: Re: struggling with section headers Date: Mon, 10 Mar 2014 17:16:13 +0600 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1394450190 6478 80.91.229.3 (10 Mar 2014 11:16:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Mar 2014 11:16:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 10 12:16:40 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 1WMyCE-0006O0-LX for gctc-ntg-context-518@m.gmane.org; Mon, 10 Mar 2014 12:16:38 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 0298C101F5; Mon, 10 Mar 2014 12:16:38 +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 7oGEw0whz--6; Mon, 10 Mar 2014 12:16:34 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id BA185101E3; Mon, 10 Mar 2014 12:16:34 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 284CC101E3 for ; Mon, 10 Mar 2014 12:16:33 +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 NYdThfbvtoPu for ; Mon, 10 Mar 2014 12:16:31 +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 DC4CD101E1 for ; Mon, 10 Mar 2014 12:16:21 +0100 (CET) Original-Received: from thesan.fiee.net (thesan.fiee.net [178.77.74.245]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s2ABWrwR011231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 10 Mar 2014 12:32:53 +0100 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=fiee.net; b=H6Dpa3E3qi/fKmBGaj4DUqaouz3ss40jo8+WzxWyR+o8PZQxNROeZgttox7r7cjQiTT+ZT8ghKiFFmhJiyhHMlNibUG07la6Sb+MnXJc06x1opLX+NXv77jleMolDpz9; h=Received:Received:Content-Type:Mime-Version:Subject:From:In-Reply-To:Date:Content-Transfer-Encoding:Message-Id:References:To:X-Mailer; Original-Received: (qmail 28612 invoked from network); 10 Mar 2014 12:16:20 +0100 Original-Received: from 92-62-79-154.saimanet.kg (HELO ?192.168.0.100?) (92.62.79.154) by thesan.fiee.net with ESMTPSA (AES128-SHA encrypted, authenticated); 10 Mar 2014 12:16:20 +0100 In-Reply-To: X-Mailer: Apple Mail (2.1874) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=178.77.74.245; country=DE; region=07; city=Host; latitude=51.6500; longitude=6.1833; http://maps.google.com/maps?q=51.6500,6.1833&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LzLwRSp - 2c5f0bbb7501 - 20140310 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.72 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:86613 Archived-At: Ok, second try. Here=92s a rather minimal example: =97=97=97 \usemodule[visual] % fakewords \definepapersize[a6][width=3D105mm,height=3D148mm] % 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=3Dstart] \setuplayout[grid=3Dyes] \setupheads[ align=3D{right,nothyphenated}, = tolerance=3Dverytolerant, grid=3Dline ] \definefont[SectionFont][Sans at 11pt] % fits within grid \setuphead[section][ page=3Dno, style=3D{\SectionFont}, = before=3D{\blank}, after=3D{}, interlinespace=3D12pt ] % dummy section with long, red title \def\Section{ \startsection[title=3D{\definecolor[fakerulecolor][red]\fakewords{5}{20}\de= finecolor[fakerulecolor][black]}] \fakewords{20}{50}\par\fakewords{20}{50}\par\fakewords{20}{50}\par \stopsection } \starttext \startchapter[title=3D{See, ye mighty, and despair!}] \fakewords{10}{30} \dorecurse{20}{\Section} \stopchapter \stoptext =97=97=97 Problems: - section titles with several lines get negative space above (but not alway= s) and overprint the last line(s) of the previous section. - instead, the space before section titles must stay constant, but not show= up, if a page starts with a section title - section titles should stick to their section text and never stand alone a= t the bottom of a page I guess the first is a bug and the others may need some setup options that = I don=92t know. Gr=FC=DFlinge, Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer) ___________________________________________________________________________= ________ 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 ___________________________________________________________________________= ________