From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91740 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How to limit level of sections in TOC? Date: Sat, 20 Jun 2015 11:40:47 +0200 Message-ID: <5585351F.5000607@gmail.com> References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0987726339==" X-Trace: ger.gmane.org 1434793298 31781 80.91.229.3 (20 Jun 2015 09:41:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Jun 2015 09:41:38 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sat Jun 20 11:41:26 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 1Z6FHA-0008Ct-Rh for gctc-ntg-context-518@m.gmane.org; Sat, 20 Jun 2015 11:41:24 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 178BB1022F for ; Sat, 20 Jun 2015 11:41:24 +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 gIC2En8AEvAN for ; Sat, 20 Jun 2015 11:41:23 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B6EC510236 for ; Sat, 20 Jun 2015 11:40:58 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4948B101FB for ; Sat, 20 Jun 2015 11:40:55 +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 kULwUfb53MVM for ; Sat, 20 Jun 2015 11:40:54 +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 44377101E6 for ; Sat, 20 Jun 2015 11:40:54 +0200 (CEST) Original-Received: from mail-wg0-x233.google.com (mail-wg0-x233.google.com [IPv6:2a00:1450:400c:c00::233]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t5K9erNa014945 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 20 Jun 2015 11:40:53 +0200 Original-Received: by wguu7 with SMTP id u7so33992564wgu.3 for ; Sat, 20 Jun 2015 02:40:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=agfpecgQjaYBRZsTM4NQG8QadRYRGBc6imsodHh+G3E=; b=YKEH3TDWAwFwGf8P2gznkkaPZDnq7wvFqdOu0IhbBH4nsMDKTIVybWZXCre8TlFJzH azzO0qq4IiAQ01fXfYidNeU74q4FwuSVHr2ZJL44NDAo7fEnN6IwkXcvrGI1Mk/W7ESU 513FCVAlmkKxqGHIz+X+FUKM8Nkv2odHLhxadhX7f0xUPe2/+mmTQMPOSvZOHZ2q59WJ ScTBfANZnc6G335tQ+Phs1qibDCNlXz3A+YiRPe1H0816rAACCl9w4nUpZsmV2z9n1Y2 e6vpQccltB6BP4g/fyLIf7+TDfu/nn3mW5FFuv+Da/Asz1Mj6HBVpjk4Mdq52FVVG7dW FlLg== X-Received: by 10.180.82.6 with SMTP id e6mr14424409wiy.84.1434793253023; Sat, 20 Jun 2015 02:40:53 -0700 (PDT) Original-Received: from keima-2.localdomain (x2f32506.dyn.telefonica.de. [2.243.37.6]) by mx.google.com with ESMTPSA id r9sm20726953wjo.26.2015.06.20.02.40.51 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 20 Jun 2015 02:40:52 -0700 (PDT) User-Agent: Postbox 4.0.1 (Macintosh/20150514) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c00::233; 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: 03OGxER5D - 2dfc84a07498 - 20150620 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of schuster.wolfgang@gmail.com designates 2a00:1450:400c:c00::233 as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2a00:1450:400c:c00::233; envelope-from=; helo=mail-wg0-x233.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:91740 Archived-At: This is a multi-part message in MIME format. --===============0987726339== Content-Type: multipart/alternative; boundary="------------030603020203090701000903" This is a multi-part message in MIME format. --------------030603020203090701000903 Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: quoted-printable > Proch=E1zka Luk=E1=B9 Ing. - Pontex s. r. o. > 20. Juni 2015 11:30 > Hello, > > I'm not able to limit level of sections in TOC so to not show=20 > \subsubsection: > > ---- > %\setuplist[content][level=3Dsubsection] % Doesn't work > %\setuplist[content][section,subsection] % Doesn't work > > \starttext > \placecontent[level=3Dsubsection] % Doesn't work > \hairline > \placecontent[level=3D3] % Doesn't work > \hairline > > \section{Sec} > \subsection{SSec} > \subsubsection{SSSec} > \stoptext > ---- > > I studied wiki (http://wiki.contextgarden.net/Command/setuplist) and=20 > also contextref.pdf (pg. 218) but without success. The level key doesn't work with MkIV but you can use the following two=20 methods. 1. Use the \placelist command and list the sections you want to show, e.g= . \placelist[chapter,section,subsection] 2. Use the list key for \placecontent to show only the listed entries, e.= g. \placecontent[list=3D{chapter,section,subsection}] Wolfgang --------------030603020203090701000903 Content-Type: text/html; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable
= =20 20. Juni 2015=20 11:30
Hello,

I'm not able to limit level of sections in TOC so to not show=20 \subsubsection:

----
%\setuplist[content][level=3Dsubsection] % Doesn't work
%\setuplist[content][section,subsection] % Doesn't work

\starttext
=A0 \placecontent[level=3Dsubsection] % Doesn't work
=A0 \hairline
=A0 \placecontent[level=3D3] % Doesn't work
=A0 \hairline

=A0 \section{Sec}
=A0=A0=A0 \subsection{SSec}
=A0=A0=A0=A0=A0 \subsubsection{SSSec}
\stoptext
----

I studied wiki (http://wiki.contextgarden.net/Comm= and/setuplist) and also contextref.pdf (pg. 218) but without success.
The level key doesn’t work with MkIV but you can use the following = two=20 methods.

1. Use the \placelist command and list the sections you want to show,=20 e.g.

=A0=A0=A0 \placelist[chapter,section,subsection]

2. Use the list key for \placecontent to show only the listed entries,=20 e.g.

=A0=A0=A0 \placecontent[list=3D{chapter,section,subsection}]

Wolfgang
--------------030603020203090701000903-- --===============0987726339== 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= --===============0987726339==--