All,

The reset mechanism doesn't seem to work as advertised in the manual.

%output=pdf

\starttext

\setupindenting[medium,yes]

\setupwhitespace[medium]

\setupcolors[state=start]

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

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

\defineblock[question,answer]
\hideblocks[answer]

\chapter{First Chapter}

\dorecurse{1}{\input tufte\par}

\section{First Section}

\dorecurse{2}{\input tufte\par}

\section{Exercises}

\startcolumns[n=2]

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\stopcolumns

\section{Answers}

\startcolumns[n=2]

\selectblocks[answer]

\stopcolumns

\section{Second Section}

\dorecurse{2}{\input tufte\par}

\section{Exercises}

\startcolumns[n=2]

\reset[question,answer]

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\stopcolumns

\section{Answers}

\startcolumns[n=2]

\selectblocks[answer]

\stopcolumns

\section{Third Section}

\dorecurse{2}{\input tufte\par}

\section{Exercises}

\startcolumns[n=2]

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\beginquestion
\startquestion
   What is the square root of $\pi$?
\stopquestion
\endquestion

\beginanswer
\startanswer
   $\sqrt{\pi}$
\stopanswer
\endanswer

\stopcolumns

\section{Answers}

\startcolumns[n=2]

\selectblocks[answer]

\stopcolumns


\stoptext
_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

Reply via email to