Dear Sirs, Im the past I make some exams using the file in the attach. Now, I need to prepare another exam but this old file don't work with the new Context version. I had defined a block designed question bat \startquestion isn't recognised. Why? Thanks for your support. Have a nice day. Jorge Manuel
Am 17.02.2009 um 18:36 schrieb batela:
Im the past I make some exams using the file in the attach. Now, I need to prepare another exam but this old file don't work with the new Context version.
I had defined a block designed question bat \startquestion isn't recognised. Why? Thanks for your support.
Your question has nothing to do with the block mechanism. Your example can't work because you defined the enumerations 'Question' and 'Answer' but not 'question' and 'answer'. Wolfgang
Dear Sir, thanks for your reply. The original code is written by Hans and had worked perfectly (see the attach). Em 17/02/2009, às 5:57, Wolfgang Schuster escreveu:
Am 17.02.2009 um 18:36 schrieb batela:
Im the past I make some exams using the file in the attach. Now, I need to prepare another exam but this old file don't work with the new Context version.
I had defined a block designed question bat \startquestion isn't re
cognised. Why? Thanks for your support.
Your question has nothing to do with the block mechanism. Your example can't work because you defined the enumerations 'Question' and 'Answer' but not 'question' and 'answer'.
Wolfgang
_______________________________________________________________________ ____________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net _______________________________________________________________________ ____________
Abraços, Jorge Manuel de Almeida Magalhães
Am 17.02.2009 um 19:33 schrieb batela:
thanks for your reply. The original code is written by Hans and had worked perfectly (see the attach).
Are you sure, this can't be because \startquestion and \startanswer are nowhere defined. It works after a few modification. 1. You don't need the \startelements ... \stopelements block at the begin of the file, this is already done in the core. 2. Use in your document \startQuestion ... \stopQuestion and \startAnswer ... \stopAnswer *or* replace \defineenumeration[Question] with \defineenumeration[question] and \defineenumeration[Answer] with \defineenumeration[answer] and move [text=Question] to the definition for the question. Replace also all \startAnswer with \startanswer, \stopAnswer with \stopanswer ... Wolfgang
Fixed: \startquestion should be \beginquestion \startanswer should be \beginanswer and \stopquestion should be \endquestion \stopanswer should be \endanswer Thanks a lot. Em 17/02/2009, às 6:53, Wolfgang Schuster escreveu:
Am 17.02.2009 um 19:33 schrieb batela:
thanks for your reply. The original code is written by Hans and had worked perfectly (see the attach).
Are you sure, this can't be because \startquestion and \startanswer are nowhere defined.
It works after a few modification.
1. You don't need the \startelements ... \stopelements block at the begin of the file, this is already done in the core.
2. Use in your document \startQuestion ... \stopQuestion and \startAnswer ... \stopAnswer
*or*
replace \defineenumeration[Question] with \defineenumeration[question] and \defineenumeration[Answer] with \defineenumeration[answer] and move [text=Question] to the definition for the question. Replace also all \startAnswer with \startanswer, \stopAnswer with \stopanswer ...
Wolfgang
_______________________________________________________________________ ____________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net _______________________________________________________________________ ____________
Abraços, Jorge Manuel de Almeida Magalhães
You can find the old discussion in this link: http://www.mail-archive.com/ntg-context@ntg.nl/msg22333.html Em 17/02/2009, às 5:57, Wolfgang Schuster escreveu:
Am 17.02.2009 um 18:36 schrieb batela:
Im the past I make some exams using the file in the attach. Now, I need to prepare another exam but this old file don't work with the new Context version.
I had defined a block designed question bat \startquestion isn't recognised. Why? Thanks for your support.
Your question has nothing to do with the block mechanism. Your example can't work because you defined the enumerations 'Question' and 'Answer' but not 'question' and 'answer'.
Wolfgang
_______________________________________________________________________ ____________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net _______________________________________________________________________ ____________
Abraços, Jorge Manuel de Almeida Magalhães
Am 17.02.2009 um 19:48 schrieb batela:
You can find the old discussion in this link:
http://www.mail-archive.com/ntg-context@ntg.nl/msg22333.html
OMG! I have a solution for your problem but I would I you can use \beginquestion ... \endquestion instead of \startquestion ... \stopquestion. Wolfgang
Thanks. another problem that I fount in this approach to make my exams is the impossibility of itemize the Question environment. It is easy to numerate the questions like "Question 1", "Question 2 " and so on, but i would like to divide some questions in some items. For example if my third question is a group of questions the numeration should be "Question 3.1", "Question 3.2" .... What is the best approach for that? Em 17/02/2009, às 7:03, Wolfgang Schuster escreveu:
Am 17.02.2009 um 19:48 schrieb batela:
You can find the old discussion in this link:
http://www.mail-archive.com/ntg-context@ntg.nl/msg22333.html
OMG! I have a solution for your problem but I would I you can use \beginquestion ... \endquestion instead of \startquestion ... \stopquestion.
Wolfgang
_______________________________________________________________________ ____________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net _______________________________________________________________________ ____________
Um Abraço, Jorge Magalhães
Am 17.02.2009 um 21:00 schrieb batela:
Thanks.
another problem that I fount in this approach to make my exams is the impossibility of itemize the Question environment. It is easy to numerate the questions like "Question 1", "Question 2 " and so on, but i would like to divide some questions in some items. For example if my third question is a group of questions the numeration should be "Question 3.1", "Question 3.2" ....
What is the best approach for that?
You can use subenumerations like \startsubQuestion ... \stopsubQuestion, it's explained in the manual. Wolfgang
participants (2)
-
batela
-
Wolfgang Schuster