File:
[LON-CAPA] /
loncom /
html /
adm /
help /
tex /
Authoring_Hint_Tags.tex
Revision
1.5:
download - view:
text,
annotated -
select for diffs
Sat Aug 20 16:06:50 2016 UTC (8 years, 1 month ago) by
raeburn
Branches:
MAIN
CVS tags:
version_2_12_X,
version_2_11_X,
version_2_11_5_msu,
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
- Use LaTeX-style single and double quotes.
\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>