From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87254 Path: news.gmane.org!not-for-mail From: Maggyero Newsgroups: gmane.comp.tex.context Subject: Empty heads after leading whitespace Date: Mon, 5 May 2014 04:19:31 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1399880315==" X-Trace: ger.gmane.org 1399400957 1173 80.91.229.3 (6 May 2014 18:29:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 May 2014 18:29:17 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 06 20:29:12 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 1Whihg-0004U6-Bq for gctc-ntg-context-518@m.gmane.org; Tue, 06 May 2014 18:58:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 305161022B for ; Mon, 5 May 2014 04:19:53 +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 gDCHxUVfhXRq for ; Mon, 5 May 2014 04:19:53 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 20F8510211 for ; Mon, 5 May 2014 04:19:50 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5806D101E2 for ; Mon, 5 May 2014 04:19:42 +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 EAk7uZXGMLso for ; Mon, 5 May 2014 04:19:40 +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 8C2DD101E1 for ; Mon, 5 May 2014 04:19:32 +0200 (CEST) Original-Received: from mail-wg0-x231.google.com (mail-wg0-x231.google.com [IPv6:2a00:1450:400c:c00::231]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s452JV7d000484 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Mon, 5 May 2014 04:19:31 +0200 Original-Received: by mail-wg0-f49.google.com with SMTP id m15so1547980wgh.8 for ; Sun, 04 May 2014 19:19:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=BQt12OU/F70coHNrUFaY5EMWA67/OCxbtbOzlIH7nWw=; b=GD9UBeyN3JxG79Q6dGboYyzecbPZsvYJkDMSHEi9lZaypRO1mjfPN3LmErYMWL81Ep b2dsl3LO4TfyxiidaU3aAeo2P+WwrTYxM/Fz3IL4DGvPA7WzvEwsv3TGrkgfyYyRNGXc dzphIh0NT3Wf4OwMULk9xIY5olUYabRvfWDzqaVRU5MoTjAtMT7Xs6kagclE9/11iNtn ZHFQln7eOBrXuzHAbMpKO+veqrPmKJvq91r67AqZXTzP7HRwMZ27rp1/1l5AzzagplKs 8HU7lp0rEJAH/J+tbz3RQ9jURlCRwAxc4ATqfTQT4hV4IFeLhuRbR77vV3gUhVzuA0fd tOJg== X-Received: by 10.180.92.34 with SMTP id cj2mr13620011wib.15.1399256371378; Sun, 04 May 2014 19:19:31 -0700 (PDT) Original-Received: by 10.216.159.132 with HTTP; Sun, 4 May 2014 19:19:31 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::231; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03LW2jv7h - 78f178d4a219 - 20140505 (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:87254 Archived-At: --===============1399880315== Content-Type: multipart/alternative; boundary=f46d043892b5f7403c04f89dc29d --f46d043892b5f7403c04f89dc29d Content-Type: text/plain; charset=UTF-8 For those who are interested, I've finally solved my problem (the vertical space before a subsection which was not automatically swallowed at the top of a page when the page started with an empty section) by using the pair 'after={\vskip 0em\blank[disable]}' for sections: \setuphead [section] [placehead=empty, page=yes, after={\vskip 0em\blank[disable]}] \setuphead [subsection] [placehead=yes, before={\blank[line]}, after={\blank[line]}] \setupheadertexts[section] \showframe \starttext \completecontent \dorecurse{2} {\section{My section} \dorecurse{2} {\subsection{My subsection} \input knuth}} \stoptext --f46d043892b5f7403c04f89dc29d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
For those who are interested, I've finally solved= my problem (the vertical space before a subsection which was not automatic= ally swallowed at the top of a page when the page started with an empty sec= tion) by using the pair 'after=3D{\vskip 0em\blank[disable]}' for s= ections:


\setuphead
=C2=A0 [section]
=C2=A0 [placehead=3Dempty,
=C2=A0 =C2=A0page=3Dyes,
=
=C2=A0 =C2=A0after=3D{\vskip 0em\blank[disable]}]

=
\setuphead
=C2=A0 [subsection]
=C2=A0 [placehead=3Dyes,
=C2=A0 =C2=A0before=3D{\blank[line]= },
=C2=A0 =C2=A0after=3D{\blank[line]}]

= \setupheadertexts[section]

\showframe
\starttext
=C2=A0 =C2=A0\completecontent
=C2=A0 =C2=A0\dorecurse{2}
=C2=A0 =C2=A0 =C2=A0{\section{My section}
=C2=A0 =C2=A0 = =C2=A0 \dorecurse{2}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 {\subsection{My = subsection}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\input knuth}}
\stoptext
--f46d043892b5f7403c04f89dc29d-- --===============1399880315== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1399880315==--