Building math structures

Variables and constants are simple. But there are more complex objects, like binomial coefficients, vectors, and matrices. We shall figure out how to typeset such structures. Let's begin with simple arrays.

Creating arrays

For arranging math expressions within a surrounding expression, there's the array environment. We use it exactly like a tabular environment. However, it requires math mode and all of its entries are made using the math mode as well.

For example, by using variable sized parentheses around the array:

\[
  A = \left(
    \begin{array}{cc}
      a_{11} & a_{12} \\
      a_{21} & a_{22}
    \end{array}
  \right)
\]
Creating arrays

Writing binomial coefficients: ...

Get LaTeX Beginners Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.