File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_FormulaResponse.tex
Revision 1.2: 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, HEAD
added doc for math, chem, hints, customresponse, essayresponse, organicresponse, reactionresponse

\label{Authoring_FormulaResponse}\index{formularesponse}

\textbf{formularesponse} asks the student to type in a formula as an answer.
It needs an internal \textbf{textline} for the the response to go in.
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.
It can use variables calculated/defined in the problem's Perl script block,
allowing the answer to be determined dynamically.
\item \textbf{samples}\index{samples}: optional, sample points. See \ref{Formula_Response_Sampling}.
\item \textbf{preprocess}: optional, pre-process Perl subroutine
\end{itemize}

Hints can be specified with \textbf{formulahint}.

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