Annotation of loncom/html/adm/help/tex/Authoring_NumericalResponse.tex, revision 1.6
1.4 damieng 1: \label{Authoring_NumericalResponse}\index{numericalresponse}
1.1 bowersj2 2:
1.3 damieng 3: \textbf{numericalresponse} implements a numerical answer,
4: it needs an internal \textbf{textline} for the the response to go in.
5: It checks all styles of numerical supported in CAPA.
1.5 damieng 6: The answer can be specified with the \textbf{answer} attribute or with an \textbf{answergroup}.
7:
1.1 bowersj2 8: Possible attributes are:
9: \begin{itemize}
1.5 damieng 10: \item \textbf{answer}\index{answer}: specifies the correct answer,
11: may be either a perl list or scalar
1.3 damieng 12: \item \textbf{unit}\index{unit}: optional, specifies unit of correct answer, CAPA style
1.4 damieng 13: \item \textbf{incorrect}: Incorrect Answers. When switched into exam (``bubble sheet'') mode, LON-CAPA usually create wrong answers automatically. To specify wrong answers yourself, you need to provide an array of incorrect values in this attribute. You need to provide at least as many incorrects as 1 less than the number of bubbles on the exam. You can provide more if you want to.
1.5 damieng 14: \item \textbf{format}: string to format the number displayed as the answer. See \textbf{num} in \ref{Authoring_Output_Tags} for examples.
15: \item \textbf{preprocess}: optional, pre-process Perl subroutine
1.1 bowersj2 16: \end{itemize}
1.6 ! damieng 17:
! 18: Hints can be specified with \textbf{numericalhint}.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>