[texhax] signum(x) function?

Ross Moore ross at ics.mq.edu.au
Mon Aug 25 01:47:12 CEST 2003

On Sun, 24 Aug 2003, John Wheeler wrote:

> I tried \sgn, \signum, and \sign, but all are undefined.
> I got by with (using the package amsmath
> \newcommand{\sgn}{\text{sgn}}
> but would rather follow LaTeX convention if there is one.

Using AMS packages, the easiest way is:


otherwise use


The \mathop is needed to get the spacing correct, for
an operator or function-name.

Hope this helps,

	Ross Moore

> Thanks,
> John Wheeler
> jcw at chemj2.ucsd.edu
> _______________________________________________
> TeX FAQ: http://faq.tug.org/
> TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org

More information about the texhax mailing list