ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* solutions and problems
@ 2014-02-20  9:15 Xan
  2014-02-20 10:50 ` Otared Kavian
  2014-02-20 12:22 ` Xan
  0 siblings, 2 replies; 13+ messages in thread
From: Xan @ 2014-02-20  9:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

Just a question about blocks... I consulted the manual, but I'm in trouble:

I have this definitions:

% the exercise
\defineenumeration
  [exercici]
  [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit]


\defineenumeration[resposta][headstyle=\ss,text={Solucions},width=fit,alternative=serried]

\defineblock[resposta] % the answer
\hideblocks[resposta]

And in my text, I have:

\startexercici
\beginresposta
\resposta Exercici 2 (Solucions: \startitemize[a,text] \item D, \item I, \item D, \item No té relació, \item D, \item D, \item No té relació, \item No té relació, \item D.\stopitemize) \par
\endresposta
\stopexercici
...

\startmode[solucions]
\subject{Respostes} %Answers

\selectblocks[resposta][criterium=section]
\stopmode
...


Is there any way that the answers (resposta) has the same number as the 'exercici' in which it belongs to? If not, I have to put "Solutions of exercici 2" in my 'resposta'

Thank you very much
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


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

end of thread, other threads:[~2014-02-23 20:12 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-20  9:15 solutions and problems Xan
2014-02-20 10:50 ` Otared Kavian
2014-02-20 12:22 ` Xan
2014-02-20 12:57   ` Thomas A. Schmitz
2014-02-20 19:29     ` Jaroslav Hajtmar
2014-02-20 13:13   ` Wolfgang Schuster
2014-02-20 19:31     ` Jaroslav Hajtmar
2014-02-21  9:28   ` Xan
2014-02-22 17:45     ` Xan
2014-02-22 18:57       ` Wolfgang Schuster
2014-02-23 19:09       ` Xan
2014-02-23 19:51         ` Wolfgang Schuster
2014-02-23 20:12         ` Xan

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).