Annotation of loncom/html/adm/help/tex/Authoring_M_Tag.tex, revision 1.1
1.1 ! bowersj2 1: \label{Authoring_M_Tag}
! 2: Wrapping TeX with <m > </m >\index{m tag}\index{tag, <m>} will put the
! 3: TeX through the TTH\index{TTH}(tex to html) converter when rendering a
! 4: resource to a web page.
! 5:
! 6: If you want variables inside of this tag to be evaluated before the
! 7: tex gets converted, then use <m eval=''on'' >\index{eval=on}. For
! 8: example, <m eval=''on''>\textbackslash{}[\$eqn\textbackslash{}]</m >,
! 9: will evaluate the variable \$eqn first and then run it through the
! 10: TTH\index{TTH} converter.
! 11:
! 12: For example, put the following in a script in the resource:
! 13:
! 14: \texttt{\$eq = ``\$a+\$b''; \$eq =~ s/\textbackslash{}+-/-/g;}
! 15:
! 16: and in a text area, you can type:
! 17:
! 18: \texttt{<m eval=''on''>\$eq</m>}
! 19:
! 20: You will get the equation rendered with no +-, no matter what value
! 21: \$b may take on.
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>