version 1.2, 2005/09/12 09:38:26
|
version 1.4, 2005/09/16 22:13:57
|
Line 1
|
Line 1
|
\label{Print_Tricks} |
\label{Print_Tricks} |
|
|
When you print a LonCAPA resource, the XML of your resource is translated into |
When you print a LON-CAPA resource, the XML of your resource is translated into |
LaTeX. The LaTeX is then processed and turned into a PDF document which can |
LaTeX. The LaTeX is then processed and turned into a PDF document which can |
be displayed with your browser's Acrobat plugin and subsequently printed. |
be displayed with your browser's Acrobat plugin and subsequently printed. |
|
|
Line 17 General information about printing withi
|
Line 17 General information about printing withi
|
\emph{\&prettyprint and \&dollarformat look ugly} |
\emph{\&prettyprint and \&dollarformat look ugly} |
|
|
To make these two functions work correctly within the print translator, it is |
To make these two functions work correctly within the print translator, it is |
necessary to wrap them within a <DISPLAY> tag. For example: |
necessary to wrap them within a <display> tag. For example: |
|
|
\begin{verbatim} |
\begin{verbatim} |
<p> |
<p> |
If I had <display>&dollarformat(100)</display> |
If I had <display>&prettyprint(100,'$2f')</display> |
</p> |
</p> |
\end{verbatim} |
\end{verbatim} |
|
|
Note that the <display> tags must be tightly wrapped around the function call or |
Note that the \texttt{<display>} tags must be tightly wrapped around the function call or |
you will get a syntax error in web presentation mode. |
you will get a syntax error in web presentation mode. |
|
|
|
|