【latex学习笔记】Array命令(The Latex Array Command)及实例

2012-11-26 09:27 阅读 9,360 次 评论关闭

The Latex Array Command

Syntax

\begin{array}{c1 ... cn}

A(1,1) & ... & A(1,n) \\

... & ... & ... \\

A(m,1) & ... & A(m,n)

\end{array}

See Also

table

XML dependently interpret the array A with j-th column is aligned according to the value of cj where l means align to the left, c means align each to the center, and r means align to the right.

Example
The input

  \begin{array}{clcr}

   a+b++c & uv    & x-y & 27     \\

   a+b    & u+v   & z   & 134    \\

   a      & 3u+vw & xyz & 2,978

  \end{array}

Row Alignment
The first line in the syntax above can have the form
\begin{array}[r]{c1 ... cn}
In this case the value of r specifies how each row is aligned where t means align the top, c means align the center, and b means align the bottom. For example, the input

  \begin{array}[t]{cc}

   \begin{array}{c} a \\ b \end{array}

   &

   \begin{array}{cc} a & b \end{array}

  \end{array}

 array有时候可能不如align,如:

 \begin{equation}
  \left\{
   \begin{array}{c}
   x + y = z,  \\
   c+1 + 2 = 3.  \\
   \end{array}
  \right.
  \end{equation}

\begin{equation}
  \left\{
   \begin{aligned}
   x + y &= z,  \\
   c+1 + 2 &= 3.  \\
   \end{aligned}
  \right.
\end{equation}

版权声明:本文著作权归原作者所有,欢迎分享本文,谢谢支持!
转载请注明:【latex学习笔记】Array命令(The Latex Array Command)及实例 | 猎微网

评论已关闭!