--- loncom/html/adm/help/tex/Authoring_Output_Tags.tex 2003/06/10 19:29:26 1.1 +++ loncom/html/adm/help/tex/Authoring_Output_Tags.tex 2005/09/29 21:13:07 1.5 @@ -1,29 +1,60 @@ \label{Authoring_Output_Tags} -This group of tags generate useful output. +This group of tags generates useful output. \begin{itemize} -\item \textbf{standalone}\index{standalone}: Everything in between the -start and end tag is shown only on the web, and only if the resource +\item \textbf{algebra}\index{algebra}: Typesets algebraic expressions +\begin{verbatim} + 2x^y+sqrt(3/x^2) +\end{verbatim} +\item \textbf{chem}\index{chem}: Typesets chemical equation +\begin{verbatim} + 02 + 2H2 -> 2H20 +\end{verbatim} +\item \textbf{num}\index{num}: Typesets a number +\begin{verbatim} + 31454678 +\end{verbatim} +\item \textbf{parse}\index{parse}: to display the parsed view of a variable's +contents +\begin{verbatim} + + \$table +\end{verbatim} + +\item \textbf{standalone}\index{standalone}: Everything inbetween the +start and end tag is shown only on the web and only if the resource is not part of a course. \item \textbf{displayduedate}\index{displayduedate}: This will insert the -current duedate if one is set into the document. It is generated to +current due date if one is set in the document. It is generated to be inside a table of 1x1 elements. \item \textbf{displaytitle}\index{displaytitle}: This will insert the title of the problem from the metadata of the problem. Only the first \textbf{displaytitle} in a problem will show the title; this allows clean usage of \textbf{displaytitle} in stylesheets. -\item \textbf{window}\index{window}: The text in between is put in a popup +\item \textbf{window}\index{window}: The text inbetween is put in a pop-up javascript window. + \item \textbf{m}\index{m}: The inside text is \LaTeX{}, and is converted -to HTML (or MathML) on the fly. If the attribute \textbf{eval} is -set to {}``\textbf{on}'' the intervening text will have a perl variable -expansion done to it before being converted. -\item \textbf{randomlabel}\index{randomlabel}: Shows a specified image +to HTML (or MathML) on the fly. If the attribute \textbf{eval} is set +to {}``\textbf{on}'' the intervening text will have a perl variable +expansion done to it before being converted. The default is to convert +to the display mechanism that the user has selected. This can be +overriden by setting the attribute \textbf{display} to one of +``\textbf{tth}'' or ``\textbf{jsMath}'' or ``\textbf{mimetex}''which +will force a specfic display mechanism. + +\item \textbf{randomlabel}\index{randomlabel}: This shows a specified image with images or text labels randomly assigned to a set of specific locations. Those locations may also have values assigned to them. -There is a hash generated containing the mapping of labels to locations, +A hash is generated that contains the mapping of labels to locations, labels to values, and locations to values. Example: \begin{verbatim} @@ -45,14 +76,16 @@ labels to values, and locations to value -\end{verbatim} Possible attributes are: +\end{verbatim} + + Possible attributes are: \begin{itemize} \item \textbf{bgimg}\index{bgimg}: Either a fully qualified URL for an -external image, or a loncapa resource. It supports relative references +external image or a LON-CAPA resource. It supports relative references (../images/apicture.gif). The image must either be a GIF or JPEG. \item \textbf{width}\index{width}: The width of the image in pixels. \item \textbf{height}\index{height}: The height of the image in pixels. -\item \textbf{texwidth}\index{texwidth}: the width of the image in millimeters. +\item \textbf{texwidth}\index{texwidth}: The width of the image in millimeters. \end{itemize} \end{itemize}