File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_Internal_Tags.tex
Revision 1.1: download - view: text, annotated - select for diffs
Tue Jun 10 19:29:26 2003 UTC (21 years, 1 month ago) by bowersj2
Branches: MAIN
CVS tags: version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_X, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0, version_1_1_3, version_1_1_2, version_1_1_1, version_1_1_0, version_1_0_99_3, version_1_0_99_2, version_1_0_99_1, version_1_0_99, version_1_0_3, version_1_0_2, version_1_0_1, version_1_0_0, version_0_99_5, version_0_99_4, version_0_99_3, version_0_99_2, HEAD
homework5.html chunked up with authoring information

\label{Authoring_Internal_Tags}


\begin{itemize}
\item \textbf{labelgroup}\index{labelgroup}: One required, multiple allowed.
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). Also the entry \textbf{numlocations}
will be set to the total number of locations that exist. (Note that
locations and labels start counting from 1.) 
\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>