Re: [NTG-context] Unnumbered subject in TOC, numbered exercises in text

2015-11-30 Thread Sytse Knypstra

Thank you, Wolfgang,

I changed 'special' into another word and replaced 'incrementnumber=yes' 
by 'incrementnumber=list'.

But the result does still not reach my second goal:
my exercise numbers are still 1 and 1 instead of having chapter number 
prefixes (1.1 and 2.1).


Sytse

Sytse Knypstra 
30. November 2015 um 13:06
Dear list,



In the following minimal example I would like to have:

- the headings of \special in the toc, unnumbered

- in the text, the numbers of the exercises preceded by the chapter 
number

The first goal is achieved when uncommenting the two options under 
\setuphead,


the latter is achieved when uncommenting only the second option.
How can I realize both simultaneously ?


Thank you in advance,



Sytse

%%%

\definehead[special][subject]

Please use a different name because \special is a existing TeX command 
(but not used by ConTeXt MkIV).

\setuphead[special]

 [

%number=no,

%incrementnumber=yes,

]

Use only "incrementnumber=list".

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
___

Re: [NTG-context] Unnumbered subject in TOC, numbered exercises in text

2015-11-30 Thread Wolfgang Schuster

Sytse Knypstra 
30. November 2015 um 13:06
Dear list,



In the following minimal example I would like to have:

- the headings of \special in the toc, unnumbered

- in the text, the numbers of the exercises preceded by the chapter 
number

The first goal is achieved when uncommenting the two options under 
\setuphead,


the latter is achieved when uncommenting only the second option.
How can I realize both simultaneously ?


Thank you in advance,



Sytse

%%%

\definehead[special][subject]

Please use a different name because \special is a existing TeX command 
(but not used by ConTeXt MkIV).

\setuphead[special]

 [

%number=no,

%incrementnumber=yes,

]

Use only "incrementnumber=list".

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
___

[NTG-context] Unnumbered subject in TOC, numbered exercises in text

2015-11-30 Thread Sytse Knypstra

Dear list,



In the following minimal example I would like to have:

- the headings of \special in the toc, unnumbered

- in the text, the numbers of the exercises preceded by the chapter number

The first goal is achieved when uncommenting the two options under 
\setuphead,


the latter is achieved when uncommenting only the second option.
How can I realize both simultaneously ?


Thank you in advance,



Sytse

%%%

\definehead[special][subject]

\setuphead[special]

 [

%number=no,

%incrementnumber=yes,

]


\setuplist[special][]

\definecombinedlist[content][chapter,section,special]



\defineenumeration[exercise]

[
text={},
way=bychapter,

prefix=chapter,

] 


\starttext

\placecontent

\chapter{First chapter}

\section{First section}

\special{Exercises}

\startexercise

This is my first exercise

\stopexercise

\chapter{Second chapter}

\special{Remaining exercises}

\startexercise

   Second exercise

\stopexercise

\stoptext

%%%

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