ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Unnumbered chapter in table of contents?
@ 2012-02-16  0:26 Alasdair McAndrew
  2012-02-16  7:59 ` Otared Kavian
  0 siblings, 1 reply; 2+ messages in thread
From: Alasdair McAndrew @ 2012-02-16  0:26 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 823 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 1670 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Unnumbered chapter in table of contents?
  2012-02-16  0:26 Unnumbered chapter in table of contents? Alasdair McAndrew
@ 2012-02-16  7:59 ` Otared Kavian
  0 siblings, 0 replies; 2+ messages in thread
From: Otared Kavian @ 2012-02-16  7:59 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1860 bytes --]

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={Answer to all the questions},number=no]

\stoptext
%%%%% end

Best regards: OK
On 16 févr. 2012, at 01:26, Alasdair McAndrew wrote:

> 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
> ___________________________________________________________________________________
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3441 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-16  7:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-16  0:26 Unnumbered chapter in table of contents? Alasdair McAndrew
2012-02-16  7:59 ` Otared Kavian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).