On 7/20/06, Matthew Sarnoff <msarnoff at andrew.cmu.edu> wrote:
> $${\it \sgn}\left(x\right)$$
I've committed a fix to src/mactex.lisp so that this should be
rendered as $$\sgn\left(x\right)$$. You can get the current version from
http://maxima.cvs.sourceforge.net/maxima/maxima/.
You might also be interested in tests/rtest_tex.mac which is a
script to write a test document tmp.tex with a variety of Maxima expressions.
By the way, if you want signum(x) => $$\sgn x$$ (i.e. no parentheses)
I think texput(signum, "\\sgn ", prefix); will do that for you.
2nd btw, I guess you probably have a \sgn definition in your tex
files since it's not built-in, but if not then \def\sgn{\mathop{\rm sgn}}
seems to work OK.
HTH
Robert Dodier