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? 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} \def\@tempa#1#2\@nil{% \ifx\delimiter#1\@tempcnta#2\relax\else\@tempcnta\z@\fi } \@xp\@tempa\vert\@empty\@nil \ifnum\@tempcnta>\z@ \advance\@tempcnta "4000000 \xdef\lvert{\delimiter\number\@tempcnta\space } \advance\@tempcnta "1000000 \xdef\rvert{\delimiter\number\@tempcnta\space } \else \ifx\@@undefined\lvert % Fall back to cmex encoding since we don't know what else to do. \DeclareMathDelimiter{\lvert} {\mathopen}{symbols}{"6A}{largesymbols}{"0C} \DeclareMathDelimiter{\rvert} {\mathclose}{symbols}{"6A}{largesymbols}{"0C} \fi \fi \@xp\@tempa\Vert\@empty\@nil \ifnum\@tempcnta>\z@ \advance\@tempcnta "4000000 \xdef\lVert{\delimiter\number\@tempcnta\space } \advance\@tempcnta "1000000 \xdef\rVert{\delimiter\number\@tempcnta\space } \else \ifx\@@undefined\lVert \DeclareMathDelimiter{\lVert} {\mathopen}{symbols}{"6B}{largesymbols}{"0D} \DeclareMathDelimiter{\rVert} {\mathclose}{symbols}{"6B}{largesymbols}{"0D} \fi \fi Aditya
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
On Sun, 25 Feb 2007, Taco Hoekwater wrote:
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.
Hans, Can the following be added to math-tex \definemathsymbol [lvert] [open] [sy] ["6A] [ex] ["0C] \definemathsymbol [rvert] [close] [sy] ["6A] [ex] ["0C] \definemathsymbol [lVert] [open] [sy] ["6B] [ex] ["0D] \definemathsymbol [rVert] [close] [sy] ["6B] [ex] ["0D] Aditya
Aditya Mahajan wrote:
On Sun, 25 Feb 2007, Taco Hoekwater wrote:
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.
Hans,
Can the following be added to math-tex
\definemathsymbol [lvert] [open] [sy] ["6A] [ex] ["0C] \definemathsymbol [rvert] [close] [sy] ["6A] [ex] ["0C]
\definemathsymbol [lVert] [open] [sy] ["6B] [ex] ["0D] \definemathsymbol [rVert] [close] [sy] ["6B] [ex] ["0D]
ok -- ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (3)
-
Aditya Mahajan
-
Hans Hagen
-
Taco Hoekwater