On Sat, 2 Jun 2007, batela wrote: > Hello to all: > > I need to prepare an exam. The layout must be the following one: > > Questions > ____page > Scores > ____page > Answers > > For example: > > \startquestion > In a body with mass=2 kg is applied a force of 2N. Which is the body > acceleration? > \startanswer > write F = m a \score[5] > solve a = F/m \score[4] > find and write correctly a = 1 m/s2 \score[1] > \stopanswer > > \stopquestion > > The result should be: > > Question 1: In a body with mass=2 kg is applied a force of 2N. Which is the > body acceleration?. > > Question 2: > > Question 3: > __________ Page___________ > > Scores > > Question 1 ..................... 10 points > Question 2 ...................... 20 points > Question 3 ...................... 20 points > > ___________Page____________ > Criteria > > Question 1 > write F = m a ........................................................ 5 > points > resolve a = F/m....................................................4 points > find and write correctly a = 1 m/s2 ................... 1 points > > are there any way to make this a easy task?
For placing questions and answers at different locations, use blocks. I do not know what is a good way of generate list of scores. I think that it can be done using lists, but I do not know lists well enough to do that quickly. Also if you do not like the fact that lists use \begin ... \end as delimiters, and want to use \start ... \stop here is a ugly hack :) \startelements dutch english german czech italian romanian french begin: beginvan start anfang zacatek inizio inceput debut end: eindvan stop ende konec fine sfarsit fin \stopelements \defineenumeration[Answer][text=Question] \defineenumeration[Question] \defineblock[answer,question] \setupblock [answer][before={\startAnswer},after={\stopAnswer}] \setupblock [question][before={\startQuestion},after={\stopQuestion}] \def\score[#1]{\dotfill\emspace#1~points\endgraf} \hideblocks[answer,question] \def\generateexam {\title{Exam} \useblocks[question] \title{Scores} I do not know how to do this. You can use lists, or there may be easier ways \title{Criteria} \useblocks[answer]} \starttext \startquestion In a body with mass=2 kg is applied a force of 2N. Which is the body acceleration? \startanswer write F = m a \score[5] solve a = F/m \score[4] find and write correctly a = 1 m/s2 \score[1] \stopanswer \stopquestion \startquestion In a body with mass=2 kg is applied a force of 2N. Which is the body acceleration? \startanswer write F = m a \score[5] solve a = F/m \score[4] find and write correctly a = 1 m/s2 \score[1] \stopanswer \stopquestion \generateexam \stoptext Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________