version 1.6, 2005/09/29 21:13:07
|
version 1.9, 2013/08/05 15:24:47
|
Line 11 about some of these problems and, where
|
Line 11 about some of these problems and, where
|
around them. If you have a printing trick or a problem and would like to report |
around them. If you have a printing trick or a problem and would like to report |
it, please go to http://bugs.lon-capa.org and register a bug report. |
it, please go to http://bugs.lon-capa.org and register a bug report. |
|
|
General information about printing within LonCAPA is also available: |
General information about printing within LonCAPA is also available in section |
\ref{Print_Resource} |
\ref{Print_Resource}. Some types of problems that may occur include: |
|
|
\emph{The print rendition of some Perl functions looks ugly } |
\null |
|
\noindent\textbf{The print rendition of some Perl functions looks ugly } |
|
|
In particular these functions are: |
In particular these functions are: |
\begin{itemize} |
\begin{itemize} |
Line 26 In particular these functions are:
|
Line 27 In particular these functions are:
|
|
|
|
|
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 \texttt{$<$display$>$} tag. For example: |
|
|
\begin{verbatim} |
\begin{verbatim} |
<p> |
<p> |
Line 39 you will get a syntax error in web prese
|
Line 40 you will get a syntax error in web prese
|
about cases where you must use \texttt{<display>}, see ``Variables with tags don't print |
about cases where you must use \texttt{<display>}, see ``Variables with tags don't print |
correctly'' below. |
correctly'' below. |
|
|
|
\null |
\emph{Image placement and alignment and text wrapping is wrong} |
\noindent\textbf{Image placement and alignment and text wrapping is wrong} |
|
|
Unfortunately this is due to a large difference between the LaTeX and HTML page |
Unfortunately this is due to a large difference between the LaTeX and HTML page |
layout model. In HTML images are placed exactly where you ask them to be placed. |
layout model. In HTML images are placed exactly where you ask them to be placed. |
Line 51 right side of the figure in the table.
|
Line 52 right side of the figure in the table.
|
|
|
The alignment choice |
The alignment choice |
affects whether or not the print rendering engine attempts to get text to wrap around the |
affects whether or not the print rendering engine attempts to get text to wrap around the |
image. With \texttt{align=``right''} or \texttt{align=``left''}, the print rendering engine |
image. With \texttt{align="right"} or \texttt{align="left"}, the print rendering engine |
attempts to use the {\em wrapfigure} |
attempts to use the {\em wrapfigure} |
environment to place text around the figure at the |
environment to place text around the figure at the |
appropriate side. If a figure is in a table, then the print engine, by default, |
appropriate side. If a figure is in a table, then the print engine, by default, |
Line 59 the print engine will use wrapfigure, se
|
Line 60 the print engine will use wrapfigure, se
|
unless you override it. Otherwise, the default alignment is ``bottom'' as it |
unless you override it. Otherwise, the default alignment is ``bottom'' as it |
is for html, and no wrapping will occur. |
is for html, and no wrapping will occur. |
|
|
\verb+\parpic+ style wrapping is also available by specifying \texttt{TeXwrap=``parpic''} |
\verb+\parpic+ style wrapping is also available by specifying \texttt{TeXwrap="parpic"} |
in the <img> tag. In some limited casese this gives a better result. |
in the <img> tag. In some limited casese this gives a better result. |
|
|
|
|
Other print specific <img> tag attributes are available. \ref{Print_Options}. |
Other print specific $<$img$>$ tag attributes are available (see section \ref{Print_Options}). |
|
|
|
|
|
|
\emph{Variables with tags don't print correctly} |
\null |
|
\noindent\textbf{Variables with tags don't print correctly} |
|
|
If a variable contains XML, in general it is necessary to force the XML parser |
If a variable contains XML, in general it is necessary to force the XML parser |
to make a pass over the contents of the contents of the variable prior to rendering |
to make a pass over the contents of the contents of the variable prior to rendering |
Line 89 $a = &xmlparse('<br />');
|
Line 89 $a = &xmlparse('<br />');
|
Without the xmlparse call and the display tag bracketing the variable, this |
Without the xmlparse call and the display tag bracketing the variable, this |
problem will display on the web just fine, but print incorrectly. |
problem will display on the web just fine, but print incorrectly. |
|
|
|
|
|
|