From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/74549 Path: news.gmane.org!not-for-mail From: Alasdair McAndrew Newsgroups: gmane.comp.tex.context Subject: Re: "Turning off" special chapter headings Date: Fri, 17 Feb 2012 16:22:46 +1100 Message-ID: References: <91DF89E4-F62F-4A62-ACFB-19D48C63F102@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0141233265==" X-Trace: dough.gmane.org 1329456197 6529 80.91.229.3 (17 Feb 2012 05:23:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 17 Feb 2012 05:23:17 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Feb 17 06:23:12 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 1RyGHo-0000yV-1j for gctc-ntg-context-518@m.gmane.org; Fri, 17 Feb 2012 06:23:12 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 5AEF5CB246; Fri, 17 Feb 2012 06:23:11 +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 n8J-sSpEWqLh; Fri, 17 Feb 2012 06:23:05 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 70367CB239; Fri, 17 Feb 2012 06:23:05 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 6BAEACB239 for ; Fri, 17 Feb 2012 06:23:03 +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 DAqd+yK4oH0b for ; Fri, 17 Feb 2012 06:22:49 +0100 (CET) Original-Received: from filter2-ams.mf.surf.net (filter2-ams.mf.surf.net [192.87.102.70]) by balder.ntg.nl (Postfix) with ESMTP id E5C82CB237 for ; Fri, 17 Feb 2012 06:22:48 +0100 (CET) Original-Received: from mail-lpp01m010-f41.google.com (mail-lpp01m010-f41.google.com [209.85.215.41]) by filter2-ams.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id q1H5Mlxs008638 for ; Fri, 17 Feb 2012 06:22:48 +0100 Original-Received: by lamf4 with SMTP id f4so4412544lam.14 for ; Thu, 16 Feb 2012 21:22:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=HuY/aTWZXW4rz04UlpHoQJk7d0lPdP0bFgDNlwzleQE=; b=piwOUnGfbhUBbiWoF/Age5GC1nZYqdgMomukMNyAtwJFeh51LojWtvEVfoB+JfOItq /D2I92ac/6ZnEAf/lAHdzI/qT3l4I9j1b+EaR4gRl4juHo9P+8Ec9EN0yjpaEgl7IutO ra7iJe/pmkHBCb2VHarvAMrfEvWLFxI9+UDSA= Original-Received: by 10.152.129.69 with SMTP id nu5mr4427384lab.9.1329456166941; Thu, 16 Feb 2012 21:22:46 -0800 (PST) Original-Received: by 10.112.81.202 with HTTP; Thu, 16 Feb 2012 21:22:46 -0800 (PST) In-Reply-To: <91DF89E4-F62F-4A62-ACFB-19D48C63F102@gmail.com> 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: 0rGyRmLPO - 9f747e8e65f3 - 20120217 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.70 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:74549 Archived-At: --===============0141233265== Content-Type: multipart/alternative; boundary=f46d042c647b93345d04b922227f --f46d042c647b93345d04b922227f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for your suggestion, but it didn't seem to work. I just discovered the answer myself and that was to create a new chapter command: \def\uchap#1#2{#2} and then follow as per the wiki: \definehead[ans][chapter] \setuphead[ans][command=3D\uchap,number=3Dno] \definecombinedlist[content][ans,chapter,section] \setuplist[ans][headnumber=3Dno] Then finally \ans{Answers to Exercises} cheers, Alasdair On Fri, Feb 17, 2012 at 4:05 PM, Otared Kavian wrote: > Hi, > > Didn't you see my answer? As suggested below, you can > use \chapter[title=3D{Answer to all the questions},number=3Dno]. > > On 16 f=E9vr. 2012, at 08:59, Otared Kavian wrote: > > Hi Alasdair, > > Is this what you want? > %%%% begin > \starttext > > \completecontent > > \chapter{Chapter one} > > \section{First section} > > \section{Second section} > > \chapter{Chapter two} > > \section{First section} > > \section{Second section} > > \chapter[title=3D{Answer to all the questions},number=3Dno] > > \stoptext > %%%%% end > > Best regards: OK > > > > Best regards: OK > > On 17 f=E9vr. 2012, at 01:48, Alasdair McAndrew wrote: > > I'm using the following: > > \def\chap#1#2{\vbox{Chapter #1\crlf\framed[frame=3Doff,topframe=3Don]{#2}= }} > \setuphead[chapter][command=3D\chap,style=3Dbfd,after=3D{\blank[1cm]}] > > for my chapter headings. But one chapter: "Answers to Exercises" I want > unnumbered, without the "Chapter" text, and also in the table of contents= . > > Can anybody point me to the simplest way of achieving this? (I've tried > various combinations of \setuphead, \definehead, but nothing so far has > given me what I want.) > > Thanks, > Alasdair > > -- > Blog: http://amca01.wordpress.com > Web: http://sites.google.com/site/amca01/ > Facebook: http://www.facebook.com/alasdair.mcandrew > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > > > > > _________________________________________________________________________= __________ > 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 > > _________________________________________________________________________= __________ > --=20 Blog: http://amca01.wordpress.com Web: http://sites.google.com/site/amca01/ Facebook: http://www.facebook.com/alasdair.mcandrew --f46d042c647b93345d04b922227f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks for your suggestion, but it didn't seem to work. I just discover= ed the answer myself and that was to create a new chapter command:

