From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/87216 Path: news.gmane.org!not-for-mail From: Maggyero Newsgroups: gmane.comp.tex.context Subject: Empty heads after leading whitespace Date: Sun, 4 May 2014 01:22:45 +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="===============0792913211==" X-Trace: ger.gmane.org 1399159405 20738 80.91.229.3 (3 May 2014 23:23:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 May 2014 23:23:25 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sun May 04 01:23:20 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 1WgjH2-00052n-Vk for gctc-ntg-context-518@m.gmane.org; Sun, 04 May 2014 01:23:17 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 753AD10247 for ; Sun, 4 May 2014 01:23:16 +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 jDbB2Y2qQZKL for ; Sun, 4 May 2014 01:23:16 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 8AA611022D for ; Sun, 4 May 2014 01:23:11 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 979E9101EA for ; Sun, 4 May 2014 01:23:06 +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 5Vu9UeQdMRWf for ; Sun, 4 May 2014 01:22:55 +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 E8C6D101E1 for ; Sun, 4 May 2014 01:22:46 +0200 (CEST) Original-Received: from mail-wi0-x236.google.com (mail-wi0-x236.google.com [IPv6:2a00:1450:400c:c05::236]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s43Nho3X008648 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sun, 4 May 2014 01:43:50 +0200 Original-Received: by mail-wi0-f182.google.com with SMTP id r20so630710wiv.3 for ; Sat, 03 May 2014 16:22:45 -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=z9h1lwaYl/Qr8weiLhqFNg7kQ38qMBFbbM4UrspU+/4=; b=fpVtXEsgmXTgo5L35M08tJIXE4UYhI6EQ+douHd5o5tbqJKKYnqxGbo9JuXrmETvqY X/Wfj7Yb87hh1cTgFg8W+6bqFEFVU3PNdby2CO5QmY1czVaE4RlsyNZbYCGLywJmJuMn HXzIeaisoovOO92m4zd1uNP+NqbyLZasHFe+dJCVklwhX1bxhuRBwLNjTHkQYj3k4EV+ gc2S81X84MgoX0YDkx3GWzb2cKe1x5YYKhk+s7hPQ59Zor/40jxNbZKtW66Y9Rm5grW+ j3Qzy6O6KPt5Iwd/tuCtqhWjTUe/d4FsZZjEMXc/F2WuJHWwEhM4MErnpfuH56zQTNZI 4d8w== X-Received: by 10.180.92.69 with SMTP id ck5mr9286964wib.15.1399159365915; Sat, 03 May 2014 16:22:45 -0700 (PDT) Original-Received: by 10.216.159.132 with HTTP; Sat, 3 May 2014 16:22:45 -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::236; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01LVzHOse - 52c30286a3b6 - 20140504 (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:87216 Archived-At: --===============0792913211== Content-Type: multipart/alternative; boundary=20cf30684739fd5ccc04f8872c02 --20cf30684739fd5ccc04f8872c02 Content-Type: text/plain; charset=UTF-8 Thanks Wolfgang. I could even have sections in the TOC with '\setuptexttexts[{\placerawheaddata[section]}]'. However, how can I start a new page at each new section? The 'page=yes' pair does no longer work with your solution 'placehead=hidden' (since the head is not placed I guess). I also tried 'before=\page' or 'after=\page' without more success. Here is a minimal example showing the absence of page breaks though I specified 'page=yes' (the section numbers are also mismatched but if one puts manual page breaks they match again, so it's not really a problem for me): \setupheadertexts[\namedstructurevariable{section}{title}][] \setuphead [section] [placehead=hidden, page=yes] % <-- This key does NOT work. \setuphead [subsection] [placehead=yes, before={\blank[line]}, after={\blank[line]}] \setuptexttexts[{\placerawheaddata[section]}] \showframe \starttext \completecontent \dorecurse{2} {\section{My section} \dorecurse{2} {\subsection{My subsection} \input knuth}} \stoptext --20cf30684739fd5ccc04f8872c02 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Wolfgang. I could even have sections in the TO= C =C2=A0with '\setuptexttexts[{\placerawheaddata[section]}]'.
=

However, how can I start a new page at each new section= ? The 'page=3Dyes' pair does no longer work with your solution '= ;placehead=3Dhidden' (since the head is not placed I guess). I also tri= ed 'before=3D\page' or 'after=3D\page' without more success= . Here is a minimal example showing the absence of page breaks though I spe= cified 'page=3Dyes' (the section numbers are also mismatched but if= one puts manual page breaks they match again, so it's not really a pro= blem for me):


\setupheadertexts[\namedstructurevariabl= e{section}{title}][]

\setuphead
=C2=A0 [= section]
=C2=A0 [placehead=3Dhidden,
=C2=A0 =C2=A0page= =3Dyes] % <-- This key does NOT work.

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

\setupte= xttexts[{\placerawheaddata[section]}]

\showframe

\starttext
\completecontent
\dorecurse{2}
=C2=A0 {\section{My se= ction}
=C2=A0 =C2=A0\dorecurse{2}
=C2=A0 =C2=A0 =C2=A0{= \subsection{My subsection}
=C2=A0 =C2=A0 =C2=A0 \input knuth}}
\stoptext
--20cf30684739fd5ccc04f8872c02-- --===============0792913211== 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 ___________________________________________________________________________________ --===============0792913211==--