From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74500 Path: news.gmane.org!not-for-mail From: Alasdair McAndrew Newsgroups: gmane.comp.tex.context Subject: Unnumbered chapter in table of contents? Date: Thu, 16 Feb 2012 11:26:07 +1100 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1804065895==" X-Trace: dough.gmane.org 1329351990 28192 80.91.229.3 (16 Feb 2012 00:26:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2012 00:26:30 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Feb 16 01:26:26 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RxpB3-0005S0-MA for gctc-ntg-context-518@m.gmane.org; Thu, 16 Feb 2012 01:26:25 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2EF2CB22F; Thu, 16 Feb 2012 01:26:24 +0100 (CET) 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 wGPltBeOYCJG; Thu, 16 Feb 2012 01:26:19 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 87B4BCB233; Thu, 16 Feb 2012 01:26:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8CD06CB233 for ; Thu, 16 Feb 2012 01:26:17 +0100 (CET) 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 U33NshRNwnBA for ; Thu, 16 Feb 2012 01:26:13 +0100 (CET) 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 1F1A3CB22F for ; Thu, 16 Feb 2012 01:26:13 +0100 (CET) Original-Received: from mail-lpp01m010-f41.google.com (mail-lpp01m010-f41.google.com [209.85.215.41]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1G0Q8iI021823 for ; Thu, 16 Feb 2012 01:26:12 +0100 Original-Received: by lamf4 with SMTP id f4so2246969lam.14 for ; Wed, 15 Feb 2012 16:26:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=3CvHdOn4fnmhW5m1Y6OhSCeLadwsI7jNgrtsfH+K6t0=; b=oUI92dcTLmtxTKL8iTDzdjlCmfbTjLzSrknMMBz1FOBlLlLlFod9g3MrFQzOMNUW4G EgHpJx654b2ogRhnNfROnoyrlGHSV6RFfvIBDzLNpkS13h9bl1JIXCz1GwTb8Qm4+d+n ETDwwd63TznXQ5F3p79U7PYDfj08uk+f9vLIQ= Original-Received: by 10.112.83.42 with SMTP id n10mr69190lby.101.1329351967377; Wed, 15 Feb 2012 16:26:07 -0800 (PST) Original-Received: by 10.112.115.129 with HTTP; Wed, 15 Feb 2012 16:26:07 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.215.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: 06Gyoq8VU - 031ebe8aaacd - 20120216 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:74500 Archived-At: --===============1804065895== Content-Type: multipart/alternative; boundary=f46d0401fc41cc09ea04b909dfbf --f46d0401fc41cc09ea04b909dfbf Content-Type: text/plain; charset=ISO-8859-1 Hello, For my student notes, there are ten numbered chapters, and one unnumbered ("Answers to Exercises"). I want all of these to appear in the table of contents. So: 1. First Chapter 2. Second chapter 10. Tenth Chapter Answers to Exercises I've set up the chapters with \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=off,topframe=on]{#2}}} \setuphead[chapter][ command=\chap, style=bfd, after={\blank[1cm]}, ] However, I don't want this heading on the exercises; just the title. How can I easily achieve all of this? I've tried with \title[Answers to Exercises] and \writetolist[content]{}{Answers to Exercises} but these don't seem to work. Thanks, Alasdair -- Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew --f46d0401fc41cc09ea04b909dfbf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

For my student notes, there are ten numbered chap= ters, and one unnumbered ("Answers to Exercises"). =A0I want all = of these to appear in the table of contents. =A0So:

1. =A0 First Chapter
2. =A0 Second chapter

10. Tenth Chapter
Answers to Exercises
<= br>
I've set up the chapters with=A0

\def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=3Doff,topframe=3Don]{#2}}}=

\setuphead[chapter][
=A0 =A0 =A0 =A0 co= mmand=3D\chap,
style=3Dbfd,
after= =3D{\blank[1cm]},
]

However, I don't wan= t this heading on the exercises; just the title.

How can I easily achieve all of this? =A0I've tried= with=A0

\title[Answers to Exercises]
and=A0

\writetolist[content]{}{Answer= s to Exercises}

but these don't seem to work. =A0
--f46d0401fc41cc09ea04b909dfbf-- --===============1804065895== 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 ___________________________________________________________________________________ --===============1804065895==--