From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/88500 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: How do I tell \completecontent not to include anything below the \chapter level? Date: Wed, 20 Aug 2014 17:19:17 +0200 Message-ID: References: <3E5F5EA4-F3C9-4161-AE18-7FCFE1DB84E2@rna.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408547988 8489 80.91.229.3 (20 Aug 2014 15:19:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 20 Aug 2014 15:19:48 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 20 17:19:43 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 1XK7fq-0004eH-LH for gctc-ntg-context-518@m.gmane.org; Wed, 20 Aug 2014 17:19:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6FF1C102BF for ; Wed, 20 Aug 2014 17:19:42 +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 r76xmWUIha6H for ; Wed, 20 Aug 2014 17:19:42 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id C4B2510222 for ; Wed, 20 Aug 2014 17:19:34 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 43B98101E3 for ; Wed, 20 Aug 2014 17:19:31 +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 V9CeU7rzqH64 for ; Wed, 20 Aug 2014 17:19:27 +0200 (CEST) Original-Received: from filter3-til.mf.surf.net (filter3-til.mf.surf.net [194.171.167.219]) by balder.ntg.nl (Postfix) with ESMTP id 2430B101E1 for ; Wed, 20 Aug 2014 17:19:22 +0200 (CEST) Original-Received: from mail-we0-x235.google.com (mail-we0-x235.google.com [IPv6:2a00:1450:400c:c03::235]) by filter3-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id s7KFJL31018016 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Wed, 20 Aug 2014 17:19:21 +0200 Original-Received: by mail-we0-f181.google.com with SMTP id k48so7933737wev.26 for ; Wed, 20 Aug 2014 08:19:21 -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=QvDPPROP98BeNE5Gx/s2aucATQgopXipEgg2UzewFvw=; b=O3QcJgEiaECK9FdggLJ6zp6z1T8bbsowJamXmKxFLcUH58HWh5YdHOLncRw+mGj8aq N6SA+HatEUNsUZ6n7h3MmfKK1AcegyzqTod9ak3EXWQQwKoAOAFtHGYNZYP+0DBawBMm KNHq52NHDDrwp6TXilHaV2TT+PMd5+BuwliPwgW5EFeB4jnYVDipIYRxeupBUHIOr0kJ hph+JwUcCURF6IBH4acTfmuyVngsNygichp+yjyJvxuhd6yJ49bHGx+W/nZemRoTyNE8 FM1lhvtpAI6CcUYxp1IagmekbLALUl0vxQSn/jxEWIF+PuE4Q47V4JQZmFDRUD6lgB8r jLzw== X-Received: by 10.180.39.73 with SMTP id n9mr15780233wik.70.1408547960924; Wed, 20 Aug 2014 08:19:20 -0700 (PDT) Original-Received: from keima.localdomain (x2f23767.dyn.telefonica.de. [2.242.55.103]) by mx.google.com with ESMTPSA id vn10sm59296105wjc.28.2014.08.20.08.19.19 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 20 Aug 2014 08:19:20 -0700 (PDT) In-Reply-To: <3E5F5EA4-F3C9-4161-AE18-7FCFE1DB84E2@rna.nl> X-Mailer: Apple Mail (2.1878.6) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2a00:1450:400c:c03::235; country=IE X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06MF3jlPu - f9a5c50f72cd - 20140820 (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:88500 Archived-At: Am 20.08.2014 um 16:14 schrieb Gerben Wierda : > See subject. Same question for other levels. Method 1 (MkII only): \starttext \completecontent[level=chapter] \dorecurse{10} {\chapter{Chapter #1} \dorecurse{2} {\section{Section #1.##1} \dorecurse{2}{\subsection{Subsection #1.##1.####1}}}} \stoptext Method 2 (MkII and MkIV): \definecombinedlist[content][chapter] \starttext \completecontent \dorecurse{10} {\chapter{Chapter #1} \dorecurse{2} {\section{Section #1.##1} \dorecurse{2}{\subsection{Subsection #1.##1.####1}}}} \stoptext Method 3 (MkIV only): \starttext \completecontent[list=chapter] % list={chapter,section} \dorecurse{10} {\chapter{Chapter #1} \dorecurse{2} {\section{Section #1.##1} \dorecurse{2}{\subsection{Subsection #1.##1.####1}}}} \stoptext Wolfgang ___________________________________________________________________________________ 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 ___________________________________________________________________________________