From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91552 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Preventing double title pages for nested content Date: Thu, 21 May 2015 23:09:40 +0200 Message-ID: References: <54674385-59C5-4601-8BA1-E1531059EBDF@gmail.com> <884D3FE5-C9FE-4D99-BA56-9BCA84F5C6D9@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2098\)) Content-Type: multipart/mixed; boundary="===============1203884255==" X-Trace: ger.gmane.org 1432242650 30320 80.91.229.3 (21 May 2015 21:10:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 May 2015 21:10:50 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu May 21 23:10:38 2015 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 1YvXji-0002tu-2q for gctc-ntg-context-518@m.gmane.org; Thu, 21 May 2015 23:10:38 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4F90010227 for ; Thu, 21 May 2015 23:10:37 +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 4Ay_kWMdlyaT for ; Thu, 21 May 2015 23:10:35 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 79920101FC for ; Thu, 21 May 2015 23:10:03 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B25B0101FA for ; Thu, 21 May 2015 23:09:57 +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 H5K4CdGNtpoz for ; Thu, 21 May 2015 23:09:45 +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 509B5101E8 for ; Thu, 21 May 2015 23:09:44 +0200 (CEST) Original-Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4LL9hLK022229 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 21 May 2015 23:09:43 +0200 Original-Received: by wgez8 with SMTP id z8so845526wge.0 for ; Thu, 21 May 2015 14:09:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:content-type:message-id:mime-version:subject:date:references :to:in-reply-to; bh=mmTMPvI1/8KpEUczjRa+M1eO45nKgqMhSq3avp+oKqM=; b=Y/wf4uvH0dd7TieTMgFVTfuPcqtt9nepdwF/GiQkwL/zvRK0TGjQc82mH9MO4/LdR9 6k40c1GoNak5lu+TxlF9rSASYsnPlyH0j8VnukXkagSO/HJCKZHuKywnifmNkv26vYGF 5KdrSaxkHACeRAdRHgDiY3cLLse8XKlU7jBfL1POqiAIc/Cv2ELvP6HOAjyHYnQvW1w2 f6QwspwplmcGVD3I9BAFKDQ+cQd2yp+0K3ZQwmBBNn0t9GyIplnFUkJ1eAoO5HcdYJoM o2Srf6bzYyAKJyoj2i3zYKKedtxSltFesNgft3Cy9gihxzDi6/rLdDvGVwB9yIKBDmi6 Z4pA== X-Received: by 10.180.88.8 with SMTP id bc8mr1123955wib.19.1432242583141; Thu, 21 May 2015 14:09:43 -0700 (PDT) Original-Received: from keima.localdomain (x2f2f7ca.dyn.telefonica.de. [2.242.247.202]) by mx.google.com with ESMTPSA id a18sm13013wja.46.2015.05.21.14.09.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 21 May 2015 14:09:42 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.2098) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::234; country=BE; region=Brussels Capital; city=Brussels; latitude=50.8466; longitude=4.3528; http://maps.google.com/maps?q=50.8466,4.3528&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03OuJ9H0O - 692f6359df20 - 20150521 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c00::234 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c00::234; envelope-from=; helo=mail-wg0-x234.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 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" Xref: news.gmane.org gmane.comp.tex.context:91552 Archived-At: --===============1203884255== Content-Type: multipart/alternative; boundary="Apple-Mail=_1791518A-CF04-40D4-9BB8-C9280752ADDA" --Apple-Mail=_1791518A-CF04-40D4-9BB8-C9280752ADDA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > Am 21.05.2015 um 14:33 schrieb Kate F : >=20 > On 21 May 2015 at 09:06, Wolfgang Schuster = > = wrote: >>=20 >>> Am 21.05.2015 um 00:36 schrieb Kate F : >>>=20 >>> Hi, >>>=20 >>> There's been a misunderstanding here. >>>=20 >>> You're showing a structure which is a two-deep hierarchy (Libraries >>> containing Manpages). That's not what the structure in my example = is, >>> and you're showing something which I think is different to what I'm >>> asking for. (Or I just can't see how to apply the technique you're >>> illustrating) >>=20 >> You have to add just another level to my example, nothing more. >>=20 >>> The structure for my example is Volumes which contain either = Libraries >>> *or* Manpages, and a Library contains Manpages. I'll draw out the = tree >>> from my example again: >>> (this is the same as in my first email for this thread, but I'm >>> repeating it here for clarity) >>>=20 >>> \starttext >>> \placecontent[list=3D{Volume,Library,Manpage}] >>>=20 >>> \startVolume[title=3DSection 1: Programs] >>> \dorecurse{3}{\startManpage[title=3Dprogxyz(1)] \input lorem = \stopManpage} >>> \stopVolume >>>=20 >>> \startVolume[title=3DSection 2: Syscalls] >>> \dorecurse{3}{\startManpage[title=3Dsyscallxyz(1)] \input = lorem >>> \stopManpage} >>> \stopVolume >>>=20 >>> \startVolume[title=3DSection 3: Libraries] >>> \startLibrary[title=3Dlibjpeg] >>> \dorecurse{3}{\startManpage[title=3Djpegapi_a(3)] \input >>> lorem \stopManpage} >>> \stopLibrary >>> \startLibrary[title=3Dlibpng] >>> \dorecurse{3}{\startManpage[title=3Dpngapi_a(3)] \input >>> lorem \stopManpage} >>> \stopLibrary >>> \startLibrary[title=3Dlibbmp] >>> \dorecurse{3}{\startManpage[title=3Dbmpapi_a(3)] \input >>> lorem \stopManpage} >>> \stopLibrary >>> \stopVolume >>>=20 >>> \startVolume[title=3DSection 4: Drivers] >>> \dorecurse{3}{\startManpage[title=3Ddrvxyz(1)] \input lorem = \stopManpage} >>> \stopVolume >>>=20 >>> \startVolume[title=3DSection 7mk: Makefiles] >>> \dorecurse{3}{\startManpage[title=3Dxyz.mk(1)] \input lorem = \stopManpage} >>> \stopVolume >>> \stoptext >>>=20 >>> Please look at Volume 3; you can see it contains some Libraries >>> (libjpeg, libpng, libbmp). The other Volumes do not contain = Libraries; >>> they just contain Manpages directly. So the ToC is: >>>=20 >>> Volume 1: "Programs" <-- I want a title page for this >>> ... manpages for (1) >>> Volume 2: "Syscalls" <-- I want a title page for this >>> ... manpages for (2) >>> Volume 3: "Libraries" <-- no title page for this!! Because this >>> Volume contains Libraries >>> Library "libjpeg" <-- I want a title page for this >>> ... manpages for (3) libjpeg >>> Library "libpng" <-- I want a title page for this >>> ... manpages for (3) libpng >>> Library "libbmp" <-- I want a title page for this >>> ... manpages for (3) libbmp >>> Volume 4: "Drivers" <-- I want a title page for this >>> ... manpages for (4) >>> Volume 7: "Makefiles" <-- I want a title page for this >>> ... manpages for (7) >>>=20 >>> As I said in my original email, this grouping into libraries only >>> applies to Volume 3. >>>=20 >>> The effect I'm trying to achieve is to have a single title page = before >>> each set of manpages. So I want a title page for "Programs", >>> "Syscalls", "libjpeg", "libpng", "libbmp", "Drivers", and = "Makefiles". >>> But I do not want a title page for Volume 3 itself, "Libraries" >>> because that would be immediately followed by the title page for >>> libjpeg, and my aim is to avoid having two consecutive title pages. = I >>> have indicated these with arrows above. >>>=20 >>> I hope that's clear. Sorry for repeating myself=E2=80=A6 >>=20 >>=20 >> Sorry for resending nearly the same example for another time but it = still does what you asked for. >>=20 >=20 > But it doesn't... >=20 > You have a page for Volume 3 (which is made blank due to your > \ifnum\structurelistsize=3D0): You=E2=80=99re wrong, the test for \structurelistsize has nothing to do = with the empty page. >>> Volume 3: "Libraries" <-- no title page for this!! >=20 > Instead, I'm trying to find how to not have this produce a page (or > some other way to achieve the same effect). >=20 > And you have no title pages for these: >=20 >>> Volume contains Libraries >>> Library "libjpeg" <-- I want a title page for this >>> ... manpages for (3) libjpeg >>> Library "libpng" <-- I want a title page for this >>> ... manpages for (3) libpng >>> Library "libbmp" <-- I want a title page for this These weren=E2=80=99t needed for the example and I have no idea what = kind of title page you want for your Volumes and Libraries. Wolfgang= --Apple-Mail=_1791518A-CF04-40D4-9BB8-C9280752ADDA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
Am 21.05.2015 um 14:33 schrieb Kate F <kate@elide.org>:
On 21 May 2015 at 09:06, Wolfgang Schuster = <schuster.wolfgang@gmail.com> wrote:

