File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_Internal_Tags.tex
Revision 1.3: download - view: text, annotated - select for diffs
Sat Aug 20 16:06:50 2016 UTC (7 years, 11 months 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.

    1: \label{Authoring_Internal_Tags}
    2: 
    3: 
    4: \begin{itemize}
    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
    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
   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
   16: image style of labels there will also be a label description to label
   17: URL mapping (\$hash\{`image\_2'\}=IMG-URL). The entry \textbf{numlocations}
   18: will also be set to the total number of locations that exist (Note: locations and labels start counting from one.) 
   19: \item \textbf{type}\index{type}: the type of labels in this group, either
   20: `\textbf{image}' or `\textbf{text}'
   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>