File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_NumericalResponse.tex
Revision 1.6: download - view: text, annotated - select for diffs
Wed Feb 1 21:18:43 2017 UTC (7 years, 5 months ago) by damieng
Branches: MAIN
CVS tags: version_2_12_X, version_2_11_X, version_2_11_5, version_2_11_4_uiuc, version_2_11_4_msu, version_2_11_4, version_2_11_3_uiuc, version_2_11_3_msu, version_2_11_3, version_2_11_2_uiuc, version_2_11_2_msu, version_2_11_2_educog, version_2_11_2, HEAD
added doc for math, chem, hints, customresponse, essayresponse, organicresponse, reactionresponse

\label{Authoring_NumericalResponse}\index{numericalresponse}

\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{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}.

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>