2.11 Matrices

  2.11.1 Aligned
  2.11.2 Cases
  2.11.3 matrix
  2.11.4 pmatrix

2.11.1 Aligned

<..configure mathltx amsmath..>+
 \Configure{aligned}
    {\HCode{\string\begin{aligned}}}
    {\HCode{\string\end{aligned}}}
    {}
    {\HCode{\string\\}}
    {\ifnum \HCol>1\HCode{\a:math:amp}\fi}   {}
 \Configure{alignedat}
    {\HCode{\string\begin{alignedat}}}
    {\HCode{\string\end{alignedat}}}
    {}
    {\HCode{\string\\}}
    {\ifnum \HCol>1\HCode{\a:math:amp}\fi}   {}
-_-_-

2.11.2 Cases

<..plain,latex mathltx..>+
 \Configure{cases}
     {}{}
     {\HCode{\string\cases\l:brace}}
     {\ifvmode \IgnorePar\fi \HCode{\r:brace}}
     {\ifnum \HRow>1 \HCode{\string\cr\space}\fi}
     {}
     {<.mtd matrix.>}
     {}
-_-_-

2.11.3 matrix

<..plain,latex mathltx..>+
 \Configure{matrix}
    {\HCode{\string\matrix\l:brace}}
    {\HCode{\r:brace}}
    {\ifnum \HRow>1 \HCode{\string\cr\space}\fi}
    {}
    {<.mtd matrix.>}
    {}
-_-_-

2.11.4 pmatrix

The grouping below is handle the case that the matrix is a base of an exponent.

<..plain,latex mathltx..>+
 \Configure{pmatrix}  {\bgroup}  {\egroup}
-_-_-

The grouping below is handle the case that the matrix is a base of an exponent. The \, configurations is for facilitating the catching of left subscripts and superscripts.

<..plain,latex mathltx..>+
 \Configure{quad}{{\ifmathltx \ifmtext \o:quad:\else
    {\HCode{\string\quad\space}}\fi
     \else \o:quad: \fi}}
 \Configure{qquad}{{\ifmathltx \ifmtext \o:qquad:\else
    {\HCode{\string\qquad\space}}\fi
     \else \o:qquad: \fi}}
 \Configure{,}
    {{\HCode{\string\,}}}
-_-_-