Dear list members,

I would like to add a tag to a block so I can easily select a few blocks and print them in another chapter.

In the below MWE I would like to print the normal (non-tagged) block in the first chapter. The second block with the tag [exam] should not be processed in the first chapter and only appear in the second chapter.

According to the wiki and reference manual it should be possible using either \useblocks or \selectblocks but I can't get it to work.

Who can help me out?

Best regards,
Jan Willem Flamma


\defineenumeration[question][location=margin,text=Question,way=bychapter]
\defineenumeration[answer]  [location=margin,text=Answer]

\defineblock[question]
\defineblock[answer]

\hideblocks[question]
\hideblocks[answer]

\starttext

\startchapter[title=Chapter for regular questions]

\beginquestion
\startquestion 
Normal question
\stopquestion
\endquestion
\beginanswer
\startanswer 
Normal answer
\stopanswer
\endanswer

\beginquestion[exam]
\startquestion 
Exam question
\stopquestion
\endquestion
\beginanswer[exam]
\startanswer 
Exam answer
\stopanswer
\endanswer

\startsection[title=Questions]
\useblocks[question][criterium=chapter]
\stopsection

\startsection[title=Answers]
\useblocks[answer][criterium=chapter]
\stopsection

\stopchapter

\startchapter[title=Chapter for exam questions]

\startsection[title=Exam Questions]
%\useblocks[question][exam]   %<--- does not work
\stopsection

\startsection[title=Exam Answers]
%\useblocks[answer][exam]     %<--- does not work
\stopsection

\stopchapter

\stoptext