Am 21.05.2015 um 00:36 = schrieb Kate F <kate@elide.org>:

Hi,

There's been a misunderstanding here.

You're showing a structure which is a two-deep = hierarchy (Libraries
containing Manpages). That's not what = the structure in my example is,
and you're showing = something which I think is different to what I'm
asking = for. (Or I just can't see how to apply the technique you're
illustrating)

You = have to add just another level to my example, nothing more.

The = structure for my example is Volumes which contain either Libraries
*or* Manpages, and a Library contains Manpages. I'll draw out = the tree
from my example again:
(this is the = same as in my first email for this thread, but I'm
repeating= it here for clarity)

\starttext
  \placecontent[list=3D{Volume,Library,Manpage}]

  \startVolume[title=3DSection 1: = Programs]
      \dorecurse{3}{\startManpage= [title=3Dprogxyz(1)] \input lorem \stopManpage}
  \stopVolume

  \startVolume[title=3DSection 2: Syscalls]
      \dorecurse{3}{\startManpage= [title=3Dsyscallxyz(1)] \input lorem
\stopManpage}
  \stopVolume

  \startVolume[title=3DSection 3: Libraries]
      \startLibrary[title=3Dlibjp= eg]
          \do= recurse{3}{\startManpage[title=3Djpegapi_a(3)] \input
lorem = \stopManpage}
      \stopLibrary
      \startLibrary[title=3Dlibpn= g]
          \do= recurse{3}{\startManpage[title=3Dpngapi_a(3)] \input
lorem = \stopManpage}
      \stopLibrary
      \startLibrary[title=3Dlibbm= p]
          \do= recurse{3}{\startManpage[title=3Dbmpapi_a(3)] \input
lorem = \stopManpage}
      \stopLibrary
  \stopVolume

  \startVolume[title=3DSection 4: Drivers]
      \dorecurse{3}{\startManpage= [title=3Ddrvxyz(1)] \input lorem \stopManpage}
  \stopVolume

  \startVolume[title=3DSection 7mk: Makefiles]
      \dorecurse{3}{\startManpage= [title=3Dxyz.mk(1)] \input lorem \stopManpage}
  \stopVolume
