File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_StringResponse.tex
Revision 1.3: download - view: text, annotated - select for diffs
Wed Feb 1 21:18:43 2017 UTC (7 years, 9 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_StringResponse}\index{stringresponse}

\textbf{stringresponse} queries for a string without any initial constraint.

Possible attributes are:
\begin{itemize}
  \item \textbf{answer}: the correct answer, either a perl list or scalar
  \item \textbf{type}: specifies how the string is checked (like the CAPA styles).
    Possible values are:
    \begin{description}
      \item[cs]: case sensitive, order important
      \item[ci]: case insensitive, order important
      \item[mc]: case insensitive, order unimportant
      \item[re]: regular expression
    \end{description}
  \item \textbf{answerdisplay}: string to display for answer
  \item \textbf{preprocess}: optional, pre-process Perl subroutine
\end{itemize}

Hints can be specified with \textbf{stringhint}.

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