=
\def\uchap#1#2{#2}

and then follow as p= er the wiki:

\definehead[ans][chapter]
\setuphead[ans= ][command=3D\uchap,number=3Dno]
\definecombinedlist[content][ans,= chapter,section]
\setuplist[ans][headnumber=3Dno]

<= /div>
Then finally

\ans{Answers to Exercises}
=

cheers,
Alasdair

On Fri, Feb 17, 2012 at 4:05 PM, Otared Kavian &l= t;otared@gmail.com> wrote= :
Hi,
=
Didn't you see my answer? As suggested below, you can us= e=A0\chapter[title=3D{Answer to all the questions},number=3Dno].

On 16 f=E9vr. 2012, at 08:59, Otared Kavian wrote:=

Hi = Alasdair,

Is this what you want?
%%%% begin
\starttext

\completecontent
\chapter{Chapter one}

\section{First = section}

\section{Second section}

\chapter{Chapter two}

\section{First se= ction}

\section{Second section}

\chapter[title=3D{Answer to all the questions},number=3Dno]

\stoptext
%%%%% end

Best = regards: OK


Bes= t regards: OK

On 17 f=E9vr. = 2012, at 01:48, Alasdair McAndrew wrote:

I'm us= ing the following:

\def\chap#1#2{\vbox{Chapter #1\c= rlf\framed[frame=3Doff,topframe=3Don]{#2}}}
\setuphead[chapter][c= ommand=3D\chap,style=3Dbfd,after=3D{\blank[1cm]}]

for my chapter headings. =A0But one chapter: "Answers to Exercises&quo= t; I want unnumbered, without the "Chapter" text, and also in the= table of contents.

Can anybody point me to the si= mplest way of=A0achieving=A0this? =A0(I've tried various combinations o= f \setuphead, \definehead, but nothing so far has given me what I want.)

Thanks,
Alasdair

--
B= log: http://amca= 01.wordpress.com
Web:=A0 http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/alasdair.mcandrew
___________________________________________________________________________= ________
If your question is of interest to others as well, please add a= n entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/li= stinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/proj= ects/contextrev/
wiki =A0=A0=A0=A0: h= ttp://contextgarden.net
____________________________________________= _______________________________________

<= br>________________________________________________________________________= ___________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-context@ntg.nl / <= a href=3D"http://www.ntg.nl/mailman/listinfo/ntg-context" target=3D"_blank"= >http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0: http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/
wiki =A0 =A0 : http:= //contextgarden.net
___________________________________________________________________________= ________



--
= Blog: http://amca= 01.wordpress.com
Web:=A0 = http://sites.google.com/site/amca01/
Facebook: http://www.facebook.com/= alasdair.mcandrew
--f46d042c647b93345d04b922227f-- --===============0141233265== 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 ___________________________________________________________________________________ --===============0141233265==--