[dev-context] lvert rvert etc in math

Aditya Mahajan adityam at umich.edu
Sun Feb 25 00:16:38 CET 2007

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. 

\definemathsymbol [lvert] [open]  [sy] ["6A] [ex] ["0C]
\definemathsymbol [rvert] [close] [sy] ["6A] [ex] ["0C]

this achieve the same goal?

AMS code:

% \subsection{Vertical bar symbols}
%    Add left/right specific versions of \cn{vert}, \cn{Vert}. Don't
%    assume the delimiter codes are the CM defaults.
%    \begin{macrocode}
   \advance\@tempcnta "4000000
   \xdef\lvert{\delimiter\number\@tempcnta\space }
   \advance\@tempcnta "1000000
   \xdef\rvert{\delimiter\number\@tempcnta\space }
     % Fall back to cmex encoding since we don't know what else to do.
   \advance\@tempcnta "4000000
   \xdef\lVert{\delimiter\number\@tempcnta\space }
   \advance\@tempcnta "1000000
   \xdef\rVert{\delimiter\number\@tempcnta\space }


More information about the dev-context mailing list