File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_Output_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

    1: \label{Authoring_Output_Tags}
    2: 
    3: 
    4: This group of tags generate useful output. 
    5: 
    6: \begin{itemize}
    7: \item \textbf{standalone}\index{standalone}: Everything in between the
    8: start and end tag is shown only on the web, and only if the resource
    9: is not part of a course. 
   10: \item \textbf{displayduedate}\index{displayduedate}: This will insert the
   11: current duedate if one is set into the document. It is generated to
   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.
   17: \item \textbf{window}\index{window}: The text in between is put in a popup
   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. 
   23: \item \textbf{randomlabel}\index{randomlabel}: Shows a specified image
   24: with images or text labels randomly assigned to a set of specific
   25: locations. Those locations may also have values assigned to them.
   26: There is a hash generated containing the mapping of labels to locations,
   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
   52: external image, or a loncapa resource. It supports relative references
   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.
   56: \item \textbf{texwidth}\index{texwidth}: the width of the image in millimeters.
   57: \end{itemize}
   58: \end{itemize}

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