--- loncom/html/adm/help/tex/Authoring_Output_Tags.tex 2008/08/04 22:02:26 1.8 +++ loncom/html/adm/help/tex/Authoring_Output_Tags.tex 2011/12/19 18:00:19 1.14 @@ -8,10 +8,10 @@ This group of tags generates useful outp \begin{verbatim} 2x^y+sqrt(3/x^2) \end{verbatim} -Expressions are displayed using the math expression display mechanism defined in the user's preferences. The default is tth. See the section below concerning the $<$m$>$ tag for more information. +Expressions are displayed using the math expression display mechanism defined in the user's preferences. The default is tth. See the section below concerning the $<$m$>$ tag for more information on that as well as on the attribute \textbf{display}. \item \textbf{chem}\index{chem}: Typesets chemical equation \begin{verbatim} - 02 + 2H2 -> 2H20 + O2 + 2H2 -> 2H2O \end{verbatim} \item \textbf{num}\index{num}: Typesets a number formatted in scientific notation, fixed point, fixed point with commas, fixed point with commas and dollar sign, or in significant digits. \begin{verbatim} @@ -26,11 +26,11 @@ Expressions are displayed using the math contents \begin{verbatim} $table \end{verbatim} @@ -116,7 +116,18 @@ in LON-CAPA style files. \item \textbf{linktext} the text that should appear as the link that causes the creation of the window \end{itemize} -When printing, this included text will get turned into a real footnote. +When printing, the included text will get turned into a real footnote. + +\item \textbf{togglebox}\index{togglebox}: This creates a toggling box that can be clicked open and close. + +\begin{itemize} +\item \textbf{heading} heading text of the box, by default no heading +\item \textbf{headerbg} background color of the header, by default white +\item \textbf{showtext} the text that appears to make the box visible, by default the translation of 'show' +\item \textbf{hidetext} the text that appears to hide the box again, by default the translation of 'hide' +\end{itemize} + +When printing, the included text will be rendered in a visible box. \item \textbf{m}\index{m}: The inside text is \LaTeX{}, and is converted @@ -124,7 +135,7 @@ to HTML (or MathML) on the fly. The defa to the display mechanism that the user has selected in preferences. 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. +will force a specfic display mechanism. Note, however, that setting the attribute \textbf{diplay} to \textbf{jsmath} is generally discouraged as it requires users to have installed jsmath software on their computer. If you want variables inside of this tag to be evaluated before the tex gets converted, then use eval=``on'' \index{eval=on}. For @@ -184,4 +195,14 @@ external image or a LON-CAPA resource. I \item \textbf{height}\index{height}: The height of the image in pixels. \item \textbf{texwidth}\index{texwidth}: The width of the image in millimeters. \end{itemize} + +\item \textbf{problemtype}\index{problemtype}: This tag allows you to show or hide output based on what the problem-type parameter is set to in the course. For example: \begin{verbatim} + + +The formula for the circumference of a circle is 2*pi*r + + +\end{verbatim} +Will only show the output text when the problem is set to the type of exam or survey in the course. The attribute for mode can be set to show or hide. The attribute for for can be problem, exam, survey, or practice. + \end{itemize}