nstanger / ouexam

University of Otago LaTeX exam template
0 stars 1 forks source link

Incorrect marks totalling with optional questions #5

Closed nstanger closed 8 years ago

nstanger commented 11 years ago

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.

nstanger commented 11 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:

nstanger commented 9 years ago

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).

nstanger commented 9 years ago

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.

nstanger commented 8 years ago

How about a nomarks optional argument to \examsection and \examsection*? For example: \examsection[nomarks]{50}{instructions}{topic}.