Re: [NTG-context] solutions and problems

2014-02-23 Thread Xan
Am 22.02.2014 um 18:45 schrieb Xan dxpublica at telefonica.net: No, it does not work. I have this: % Questions \defineenumeration [exercici]

Re: [NTG-context] solutions and problems

2014-02-23 Thread Wolfgang Schuster
Am 23.02.2014 um 20:09 schrieb Xan dxpubl...@telefonica.net: Am 22.02.2014 um 18:45 schrieb Xan dxpublica at telefonica.net: No, it does not work. I have this: % Questions \defineenumeration [exercici]

Re: [NTG-context] solutions and problems

2014-02-23 Thread Xan
Can you help me? Your counter settings are useless because context stores only the environment plus content for the answers, nothing is done with them at this point. When you flush the answer blocks context sees them for the first time and the counter for the questions is 3 at this

Re: [NTG-context] solutions and problems

2014-02-22 Thread Xan
No, it does not work. I have this: % Questions \defineenumeration [exercici] [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit,before={\incrementcounter[resposta]}] %

Re: [NTG-context] solutions and problems

2014-02-22 Thread Wolfgang Schuster
Am 22.02.2014 um 18:45 schrieb Xan dxpubl...@telefonica.net: No, it does not work. I have this: % Questions \defineenumeration [exercici]

Re: [NTG-context] solutions and problems

2014-02-21 Thread Xan
Thanks for that. I use incrementcounter and decrementnumber in 'before', because I use *always* answer nested in question: \defineenumeration [exercici]

[NTG-context] solutions and problems

2014-02-20 Thread Xan
Hi, Just a question about blocks... I consulted the manual, but I'm in trouble: I have this definitions: % the exercise \defineenumeration [exercici]

Re: [NTG-context] solutions and problems

2014-02-20 Thread Otared Kavian
Hi, Maybe this is what you looking for: begin question-hint-answer.tex \defineblock[question] \defineblock[hint] \defineblock[answer] \defineenumeration[question][alternative=hanging,width=2.5cm,text={Question},stopper={.}] \defineenumeration[hint]

Re: [NTG-context] solutions and problems

2014-02-20 Thread Xan
Not exactly. If you don't have the same number of answers that the number of questions, so your counter is not properly set. See that: \defineblock[question] \defineblock[hint] \defineblock[answer] \defineenumeration[question][alternative=hanging,width=2.5cm,text={Question},stopper={.}]

Re: [NTG-context] solutions and problems

2014-02-20 Thread Thomas A. Schmitz
On 02/20/2014 01:22 PM, Xan wrote: If you comment one solution, then, you get Answer to question 1, instead of Answer of question 2, which is really. No always a question has an answer provided by me;-) Thanks, Obviously you will have to give every question|answer|hint some sort of unique

Re: [NTG-context] solutions and problems

2014-02-20 Thread Wolfgang Schuster
Am 20.02.2014 um 13:22 schrieb Xan dxpubl...@telefonica.net: Not exactly. If you don't have the same number of answers that the number of questions, so your counter is not properly set. See that: \defineblock[question] \defineblock[hint] \defineblock[answer]

Re: [NTG-context] solutions and problems

2014-02-20 Thread Jaroslav Hajtmar
Thanx Thomas very much for link to PDF file Using ConTEXt with Databases. I'm sure I will use it in the future. Jaroslav Hajtmar Dne 20.2.2014 13:57, Thomas A. Schmitz napsal(a): On 02/20/2014 01:22 PM, Xan wrote: If you comment one solution, then, you get Answer to question 1, instead of

Re: [NTG-context] solutions and problems

2014-02-20 Thread Jaroslav Hajtmar
Thanx Wolfgang. For me this is valuable information Jaroslav Hajtmar Dne 20.2.2014 14:13, Wolfgang Schuster napsal(a): Am 20.02.2014 um 13:22 schrieb Xan dxpubl...@telefonica.net: Not exactly. If you don't have the same number of answers that the number of questions, so your counter is not