--- loncom/html/adm/help/tex/Authoring_NumericalResponse.tex 2003/06/10 19:29:26 1.1 +++ loncom/html/adm/help/tex/Authoring_NumericalResponse.tex 2017/02/01 21:18:43 1.6 @@ -1,26 +1,18 @@ -\label{Authoring_NumericalResponse} +\label{Authoring_NumericalResponse}\index{numericalresponse} -\textbf{stringresponse} implements a string answer. An internal \textbf{textline} -tag (see \textbf{\ref{textline}}) is necessary for the student's -response to go in. It can check the string for either case or order. -Possible attributes are: - -\begin{itemize} -\item \textbf{answer}\index{answer}: required. Specifies the correct answer, -either a perl list or scalar. -\item \textbf{type}\index{type}: optional. Specifies how the string is -checked (like the CAPA styles). Possible values are: +\textbf{numericalresponse} implements a numerical answer, +it needs an internal \textbf{textline} for the the response to go in. +It checks all styles of numerical supported in CAPA. +The answer can be specified with the \textbf{answer} attribute or with an \textbf{answergroup}. +Possible attributes are: \begin{itemize} -\item \textbf{cs}\index{cs}: \textbf{c}ase \textbf{s}ensitive, order important. -\item \textbf{ci}\index{ci}: \textbf{c}ase \textbf{i}nsensitive, order -important. -\item \textbf{mc}\index{mc}: case insensitive, order unimportant. The mnemonic -for this option is {}``\textbf{m}ultiple \textbf{c}hoice'', which -is how it was used in CAPA: To allow the user to specify choices from -a multiple choices problem, as in {}``adce'', meaning parts a, d, -c, and e are true. Order didn't matter in such a problem. In LON-CAPA, -using \textbf{optionresponse} with True and False foils would be preferable, -but this will remain supported for easier CAPA-to-LON-CAPA conversion. -\end{itemize} +\item \textbf{answer}\index{answer}: specifies the correct answer, +may be either a perl list or scalar +\item \textbf{unit}\index{unit}: optional, specifies unit of correct answer, CAPA style +\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. +\item \textbf{format}: string to format the number displayed as the answer. See \textbf{num} in \ref{Authoring_Output_Tags} for examples. +\item \textbf{preprocess}: optional, pre-process Perl subroutine \end{itemize} + +Hints can be specified with \textbf{numericalhint}.