Closed nstanger closed 8 years ago
Presumably all questions inside such a group of questions will be worth the same number of marks, otherwise the total calculation won’t make any sense.
Note that we don’t really want to disable all marks totalling within such a group, but rather just the totalling at the level that the group starts. That is, if we have a group of three question
environments, then marks totalling should be disabled for the question
environments, but not for any subquestion
or subsubquestion
environments contained within.
Options:
questiongroup
environment that can be used at any level of question nesting and disables marks totalling at that level until the environment closes. Marks totalling would be done at the level of the group instead. One of the arguments would be the message to print (e.g., “Answer any two questions.”). While this could be applied at any level of question nesting, it seems fairly unlikely that anyone would actually want to apply this to anything lower than a question
environment.\examsection
that disables top-level marks totalling? Or a variant form of \examsection
(\examsection*
)? This seems like it would be the most effective (and easy!) way to implement this feature. We can’t sensibly standardise the instructions for answering questions, but \examsection
at least already has an argument for specifying section instructions.\disablemarks
macro (and corresponding \enablemarks
) that disables (enables) marks totalling at the current level. This doesn’t seem like it’ll be very flexible or general.A problem with the \examsection*
approach: what if the exam has no sections (i.e., the whole exam is something like “pick four of the the following six questions”)? Something like the questiongroup
environment therefore makes more sense, although that’s probably not the best name. nomarks
? It should have an argument to specify the total number of marks for totalling purposes, and perhaps another to specify the instructions for answering questions (as per \examsection
).
On the other hand, something like \examsection*
that generates the section heading without the section number would work for the previous case. Still need to figure out how to specify that marks should be disabled, though.
How about a nomarks
optional argument to \examsection
and \examsection*
? For example: \examsection[nomarks]{50}{instructions}{topic}
.
Marks totalling currently doesn’t work with sections where not all questions are to be answered (e.g., “Answer any 2 questions”). At the end of the section it totals up all the questions, when in fact the total should be less.
A workaround is to reset the counter to the correct total after the last question in the section.