User-Defined Operators

Keith Wansbrough Keith.Wansbrough@cl.cam.ac.uk
Thu, 17 Jul 2003 20:33:50 +0100


Wolfgang writes:

> I think, in both cases you don't define an *operator*. LaTeX probably won't 
> use the correct spacing around the symbol.
> 
> A related problem is that I cannot see a way to define a new "log-like 
> function" (as Lamport names them), i.e., a function with a name consisting of 
> several letters which have to be set in upright font with no spaces between 
> them. Examples are log, min, max, sin, cos and tan.

This is off-topic, but I think you want to look at the \mathop, \mathbin, \mathrel, \mathord, etc commands.  These declare anything as the appropriate math category, and so give the right spacing.

Perhaps this should move to the Haskell Cafe?

--KW 8-)
-- 
Keith Wansbrough <kw217@cl.cam.ac.uk>
http://www.cl.cam.ac.uk/users/kw217/
University of Cambridge Computer Laboratory.