From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87245 Path: news.gmane.org!not-for-mail From: Maggyero Newsgroups: gmane.comp.tex.context Subject: Empty heads after leading whitespace Date: Tue, 6 May 2014 09:38:04 +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="===============1445069325==" X-Trace: ger.gmane.org 1399397926 9012 80.91.229.3 (6 May 2014 17:38:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 6 May 2014 17:38:46 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 06 19:38:42 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 1WhimW-0000cG-N2 for gctc-ntg-context-518@m.gmane.org; Tue, 06 May 2014 19:03:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B745110217 for ; Tue, 6 May 2014 09:38:23 +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 yb3YVOt1lv2y for ; Tue, 6 May 2014 09:38:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 06F1E101E7 for ; Tue, 6 May 2014 09:38:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 55D5E101EB for ; Tue, 6 May 2014 09:38:15 +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 S4L1--yaYp1Y for ; Tue, 6 May 2014 09:38:13 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id C8BF8101EC for ; Tue, 6 May 2014 09:38:05 +0200 (CEST) Original-Received: from mail-wi0-x229.google.com (mail-wi0-x229.google.com [IPv6:2a00:1450:400c:c05::229]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s467c4Kw019557 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 6 May 2014 09:38:04 +0200 Original-Received: by mail-wi0-f169.google.com with SMTP id hi2so2424493wib.2 for ; Tue, 06 May 2014 00:38:04 -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=PIB/Ebx9EE91W6VOtr2MRQRO6AAxys3gtF9eL3Uegf8=; b=qFaEopQZRil+53bAUUUhzXzNjxpk4eMxmGQeW0R6k38LlwoZHlUoy4ph4LjtwMb8WR JBcZwRbaqMcfoytXUDpidSG3IblLRSB1C08ljOhD+oNwYOPd0qZDJQKJfoub6ftp40vj G6EYc9Q1Fi5pjbNPkEkF2CfRX8mMPpM2bRNIQYJvmMMU+ZYmz5Znwg2UcxKEOzZmTmPv rfCMwMFFi9kZCJRQ19BSd2bt8YtTnQBcFf6ANeFqRfj1SOhnpuNjHCJQEyLHCDAJYcte W1mlHgpWntkAv6yL3xf3OiRi6b0HVuaZTQvH9Xmkw0OTbdLDQEXsAUJ9O6qsHpTCkmr/ iR9Q== X-Received: by 10.194.48.80 with SMTP id j16mr6431173wjn.44.1399361884149; Tue, 06 May 2014 00:38:04 -0700 (PDT) Original-Received: by 10.216.159.132 with HTTP; Tue, 6 May 2014 00:38:04 -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:c05::229; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0WLWvC4Nc - c6eee80c0e12 - 20140506 (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:87245 Archived-At: --===============1445069325== Content-Type: multipart/alternative; boundary=047d7b86c926045b8404f8b654e6 --047d7b86c926045b8404f8b654e6 Content-Type: text/plain; charset=UTF-8 > after={\blank[0em]\blank[disable]}] Yes it also works, thank you Thangalin. So here is the final solution (I have added the 'nowhite' keyword in the second blank to kill whitespaces when they are active) to get real empty heads (sections here) in the document: \setupwhitespace[line] \setuphead [section] [placehead=empty, page=yes, after={\blank[none]\blank[nowhite, 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 --047d7b86c926045b8404f8b654e6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
>=C2=A0after=3D{\blank[0em]\blank[disable]}]
=

Yes it also works, thank you=C2=A0Thangalin. So here is= the final solution (I have added the 'nowhite' keyword in the seco= nd blank to kill whitespaces when they are active) to get real empty heads = (sections here) in the document:


\setupwhitespace[line]

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

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

\setuphe= adertexts[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 \dore= curse{2}
=C2=A0 =C2=A0 =C2=A0 =C2=A0 {\subsection{My subsection}<= /div>
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0\input knuth}}
\stoptext
--047d7b86c926045b8404f8b654e6-- --===============1445069325== 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 ___________________________________________________________________________________ --===============1445069325==--