File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_Internal_Tags.tex
Revision 1.2: download - view: text, annotated - select for diffs
Thu Feb 24 22:26:25 2005 UTC (19 years, 4 months ago) by vandui11
Branches: MAIN
CVS tags: version_2_9_X, version_2_9_99_0, version_2_9_1, version_2_9_0, version_2_8_X, version_2_8_99_1, version_2_8_99_0, version_2_8_2, version_2_8_1, version_2_8_0, version_2_7_X, version_2_7_99_1, version_2_7_99_0, version_2_7_1, version_2_7_0, version_2_6_X, version_2_6_99_1, version_2_6_99_0, version_2_6_3, version_2_6_2, version_2_6_1, version_2_6_0, version_2_5_X, version_2_5_99_1, version_2_5_99_0, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1, version_2_2_0, version_2_1_X, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0, version_2_1_3, version_2_1_2, version_2_1_1, version_2_1_0, 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, version_2_10_0_RC2, version_2_10_0_RC1, version_2_10_0, version_2_0_X, version_2_0_99_1, version_2_0_2, version_2_0_1, version_2_0_0, version_1_99_3, version_1_99_2, version_1_99_1_tmcc, version_1_99_1, version_1_99_0_tmcc, version_1_99_0, loncapaMITrelate_1, language_hyphenation_merge, language_hyphenation, bz6209-base, bz6209, bz5969, bz2851, PRINT_INCOMPLETE_base, PRINT_INCOMPLETE, HEAD, GCI_3, GCI_2, GCI_1, BZ5971-printing-apage, BZ5434-fox, BZ4492-merge, BZ4492-feature_horizontal_radioresponse
formatted for consistency with punctuation updated

\label{Authoring_Internal_Tags}


\begin{itemize}
\item \textbf{labelgroup}\index{labelgroup}: One is required, but multiple are allowed.
This declares a group of locations and labels associated with them. Possible
attributes are:

\begin{itemize}
\item \textbf{name}\index{name}: This is the name of the group. A hash
with this name will be generated holding the mappings for later use
in the problem. For each location a value will be set for which label
is there (EX. \$hash\{'1'\}=''TEXT-2''). For locations with values,
the hash will contain 2 items, a location to value mapping (\$hash\{'value\_1'\}=10),
and a label to value mapping (\$hash\{'labelvalue\_2'\}=10). For all
image style of labels there will also be a label description to label
URL mapping (\$hash\{'image\_2'\}=IMG-URL). The entry \textbf{numlocations}
will also be set to the total number of locations that exist (Note: locations and labels start counting from one.) 
\item \textbf{type}\index{type}: the type of labels in this group, either
'\textbf{image}' or '\textbf{text}'
\item \textbf{location}\index{location}: declares a location on the image
that a label should appear at. Possible attributes are:

\begin{itemize}
\item \textbf{x}\index{x}: The x value of the location in pixels.
\item \textbf{y}\index{y}: The y value of the location in pixels.
\item \textbf{value}\index{value}: An optional scalar value to associate
at this location.
\item \textbf{label}\index{label}: Declaration of a label. If this is a
\textbf{text} type label, the internal text should be the text of
the label (HTML is not currently supported); if this is an \textbf{image}
type of label, the internal text must be a LON-CAPA resource specification,
and the description filed must be set. Possible attributes are:

\begin{itemize}
\item \textbf{description}\index{description}: Required field for image
labels. It will be used when setting values in the hash.
\end{itemize}
\end{itemize}
\end{itemize}
\end{itemize}

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