News
Index
Working with MUMIE as author
- Initial steps:
- Articles:
- Problems:
- Programming with Python
- Visualizations with JSXGraph
- Media Documents:
Working with MUMIE as teacher
Using MUMIE via plugin in local LMS
FAQ
You're not logged in
Working with MUMIE as author
Working with MUMIE as teacher
Using MUMIE via plugin in local LMS
FAQ
All the code for a problem will be written between \begin{content}
and \end{content}
.
This content-block should start with
12 \usepackage{mumie.genericproblem}
\begin{problem}
and should end with
12 \end{problem}
\embedmathlet{gwtmathlet}
If you created a new problem in the file explorer with type Problem and template Problem the lines \usepackage{mumie.genericproblem}
and \embedmathlet{gwtmathlet}
will already be there.
123 ..some text and other content outside of the problem environment...
\begin{problem}
Within a problem environment you can define variables and several questions:
1234567891011121314 \usepackage{mumie.genericproblem}
\begin{problem}
\begin{variables} % global variables valid for all questions.
...
\end{variables}
\begin{question} % start of question 1
...
\end{question}
\begin{question} % start of question 2
...
\end{question}
\end{problem}
With the command \randomquestionpool
, one can tell Mumie to randomly choose one question from a set of (consecutive) questions within a problem.
Usage: \randomquestionpool{number of first pool-question}{number of last pool-question}
If \randomquestionpool
is specified, then only questions that are within the range of the indices are included. So questions that should be always displayed have to get their own "questionpool", e.g. by \randomquestionpool{1}{1}
for the very first question.
In addition, one can use the command \permutequestions
. Then the questions chosen from the question pools will be presented to each student in random order.
More details on randomquestionpool
More details on permutequestions
As a default all questions are labeled automatically with Latin letters.
You can disable the automatic labeling of question by adding the command \showQuestionLabels{no}
to the @problem@ environment of the TeX file.
\begin{problem}
\showQuestionLabels{no}
...
\end{problem}
You can further customize the labeling type with the following parameters in the \showQuestionLabels
command:
parameter | label type |
---|---|
no | no numbering at all |
yes or alph | alphabetical: (a), (b), ... [default value] |
Alph | alphabetical upper-case: (A), (B), ... |
num | Arabic numerals: (1), (2), ... |
roman | Roman numerals: (i), (ii), ... |
Roman | Roman numerals upper-case: (I), (II), ... |
\begin{problem}
\showQuestionLabels{Roman}
...
\end{problem}
Each question environment has one of the following two structures depending on whether
For mc-types:
1234567891011121314151617181920212223 \begin{question}
\type{mc.unique} % or another mc-type
\field{...} % optional: default is real
\begin{variables}
...
\end{variables}
\text{...} % A text for all the answer task
\begin{choice}
...
\end{choice}
\begin{choice}
...
\end{choice}
\showExplanation{always} % only set this, if all explanations of the question should be
% shown regardless of the correctness of the users answer.
\explanation{...} % An explanation that is shown, when
% not all answers were given correctly.
\end{question}
For input-types:
123456789101112131415161718192021222324 \begin{question}
\type{...} % optional: default is input.generic
\field{...} % optional: default is real
\begin{variables}
...
\end{variables}
\text{...} % A text for all the answer task
\begin{answer}
...
\end{answer}
\begin{answer}
...
\end{answer}
\showExplanation{always} % only set this, if all explanations of the question
% (including those in the answer environment) should be
% shown regardless of the correctness of the users answer.
\explanation{...} % An explanation that is shown, when
% not all answers were given correctly.
\end{question}
Click the following links for more details on types, fields, variables and explanations.
Multiple choice questions are explained here.
It is possible to have different types in one question. In this case the question-type has to be input.generic (and can be omitted), and one has to give the needed type within each answer environment.
Multiple choice tasks can also be wrapped by an answer environment of the specific type. Using this wrapping, one can also mix multiple choice tasks and input-tasks within one question, and also different types of multiple choice tasks.
More details on different answer types
The answer environments are defined within a question environment. The commands appearing in such an answer environment depend on the type of answer, but there are some general commands for all answers of input-type:
123456789101112 \begin{answer}
\type{...} % only if the question-type is input.generic
\text{...} % Text that appears next to the input box. This command is ignored,
% if in the question text the answer is referenced by \ansref.
\solution{...} % A variable representing a correct solution
... % Some commands specifying how the student input should be
% checked for correctness.
\explanation{..} % optional explanation text that appears if the student answer was not correct.
\score{..} % optional, provides the answer with a different score than 1.
\end{answer}
There are some shortcuts that makes the coding easier for you by creating the \begin{..} \end{.}
environment for you (and sometimes more). It is inserted in the problem document at the place, where the cursor is set, when you press the shortcut.
Shortcuts:
Alt-P
results in
1234567 \begin{problem}
\begin{question}
\begin{answer}
\end{answer}
\end{question}
\end{problem}
Alt-Q
results in
12345 \begin{question}
\begin{answer}
\end{answer}
\end{question}
Alt-A
results in
123 \begin{answer}
\end{answer}
Alt-V
results in
123 \begin{variables}
\end{variables}
Alt-S
results in
12345678 \begin{switch}
\begin{case}{...}
\end{case}
\begin{case}{...}
\end{case}
\begin{default}
\end{default}
\end{switch}
Updated by Michael Heimann, 3 years, 1 month ago – 4a9afe8