[LON-CAPA-users] Evaluation of variable in tex mode
H. K. Ng
Wed, 01 Oct 2003 14:08:44 -0400
At 12:59 PM 10/1/03 -0400, you wrote:
> > <m>$x$</m> should work (and do does <em>x</em> )
I tried <m>$x$</m> but it also is replaced by $x variable in the tex target
but not in the web!! This is on a development server.
>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.
I have been trying to avoid the <display>, <tex> and <web> tags for brand
new problems but these are from translated problems.
>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?
It messes up the translated problems and manually changing them runs the
risk of introducing mistakes. Do you see any reason to replace the tex
argument with the variable?
><display>$x=4;&tex('$x$','x')</display> should this put out 4$ or $x$
>in the tex file?
I vote for $x$.