[LON-CAPA-cvs] cvs: loncom /html/adm/help/tex Print_Tricks.tex

foxr lon-capa-cvs@mail.lon-capa.org
Mon, 12 Sep 2005 09:38:26 -0000


foxr		Mon Sep 12 05:38:26 2005 EDT

  Modified files:              
    /loncom/html/adm/help/tex	Print_Tricks.tex 
  Log:
  Finish off the initial pass at Print_Tricks.tex
  
  
  
Index: loncom/html/adm/help/tex/Print_Tricks.tex
diff -u loncom/html/adm/help/tex/Print_Tricks.tex:1.1 loncom/html/adm/help/tex/Print_Tricks.tex:1.2
--- loncom/html/adm/help/tex/Print_Tricks.tex:1.1	Wed Sep  7 06:43:33 2005
+++ loncom/html/adm/help/tex/Print_Tricks.tex	Mon Sep 12 05:38:26 2005
@@ -14,7 +14,8 @@
 General information about printing within LonCAPA is also available: 
 \ref{Print_Resource}
 
-\section{\&prettyprint and \&dollarformat look ugly}
+\emph{\&prettyprint and \&dollarformat look ugly}
+
 To make these two functions work correctly within the print translator, it is
 necessary to wrap them within a <DISPLAY> tag.  For example:
 
@@ -28,21 +29,33 @@
 you will get a syntax error in web presentation mode.
 
 
-\section{Image placement and alignment is wrong}
+\emph{Image placement and alignment is wrong}
+
 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.  
 In LaTeX, images are considered {\em floats}, which LaTeX will place for you.
 There are a few print options you can try to place images approximately where you 
 want them relative to sorrounding text \ref{Print_Options}.
 
-\section{Variables with tags don't print correctly}
+\emph{Variables with tags don't print correctly}
+
 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
 the section of the resource that contains that substitution.  For example:
 
 \begin{verbatim}
-
+<problem>
+<script type="loncapa/perl">
+$a = &xmlparse('<br />');
+</script>
+<startouttext />
+<p>This is a break <display>$a</display> and then some more text</p>
+<endouttext />
+</problem>
 \end{verbatim}
 
+Without the xmlparse call and the display tag bracketing the variable, this
+problem will display on the web just fine, but print incorrectly.
+