Annotation of loncom/html/adm/help/tex/Authoring_Output_Tags.tex, revision 1.2
1.1 bowersj2 1: \label{Authoring_Output_Tags}
2:
3:
1.2 ! vandui11 4: This group of tags generates useful output.
1.1 bowersj2 5:
6: \begin{itemize}
1.2 ! vandui11 7: \item \textbf{standalone}\index{standalone}: Everything inbetween the
! 8: start and end tag is shown only on the web and only if the resource
1.1 bowersj2 9: is not part of a course.
10: \item \textbf{displayduedate}\index{displayduedate}: This will insert the
1.2 ! vandui11 11: current due date if one is set in the document. It is generated to
1.1 bowersj2 12: be inside a table of 1x1 elements.
13: \item \textbf{displaytitle}\index{displaytitle}: This will insert the title
14: of the problem from the metadata of the problem. Only the first \textbf{displaytitle}
15: in a problem will show the title; this allows clean usage of \textbf{displaytitle}
16: in stylesheets.
1.2 ! vandui11 17: \item \textbf{window}\index{window}: The text inbetween is put in a pop-up
1.1 bowersj2 18: javascript window.
19: \item \textbf{m}\index{m}: The inside text is \LaTeX{}, and is converted
20: to HTML (or MathML) on the fly. If the attribute \textbf{eval} is
21: set to {}``\textbf{on}'' the intervening text will have a perl variable
22: expansion done to it before being converted.
1.2 ! vandui11 23: \item \textbf{randomlabel}\index{randomlabel}: This shows a specified image
1.1 bowersj2 24: with images or text labels randomly assigned to a set of specific
25: locations. Those locations may also have values assigned to them.
1.2 ! vandui11 26: A hash is generated that contains the mapping of labels to locations,
1.1 bowersj2 27: labels to values, and locations to values. Example: \begin{verbatim}
28:
29: <randomlabel bgimg="URL" width="12" height="45" texwidth="50">
30: <labelgroup name="GroupOne" type="image">
31: <location x="123" y="456" value="10" />
32: <location x="321" y="654" value="20" />
33: <location x="213" y="546" value="13" />
34: <label description="TEXT-1">IMG-URL</label>
35: <label description="TEXT-2">IMG-URL</label>
36: <label description="TEXT-3">IMG-URL</label>
37: </labelgroup>
38: <labelgroup name="GroupTwo" type="text">
39: <location x="12" y="45" />
40: <location x="32" y="65" />
41: <location x="21" y="54" />
42: <label>TEXT-1</label>
43: <label>TEXT-2</label>
44: <label>TEXT-3</label>
45: </labelgroup>
46: </randomlabel>
47:
48: \end{verbatim} Possible attributes are:
49:
50: \begin{itemize}
51: \item \textbf{bgimg}\index{bgimg}: Either a fully qualified URL for an
1.2 ! vandui11 52: external image or a LON-CAPA resource. It supports relative references
1.1 bowersj2 53: (../images/apicture.gif). The image must either be a GIF or JPEG.
54: \item \textbf{width}\index{width}: The width of the image in pixels.
55: \item \textbf{height}\index{height}: The height of the image in pixels.
1.2 ! vandui11 56: \item \textbf{texwidth}\index{texwidth}: The width of the image in millimeters.
1.1 bowersj2 57: \end{itemize}
58: \end{itemize}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>