File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_Hint_Tags.tex
Revision 1.4: download - view: text, annotated - select for diffs
Mon Jan 10 00:06:25 2011 UTC (13 years, 6 months ago) by www
Branches: MAIN
CVS tags: version_2_11_1, version_2_11_0_RC3, version_2_11_0_RC2, version_2_11_0_RC1, version_2_11_0, version_2_10_X, version_2_10_1, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, HEAD, BZ4492-merge, BZ4492-feature_horizontal_radioresponse
Help on authoring adaptive hints

\label{Authoring_Hint_Tags}

All of these tags must appear inside a \textbf{}response tag:

\begin{itemize}
\item \textbf{hintgroup}\index{hintgroup}: Tag that surrounds all of a
hint. 
\item \textbf{hintpart}\index{hintpart}: Tag to implement conditional
hints. It has a required argument \textbf{on}. When a hint tag named
the same as the \textbf{on} attribute evaluates to be correct, the
\textbf{hintpart} will show. If no other \textbf{hintpart} is to
show then all hintparts with an \textbf{on} value set to {}``\textbf{default}''
will show. 
\item \textbf{numericalhint}\index{numericalhint}: It has all the arguments
that \textbf{numericalresponse} does, and the required attribute \textbf{name}
which should be set to the value of which \textbf{hintpart} will be
shown. 
\item \textbf{stringhint}\index{stringhint}: It has all the arguments that
\textbf{stringresponse} does, and the required attribute \textbf{name}
which should be set to the value of which hintpart will be shown. 
\item \textbf{formulahint}\index{formulahint}: It has all the arguments that
\textbf{formularesponse} does, and the required attribute \textbf{name} which
should be set to the value of which hintpart will be shown. 
\item \textbf{optionhint}\index{optionhint}: The required attribute \textbf{name}
should be set to the value of which \textbf{hintpart} will be shown. 
\item \textbf{radiobuttonhint}\index{radiobuttonhint}: The required attribute
\textbf{name} should be set to the value of which \textbf{hintpart}
will be shown, and the attribute \textbf{answer} should be at least a two element
list: first the type (\textbf{foil} or \textbf{concept}) and then
either the foil name(s) or the concept string(s), e.g., ``('foil','greaterthan','equal')'' if the condition should be triggered by the foils named ``greaterthan'' or ``equal.''
\item \textbf{customhint}\index{customhint}: The required attribute \textbf{name} should be set to the value of which \textbf{hintpart} will be shown.  Define the hint condition within an \textbf{answer} block inside of the \textbf{customhint} block.  The condition is defined like how an answer is defined in \textbf{customresponse} where you need to return EXACT\_ANS to indicate when customhint criteria are met. 
\end{itemize}

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