Annotation of loncom/html/adm/help/tex/Authoring_Output_Tags.tex, revision 1.5

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.3       albertel    7: \item \textbf{algebra}\index{algebra}: Typesets algebraic expressions
                      8: \begin{verbatim}
                      9:   <algebra>2x^y+sqrt(3/x^2)</algebra>
                     10: \end{verbatim}
                     11: \item \textbf{chem}\index{chem}: Typesets chemical equation 
                     12: \begin{verbatim}
                     13:   <chem>02 + 2H2 -> 2H20</chem>
                     14: \end{verbatim}
                     15: \item \textbf{num}\index{num}: Typesets a number 
                     16: \begin{verbatim}
                     17:   <num format=''2E''>31454678</num>
                     18: \end{verbatim}
                     19: \item \textbf{parse}\index{parse}: to display the parsed view of a variable's
                     20: contents
                     21: \begin{verbatim}
                     22:   <script type=''loncapa/perl''>
                     23:    $table='<table>';
                     24:    for ($i=1;$i<=10;$i++) {
                     25:       $table.='<tr><td>'.$i.'</td><td>'.&random(1,10,1).'</td></tr>';
                     26:    }
                     27:    $table.='</table>';
                     28:   </script>
                     29:   <parse>\$table</parse>
                     30: \end{verbatim}
                     31: 
1.2       vandui11   32: \item \textbf{standalone}\index{standalone}: Everything inbetween the
                     33: start and end tag is shown only on the web and only if the resource
1.1       bowersj2   34: is not part of a course. 
                     35: \item \textbf{displayduedate}\index{displayduedate}: This will insert the
1.2       vandui11   36: current due date if one is set in the document. It is generated to
1.1       bowersj2   37: be inside a table of 1x1 elements.
                     38: \item \textbf{displaytitle}\index{displaytitle}: This will insert the title
                     39: of the problem from the metadata of the problem. Only the first \textbf{displaytitle}
                     40: in a problem will show the title; this allows clean usage of \textbf{displaytitle}
                     41: in stylesheets.
1.2       vandui11   42: \item \textbf{window}\index{window}: The text inbetween is put in a pop-up
1.1       bowersj2   43: javascript window.
1.4       albertel   44: 
1.1       bowersj2   45: \item \textbf{m}\index{m}: The inside text is \LaTeX{}, and is converted
1.4       albertel   46: to HTML (or MathML) on the fly. If the attribute \textbf{eval} is set
                     47: to {}``\textbf{on}'' the intervening text will have a perl variable
                     48: expansion done to it before being converted. The default is to convert
                     49: to the display mechanism that the user has selected. This can be
                     50: overriden by setting the attribute \textbf{display} to one of
                     51: ``\textbf{tth}'' or ``\textbf{jsMath}'' or ``\textbf{mimetex}''which
                     52: will force a specfic display mechanism.
                     53: 
1.2       vandui11   54: \item \textbf{randomlabel}\index{randomlabel}: This shows a specified image
1.1       bowersj2   55: with images or text labels randomly assigned to a set of specific
                     56: locations. Those locations may also have values assigned to them.
1.2       vandui11   57: A hash is generated that contains the mapping of labels to locations,
1.1       bowersj2   58: labels to values, and locations to values. Example: \begin{verbatim}
                     59: 
                     60:  <randomlabel bgimg="URL" width="12" height="45" texwidth="50">
                     61:     <labelgroup name="GroupOne" type="image">
                     62:       <location x="123" y="456" value="10" />
                     63:       <location x="321" y="654" value="20" />
                     64:       <location x="213" y="546" value="13" />
                     65:       <label description="TEXT-1">IMG-URL</label>
                     66:       <label description="TEXT-2">IMG-URL</label>
                     67:       <label description="TEXT-3">IMG-URL</label>
                     68:     </labelgroup>
                     69:     <labelgroup name="GroupTwo" type="text">
                     70:       <location x="12" y="45" />
                     71:       <location x="32" y="65" />
                     72:       <location x="21" y="54" />
                     73:       <label>TEXT-1</label>
                     74:       <label>TEXT-2</label>
                     75:       <label>TEXT-3</label>
                     76:     </labelgroup>
                     77:    </randomlabel>
                     78:     
1.5     ! albertel   79: \end{verbatim}
        !            80: 
        !            81:  Possible attributes are:
1.1       bowersj2   82: 
                     83: \begin{itemize}
                     84: \item \textbf{bgimg}\index{bgimg}: Either a fully qualified URL for an
1.2       vandui11   85: external image or a LON-CAPA resource. It supports relative references
1.1       bowersj2   86: (../images/apicture.gif). The image must either be a GIF or JPEG.
                     87: \item \textbf{width}\index{width}: The width of the image in pixels.
                     88: \item \textbf{height}\index{height}: The height of the image in pixels.
1.2       vandui11   89: \item \textbf{texwidth}\index{texwidth}: The width of the image in millimeters.
1.1       bowersj2   90: \end{itemize}
                     91: \end{itemize}

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