[NTG-context] Blocks in a macro?
Michal Kvasnicka
quasar at econ.muni.cz
Mon Feb 14 14:39:15 CET 2005
Good evening.
How can I include \begin<block> ... \end<block> into a macro?
I have defined:
\defineblock[question]
\defineblock[answer]
\defineenumeration[question][location=serried, coupling=answer]
\defineenumeration[answer][location=serried, coupling=answer]
\hideblocks[answer]
I'd like to simplify my code from
\beginquestion \startquestion question ... \stopquestion \endquestion
\beginanswer \answer answer ... \par \endanswer
to
\q{question ...}{answer ...}
\q begin something like this:
\def\q{%
\beginquestion \question #1\par \endquestion
\beginanswer \answer #2\par \endanswer
}
But no question/anwer is written into .tub file (only the beginning/end
of those blocks).
Any hint?
Many thanks. Your sincerely
Michal Kvasnicka
More information about the ntg-context
mailing list