Annotation of loncom/html/adm/help/tex/Authoring_Internal_Tags.tex, revision 1.3
1.1 bowersj2 1: \label{Authoring_Internal_Tags}
2:
3:
4: \begin{itemize}
1.2 vandui11 5: \item \textbf{labelgroup}\index{labelgroup}: One is required, but multiple are allowed.
6: This declares a group of locations and labels associated with them. Possible
1.1 bowersj2 7: attributes are:
8:
9: \begin{itemize}
10: \item \textbf{name}\index{name}: This is the name of the group. A hash
11: with this name will be generated holding the mappings for later use
12: in the problem. For each location a value will be set for which label
1.3 ! raeburn 13: is there (EX. \$hash\{`1'\}=``TEXT-2''). For locations with values,
! 14: the hash will contain 2 items, a location to value mapping (\$hash\{`value\_1'\}=10),
! 15: and a label to value mapping (\$hash\{`labelvalue\_2'\}=10). For all
1.1 bowersj2 16: image style of labels there will also be a label description to label
1.3 ! raeburn 17: URL mapping (\$hash\{`image\_2'\}=IMG-URL). The entry \textbf{numlocations}
1.2 vandui11 18: will also be set to the total number of locations that exist (Note: locations and labels start counting from one.)
1.1 bowersj2 19: \item \textbf{type}\index{type}: the type of labels in this group, either
1.3 ! raeburn 20: `\textbf{image}' or `\textbf{text}'
1.1 bowersj2 21: \item \textbf{location}\index{location}: declares a location on the image
22: that a label should appear at. Possible attributes are:
23:
24: \begin{itemize}
25: \item \textbf{x}\index{x}: The x value of the location in pixels.
26: \item \textbf{y}\index{y}: The y value of the location in pixels.
27: \item \textbf{value}\index{value}: An optional scalar value to associate
28: at this location.
29: \item \textbf{label}\index{label}: Declaration of a label. If this is a
30: \textbf{text} type label, the internal text should be the text of
31: the label (HTML is not currently supported); if this is an \textbf{image}
32: type of label, the internal text must be a LON-CAPA resource specification,
33: and the description filed must be set. Possible attributes are:
34:
35: \begin{itemize}
36: \item \textbf{description}\index{description}: Required field for image
37: labels. It will be used when setting values in the hash.
38: \end{itemize}
39: \end{itemize}
40: \end{itemize}
41: \end{itemize}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>