--- loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex 2005/06/01 21:55:28 1.6 +++ loncom/html/adm/help/tex/Problem_LON-CAPA_Functions.tex 2005/06/29 18:07:15 1.7 @@ -48,7 +48,7 @@ erf = 2/sqrt(pi) integral (0,x) et-sq an \&format(\$x,'nn') & Display or format \$x as nn where nn is nF or nE or nS and n is an integer. \\ \hline -\&prettyprint(\$x,'nn','optional target') &Display or format \$x as nn where nn is nF or nE or nS and n is an integer. Also supports the first character being a \$, it then will format the result with a a call to \&dollarformat() described below. If the first character is a , it will format it with commas grouping the thousands. In S mode it will fromat the number to the specified number of significant figures and display it in F mode. In E mode it will attempt to generate a pretty x10\^{}3 rather than a E3 following the number, the 'optional target' argument is optional but can be used to force \&prettyprint to generate either 'tex' output, or 'web' output, most people do not need to specify this argument and can leave it blank.\\ +\&prettyprint(\$x,'nn','optional target') & Note that that tag $<$num$>$ can be used to do the same thing. Display or format \$x as nn where nn is nF or nE or nS and n is an integer. Also supports the first character being a \$, it then will format the result with a a call to \&dollarformat() described below. If the first character is a , it will format it with commas grouping the thousands. In S mode it will fromat the number to the specified number of significant figures and display it in F mode. In E mode it will attempt to generate a pretty x10\^{}3 rather than a E3 following the number, the 'optional target' argument is optional but can be used to force \&prettyprint to generate either 'tex' output, or 'web' output, most people do not need to specify this argument and can leave it blank.\\ \hline \&dollarformat(\$x,'optional target') & Reformats \$x to have a \$ (or $\backslash$\$ if in tex mode) and to have , grouping thousands. The 'optional target' argument is optional but can be used to force \&prettyprint to generate either 'tex' output, or 'web' output, most people do not need to specify this argument and can leave it blank.\\ @@ -100,7 +100,7 @@ Option 1 - \&map(\$seed,[$\backslash$\$w \$w, \$x, \$y, and \$z are variables } & The rmap functions does the reverse action of map if the same seed is used in calling map and rmap. \\ \hline -\$a=\&xmlparse(\$string) & Runs the internal parser over the argument parsing for display. \textbf{Warning} +\$a=\&xmlparse(\$string) & You probably should use the tag $<$parse$>$ instead of this function. Runs the internal parser over the argument parsing for display. \textbf{Warning} This will result in different strings in different targets. Don't use the results of this function as an answer. \\ \hline