Good evening.

Many thanks for your help. Basicly it works. Problem is that it spoils formatting. Try the following example. The answers defined through block are not serried, while the last one defined directly is. Could it be solved somehow?

Many thanks once more.
M.K.

P.S. Does it mean that blocks cannot be reasonably linked to XML-marks too?



% output=pdf

\defineenumeration[question]
[way=bychapter, coupling=answer, location=serried, text=, distance=0pt, width=broad]
\defineenumeration[answer]
[way=bychapter, coupling=question, location=serried, text=, distance=0pt, width=broad]
\defineblock[question, answer]
\hideblocks[answer]
\setupblock[question][before=\startquestion,after=\stopquestion]
\setupblock[answer][before=\startanswer,after=\stopanswer]



\starttext \chapter{Questions} \beginquestion Question one \endquestion \beginanswer Answer one \endanswer

\beginquestion
Question two
\endquestion
\beginanswer
Answer two
\endanswer


\chapter{Answers} \reset[question,answer] \useblocks[answer]

\startanswer
Answer three
\stopanswer
\stoptext

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

Reply via email to