Implement [groups] in AMC-TXT (Feature #204)
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.
History
Updated by Joël Brogniart about 11 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 about 11 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.
- File source.txt added
- File DOC-sujet.pdf added
Updated by Alexis Bienvenüe about 11 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 about 11 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 about 11 years ago
- % Done changed from 0 to 100
- Status changed from New to Resolved
Updated by Anirvan Sarkar over 10 years ago
- Assignee set to Alexis Bienvenüe
- Status changed from Resolved to Closed