Description
Multipart questions display several subquestions as parts of one question. Each part is a well-formed EDU question, and can be of any type, including Multipart itself.
Notes
- To make a Multipart question, simply declare a question of type Multipart and include other questions within its body.
-
Multipart
questions may be nested inside other other Multipart questions.
The latex2edu conversion tool only allows four levels of
nesting:
\begin{question}{Multipart} ... \begin{question}{Multipart} ... \begin{question}{Multipart} ... \begin{question}{Multipart} ... \begin{question}{Multipart} ... \end{question} ... \end{question} ... \end{question} ... \end{question} ... \end{question}
- By default, question parts are designated
(a), (b), (c), etc, regardless of nesting level. That is,
if part (a) of a question is itself a Multipart question, then its
parts will also be designated (a), (b), etc. The
\numbering
macro can change this default numbering scheme. It takes one argument, as follows.\numbering{alpha|Alpha|roman|Roman|arabic|none}
- Argument 1 must be one of the following:
-
- alpha
- (a), (b), (c), (d), ...
This is the default. If the optional argument is omitted, it is assumed to bealpha
. - Alpha
- (A), (B), (C), (D), ...
- roman
- (i), (ii), (iii), (iv), ...
- Roman
- (I), (II), (III), (IV), ...
- arabic
- (1), (2), (3), (4), ...
- none
- no numbering
- By default, each part receives equal
weighting when the question is graded. To specify a
non-uniform weighting, use the
\weighting
macro prior to the\begin{question}
that opens the first part. The\weighting
macro requires one argument, a comma-delimited list of nonnegative integers, specifying the relative values to be assigned to each part.
Example
\begin{question}{Multipart} \weighting{1,2} % part (b) will be worth twice what part (a) is worth \qutext{Answer the following questions:} % part (a) \begin{question}{Formula} \qutext{Differentiate the function $\displaystyle f(x)=\frac{x}{1+x^2}$.} \answer{(1 - x^2)/(1 + x^2)^2} \end{question} % part (b) \begin{question}{Multipart} % The 2/3 of the points assigned to part (b) will be split evenly among % its subparts, unless \weighting is used here as well. \numbering{roman} % these will be subparts (i) and (ii) \begin{question}{Ntuple} \qutext{Find the absolute minimum point on the graph of the function $\displaystyle f(x)=\frac{x}{1+x^2}$.} \answer{(-1,-1/2)} \end{question} \begin{question}{Ntuple} \qutext{Find the absolute maximum point on the graph of the function $\displaystyle f(x)=\frac{x}{1+x^2}$.} \answer{(1,1/2)} \end{question} \end{question} \end{question}