[LON-CAPA-users] Evaluation of variable in tex mode
Guy Albertelli II
lon-capa-users@mail.lon-capa.org
Wed, 1 Oct 2003 12:59:28 -0400 (EDT)
> <m>$x$</m> should work (and do does <em>x</em> )
As does
<display>&tex('\(x\)','x')</display>-axis
<display>&tex('$ x$','x')</display>-axis
or
<tex>$ x$-axis</tex><web>x-axis</web>
<tex>\( x\)-axis</tex><web>x-axis</web>
<i>x<i>-axis
But this does bring up a more interesting question, should <display>
(and <tex>/<web>) be doing what it is doing here, meaning it is
currently doing the variable value replacement on the results of the
<display>, <tex> and <web> tags.
Should it be doing this? (I can make it stop, but I am not sure it is
a good idea.)
Is anyone using this effect?
Is anyone annoyed by this effect?
<display>$x=4;&tex('$x$','x')</display> should this put out 4$ or $x$
in the tex file?
--
guy@albertelli.com LON-CAPA Developer 0-7-5-6-