From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71953 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: Some more ToC questions Date: Wed, 26 Oct 2011 10:02:57 +0200 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1319616201 11317 80.91.229.12 (26 Oct 2011 08:03:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 26 Oct 2011 08:03:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Oct 26 10:03:17 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RIySC-0002dw-In for gctc-ntg-context-518@m.gmane.org; Wed, 26 Oct 2011 10:03:16 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D3D91CB095; Wed, 26 Oct 2011 10:03:15 +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 6olbAnIO0bf4; Wed, 26 Oct 2011 10:03:12 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A55C5CB08E; Wed, 26 Oct 2011 10:03:12 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9D53BCB08E for ; Wed, 26 Oct 2011 10:03:11 +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 SU+NZfLNBctM for ; Wed, 26 Oct 2011 10:03:06 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by balder.ntg.nl (Postfix) with ESMTP id 949CFCB07C for ; Wed, 26 Oct 2011 10:03:06 +0200 (CEST) Original-Received: from mail-fx0-f41.google.com (mail-fx0-f41.google.com [209.85.161.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p9Q835HI007330 for ; Wed, 26 Oct 2011 10:03:06 +0200 Original-Received: by faat2 with SMTP id t2so1852850faa.14 for ; Wed, 26 Oct 2011 01:03:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=qIKWsGzWprWCd6EVXRp4Hl5SnGst2r8yAq5nucu9wkg=; b=F6TfzkAwfdIYNtzHEXX9xYTxfW0De1VID03/LJCqkivzE81ol9KPXOy2/YzpdJdcg9 Q/ilPOHZiJCu1CkQzRsMtCBlJ4IWFn3lxy30qphdPxzQ2hbyI3KKyd5NdBscjQk52/Sc M9fxKmLddeuM8g/yFPcdHYcD6LXbRb3q0UcQk= Original-Received: by 10.223.14.140 with SMTP id g12mr24591412faa.34.1319616185615; Wed, 26 Oct 2011 01:03:05 -0700 (PDT) Original-Received: from [192.168.2.35] (p5482C348.dip.t-dialin.net. [84.130.195.72]) by mx.google.com with ESMTPS id p14sm2678017faf.20.2011.10.26.01.03.01 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 26 Oct 2011 01:03:04 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 06FNk35MH - fa2b071341f5 - 20111026 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:71953 Archived-At: Am 26.10.2011 um 05:41 schrieb Alasdair McAndrew: > Thanks to the great expertise of folk on this mailgroup, I have my chapter headings set so that each one comes out as > > Chapter n > Name of Chapter > > However, I have a few more questions. First: if I use "completecontent" to display the contents, how can I have the "Contents" title display without my "Chapter" line? That is, is there a way of turning off my chapter command temporarily? (I've found that "title" doesn't work here: If I use "\title{Contents} \placecontent" I still get a "Chapter" line.) > > Second: I'm writing out a book of student notes, and each chapter ends with a set of exercises. I'd like these exercises to be typeset as unnumbered sections ("subject"s), and appear so in the ToC. Like: > > 4.4 Second last section > 4.5 Last section > Exercises > > What is the best way of doing this (MkII)? I've tried > > \definehead[exercise][section] > \setuphead[exercise][number=no] > \setuplist[exercise][headnumber=no] > > but that doesn't work on its own, and when paired with \definecombinedlist[content][exercise,chapter,section] wipes out the contents completely. > > Any advice (or even pointers to a web page) would be most welcome. \defineheadplacement[MyChapter][vertical]{\vbox{#1\crlf#2}} \setuplabeltext[chapter=Chapter ] \setuphead[chapter][alternative=MyChapter] \definehead[exercise][subject][incrementnumber=list] \starttext \title{Contents} \placelist[chapter,section,exercise] \chapter{Chapter} \section{Section} \exercise{Exercise} \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 ___________________________________________________________________________________