All, Almost what I want. But I just want to unhide the blocks for the section at the end of each section. What is the best strategy here. Should I just make a set of blocks with different names for each section? %output=pdf \starttext \setupindenting[medium,yes] \setupwhitespace[medium] \setupcolors[state=start] \defineenumeration[question] \setupenumerations [question] [location=inleft, text={\color[blue]\bgroup}, stopper={.\egroup}, way=bysection, sectionnumber=no] \defineenumeration[answer] \setupenumerations [answer] [location=inleft, text={\color[blue]\bgroup}, stopper={.\egroup}, way=bysection, sectionnumber=no] \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] \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
participants (1)
-
David Arnold