[LON-CAPA-users] web, tex functions

Guy Albertelli II lon-capa-users@mail.lon-capa.org
Mon, 10 Feb 2003 16:32:46 -0500 (EST)


Hi Hon-Kie,

> What is the current recommendations on using the web and tex
> functions?

The current recomendation is to avoid them. There is almost always a
better way.

> How should the tex argument be formatted if one insists on using the functions?

I you use them you will need to wrap the variable expansion in a
<display>

For Example:

<script type="loncapa/perl">
$sometext=&web('','\bf{ This is bold }','<i> I am italicized');
</script>
<startouttext />
Here is the output of the web function: <display>$sometext</display>
<endouttext />


-- 
guy@albertelli.com  LON-CAPA Developer  0-7-7-4-