Implement [groups] in AMC-TXT (Feature #204)


Added by Nikola Z. Guscic over 10 years ago. Updated over 9 years ago.


Status:Closed Start date:09/16/2013
Priority:Normal Due date:
Assignee:Alexis Bienvenüe % Done:

100%

Category:AMC-TXT
Target version:1.3.0

Description

I was wondering if it would be possible to implement a simple syntax for groups in AMC-TXT.
At the moment it is already possible to block together groups of questions using the following syntax:

*(Introductory text
* Question 1
-
+
-
-

* Question 2
-
+
-
-
*)

We can group all questions in a test in different brackets like in the example above but we have no control over which group will appear first in the shuffled test. That feature might be useful for language teachers as their exams often revolve around groups of questions that follow a quoted text. They like to put essay questions at the back of the exam in a separate group. Could you add an option to the syntax above, so that we can order which group of questions will appear first, which comes next and so on.

For example:

*[first](Introductory text
* Question 1
-
+
-
-

* Question 2
-
+
-
-
*)

*[next](Introductory text
* Question 4
-
+
-
-

* Question 3
-
+
-
-
*)

Maybe it would also be useful to define [last] option. That way a teacher could have other blocks of question be shuffled freely, but specify the essay questions to always appear at the end.

Thanks,

Niko Z.


source.txt (4.6 kB) Joël Brogniart, 09/25/2013 01:15 pm

DOC-sujet.pdf (160.1 kB) Joël Brogniart, 09/25/2013 01:15 pm


History

Updated by Joël Brogniart over 10 years ago

I too would like an option to order groups of questions. To conform to current syntax of groups, ordering options should appear after the opening parenthesis.

*([first]Introductory text
* Question 1
-
+
-
-

* Question 2
-
+
-
-
*)

*([next,shuffle=false]Introductory text
* Question 4
-
+
-
-

* Question 3
-
+
-
-
*)

Updated by Joël Brogniart over 10 years ago

I tried to test first, next and last options with groups and AMC rev 1453. With the AMC-TXT source I created, I should obtain subjects with 5 groups of 2 questions. In the subjects, group "un" should appear first, then group "deux", then group "troisquatre" or group "quatretrois", then group "quatretrois" or group "troisquatre" and last group "cinq" (sorry for the mix of English and French). In generated subjects, group "un" is alway first and group "cinq" alway last. But group "deux" don't follow group "un" and is randomly mixed with groups "troisquatre" and "quatretrois".

I attached my source file and AMC generated subjects.

Updated by Alexis Bienvenüe over 10 years ago

next has no effect when used after first. Use first instead for the second group. You can use first for several items. They will be all at the beginning, in the same order as in the source (and the same applies for last).

Updated by Joël Brogniart over 10 years ago

OK. With "first" option set instead of "next" for the second group, all works as expected (rev 1453). Thanks.

Updated by Alexis Bienvenüe over 10 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved

Updated by Anirvan Sarkar over 9 years ago

  • Assignee set to Alexis Bienvenüe
  • Status changed from Resolved to Closed

Also available in: Atom PDF