[dev-context] lvert rvert etc in math

Taco Hoekwater taco at elvenkind.com
Sun Feb 25 14:41:42 CET 2007

Aditya Mahajan wrote:
> Hi Hans and Taco,
> amsmath.sty defines \lvert and \rvert which provide correct spacing 
> when \vert is used as a left or a right delimiter (code at the end of 
> email). I do not completely understand what amsmath is trying to do. 
> Wouldn't
> \definemathsymbol [lvert] [open]  [sy] ["6A] [ex] ["0C]
> \definemathsymbol [rvert] [close] [sy] ["6A] [ex] ["0C]
> this achieve the same goal?

Yes. The AMS code does not quite know when it will be run
and it has to cope with other math encodings as well, that
is why it is that much more complicated.

Best, Taco

More information about the dev-context mailing list