From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87214 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Empty heads after leading whitespace Date: Sat, 3 May 2014 16:52:26 +0200 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 1399128774 1614 80.91.229.3 (3 May 2014 14:52:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2014 14:52:54 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat May 03 16:52:49 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 1WgbJ3-00027I-6X for gctc-ntg-context-518@m.gmane.org; Sat, 03 May 2014 16:52:49 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D3E510248 for ; Sat, 3 May 2014 16:52:48 +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 PNBOzqiJU28S for ; Sat, 3 May 2014 16:52:48 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id ADBE51023D for ; Sat, 3 May 2014 16:52:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D0E8C101EA for ; Sat, 3 May 2014 16:52:40 +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 TIT4O1tQyKPE for ; Sat, 3 May 2014 16:52:38 +0200 (CEST) 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 95FFD101E1 for ; Sat, 3 May 2014 16:52:29 +0200 (CEST) Original-Received: from mail-ee0-x22f.google.com (mail-ee0-x22f.google.com [IPv6:2a00:1450:4013:c00::22f]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s43FDVcJ015848 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 3 May 2014 17:13:32 +0200 Original-Received: by mail-ee0-f47.google.com with SMTP id b15so3966951eek.6 for ; Sat, 03 May 2014 07:52:29 -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=RhTm6tV6GM1dhl7bfoE7MNw5ZZTzAdTHtfOQoi0kz+M=; b=OM/haLg6VGReLe8/ykO4zT+X5lAL1d6oglaFrwK1Q1QZkHherdcfa80H/9iNeW7EqT Tiai9Z+nqvsBkdkHLs3wFnzayePEEDS2cyGQJiSLga8JyktNNWsM/CgDuweMnpC9GOTy OnJaNewn+ycrPFSKOBxQK6/oa5BBmf0U6/1Ri4LDmDRRO3OAXFZzZfN0q775J+yKWL/q dIY0p5dfHRXKdO6RnrAHBy1kQecybd/wi8aiakxIUICtdUm7lLdmDjQ7+gNdOnvgzi1R XNEb/TzwQhMXpTsGgVKQU9YWwUPpo3MQ6y3PId9LQ4T//UsHrAZ1wMj7aeXnGLtB6ez8 lftg== X-Received: by 10.14.221.2 with SMTP id q2mr20874011eep.68.1399128749110; Sat, 03 May 2014 07:52:29 -0700 (PDT) Original-Received: from keima.localdomain (x2f29f54.dyn.telefonica.de. [2.242.159.84]) by mx.google.com with ESMTPSA id s46sm13399477ees.3.2014.05.03.07.52.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 03 May 2014 07:52:28 -0700 (PDT) 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=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: 01LVrdwEK - 48abc90427ce - 20140503 (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:87214 Archived-At: Am 03.05.2014 um 16:32 schrieb Maggyero : > A more explicit minimal example of the problem: > = > = > \setupheadertexts[section] > \setuphead[section][% > placehead=3Dempty, > before=3D, > after=3D] > \setuphead[subsection][% > placehead=3Dyes, > before=3D{\blank[line]}, > after=3D{\blank[line]}] > = > \starttext > \showframe > \section{My section} > \subsection{My subsection (whitespace before: problem)} > \input knuth > \subsection{My subsection (whitespace before: fine)} > \input knuth > \page > \subsection{My subsection (NO whitespace before: fine)} > \input knuth > \subsection{My subsection (whitespace before: fine)} > \input knuth > \stoptext When you don=92t need a section entry in the TOC you can use =93placehead= =3Dhidden=94, the title of the section head can be accessed with the \namedstructurevaria= ble command. \setupheadertexts[\namedstructurevariable{section}{title}] \setuphead [section] [placehead=3Dhidden] \setuphead [subsection] [placehead=3Dyes, before=3D{\blank[line]}, after=3D{\blank[line]}] \showframe \starttext \dorecurse{2} {\page \section{Section #1} \dorecurse{2} {\subsection{Subsection #1.##1} \input knuth\par}} \stoptext 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 ___________________________________________________________________________= ________