computersci.org
Print     Recent Changes     Search    
Home




LaTeX Reference Manual


Math Environments

« List Environments | Table of Contents | Paragraph Environments »


array Environment

     \begin{array}{col1col2…coln}
     column 1 entry & column 2 entry … & column n entry 
. . . \end{array}

Math arrays are produced with the array environment. It has a single mandatory argument describing the number of columns and the alignment within them. Each column, coln, is specified by a single letter that tells how items in that row should be formatted.

c - for centred
l - for flush left
r - for flush right

Column entries must be separated by an &. Column entries may include other LaTeX commands. Each row of the array must be terminated with the string \\.

Note that the array environment can only be used in math mode, so normally it is used inside an equation environment.

eqnarray Environment

      \begin{eqnarray}
      math formula 1 
math formula 2
. . . \end{eqnarray}

The eqnarray environment is used to display a sequence of equations or inequalities. It is very much like a three-column array environment, with consecutive rows separated by \\ and consecutive items within a row separated by an &.

An equation number is placed on every line unless that line has a \nonumber command.

The command \lefteqn is used for splitting long formulas across lines. It typesets its argument in display style flush left in a box of zero width.

equation Environment

      \begin{equation}
       math formula
      \end{equation}

The equation environment centers your equation on the page and places the equation number in the right margin.

theorem Environment

      \begin{theorem}
       theorem text
      \end{theorem}

The theorem environment produces “Theorem x” in boldface followed by your theorem text.

« List Environments | Table of Contents | Paragraph Environments »

Page last modified on February 24, 2009, at 09:27 AM