[NTG-context] End of chapter solutions

David Arnold dwarnold45 at cox.net
Mon Mar 20 00:26:36 CET 2006


All,

Again, I have:

\defineenumeration[questions][location=serried,text=\blank]
\setupenumerations[questions][before={\unnumberedsubsection{Exercises} 
\startcolumns[n=2]},after=\stopcolumns,number=no]

\defineenumeration[answers][location=serried,text=\blank]
\setupenumerations[answers][before={\unnumberedsubsection{Answers} 
\startcolumns[n=2]},after=\stopcolumns,number=no]

\def\placeanswers{\startanswers\doifmodeelse{short}{\selectblocks 
[shortanswer][criterium=section]}{\selectblocks[longanswer] 
[criterium=section]}\stopanswers}

\defineenumeration[question][location=inleft,text={\color[heavygreen] 
\bgroup}]
\setupenumerations[question][stopper={.\egroup}]

\defineenumeration[subquestion][location=hanging,text={\color 
[heavygreen]\bgroup},conversion=characters]
\setupenumerations[subquestion][stopper={.\egroup}]

\defineenumeration[answer][location=inleft,text={\color[heavygreen] 
\bgroup}]
\setupenumerations[answer][stopper={.\egroup}]

\defineenumeration[subanswer][location=hanging,text={\color 
[heavygreen]\bgroup},conversion=characters]
\setupenumerations[subanswer][stopper={.\egroup}]

\defineblock[question,shortanswer,longanswer]
\hideblocks[shortanswer,longanswer]

How can I adjust this so that my questions start from #1 at the  
beginning of each section? Then, how can I place the solutions at the  
end of the chapter like this?

Section 1

1.
2.
3.

Section 2

1.
2.
3.

Section 3

1.
2.
3.

Thanks. I am in need of fresh ideas.


More information about the ntg-context mailing list