\stoptext

Please look at Volume 3; you can see it = contains some Libraries
(libjpeg, libpng, libbmp). The = other Volumes do not contain Libraries;
they just contain = Manpages directly. So the ToC is:

Volume 1: = "Programs"       <-- I want a title = page for this
  ... manpages for (1)
Volume 2: "Syscalls" =       <-- I want a title page for = this
  ... manpages for (2)
Volume = 3: "Libraries"   <-- no title page for this!! Because = this
Volume contains Libraries
  Library "libjpeg" =       <-- I want a title page for = this
      ... manpages for = (3) libjpeg
  Library "libpng" =       <-- I want a title page for = this
      ... manpages for = (3) libpng
 Library "libbmp" =       <-- I want a title page for = this
      ... manpages for = (3) libbmp
Volume 4: "Drivers" =       <-- I want a title page for = this
  ... manpages for (4)
Volume = 7: "Makefiles"       <-- I want a title = page for this
  ... manpages for (7)

As I said in my original email, this grouping = into libraries only
applies to Volume 3.

The effect I'm trying to achieve is to have a single title = page before
each set of manpages. So I want a title page = for "Programs",
"Syscalls", "libjpeg", "libpng", "libbmp", = "Drivers", and "Makefiles".
But I do not want a title page = for Volume 3 itself, "Libraries"
because that would be = immediately followed by the title page for
libjpeg, and my = aim is to avoid having two consecutive title pages. I
have = indicated these with arrows above.

I hope = that's clear. Sorry for repeating myself=E2=80=A6


Sorry for = resending nearly the same example for another time but it still does = what you asked for.


But it doesn't...

You have a page for Volume 3 (which is made = blank due to your
\ifnum\structurelistsize=3D0):

You=E2=80=99re wrong, the test for = \structurelistsize has nothing to do with the empty page.

Volume 3: = "Libraries"   <-- no title page for this!!

Instead, I'm trying to find how to not have this = produce a page (or
some other way to achieve = the same effect).

And you have no title = pages for these:

Volume contains = Libraries
  Library "libjpeg" =       <-- I want a title page for = this
      ... manpages for = (3) libjpeg
  Library "libpng" =       <-- I want a title page for = this
      ... manpages for = (3) libpng
 Library "libbmp" =       <-- I want a title page for = this

These weren=E2=80=99t needed for the example and I = have no idea what kind of title page
you want for your Volumes = and Libraries.

Wolfgang
= --Apple-Mail=_1791518A-CF04-40D4-9BB8-C9280752ADDA-- --===============1203884255== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1203884255==--