File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_NumericalResponse.tex
Revision 1.4: download - view: text, annotated - select for diffs
Mon Jan 23 20:29:42 2017 UTC (7 years, 7 months ago) by damieng
Branches: MAIN
CVS tags: HEAD
doc improved for editors, responses, index

\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.
Possible attributes are:
\begin{itemize}
\item \textbf{answer}\index{answer}: required, 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
\item \textbf{preprocess}: pre-process Perl subroutine
\end{itemize}

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