ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \useblocks in section
@ 2005-12-21  3:16 David Arnold
  2005-12-21  9:29 ` Hans Hagen
  0 siblings, 1 reply; 4+ messages in thread
From: David Arnold @ 2005-12-21  3:16 UTC (permalink / raw)


All,

This doesn't seem to work as expected. Replacing the \useblocks with  
\selectblocks also produces an unexpected result. What am I doing  
wrong? I am trying to have only the answers from the chapter show up.

%output=pdf

\defineenumeration[question][location=serried,text=Question]
\defineenumeration[answer][location=serried,text=Answer]
\defineblock[question,answer]
\hideblocks[answer]

\starttext

\chapter{First Chapter}

\input tufte

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

\beginanswer
\startanswer
   2
\stopanswer
\endanswer

\section{Answers}

\useblocks[answer][criterium=chapter]

\chapter{Second Chapter}

\input tufte

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

\beginanswer
\startanswer
   3
\stopanswer
\endanswer

\section{Answers}

\useblocks[answer][criterium=chapter]

\stoptext

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-22  9:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21  3:16 \useblocks in section David Arnold
2005-12-21  9:29 ` Hans Hagen
2005-12-21 18:57   ` David Arnold
2005-12-22  9:29     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).