LaTeX Glossary


My.SUPA has been setup to allow maths to be written quickly using LaTeX notation. This can be included anywhere you see a text box in your course area -- including news or social forums, web pages and wikis. The format for entering LaTeX in My.SUPA is to wrap the code between two pairs of dollar signs. $$ a=b+c $$


If you are looking at this for the first time, please read the entries under 01 Getting Started for an overview. The list of entries may be viewed by categories or alphabetically.

01 Getting Started
| 02 Arithmetic expressions | 03 Font Styles | 04 Delimiters
05 Spaces
| 06 Symbols | 07 Relations | 09 Structures | 10 Feynman Diagrams
11 Other LaTeX Software
09 Structures

array

  • Syntax for an n-dimensional array:
    \begin{array}a1&...&an\end{array}
  • Ex.: $$\begin{array}a_{\fs{0}1}\fs{3},&a_{\fs{0}2}\fs{3},&a_{\fs{0}3}\end{array}$$ gives

(\begin{array}a_{\fs{0}1}\fs{3},&a_{\fs{0}2}\fs{3},&a_{\fs{0}3}\end{array})

matrix

  • An (m,n)-matrix is considered as an array of m*n elements, where the elements of a column are separated by "&" and the rows by "\\".
  • Syntax for an (m,n)-matrix:
    \begin{array}{colformat}a11&...&a1n\\a21&...&a2n\\... \\am1&...&amn \end{array}

    where
    colformat defines the format of each of the n columns: l for left, r for right and c for center (hence {ccccc} defines for a (m,5)-matrix in which all columns are centered)

  • Ex.: $$\left(\begin{array}{lcr}a_{\tiny1}+d & a_{\tiny2}+d & a_{\tiny3}+d \\ b_{\tiny1}& b_{\tiny2}& b_{\tiny3} \\ c_{\tiny1} & c_{\tiny2} & c_{\tiny3} \end{array}\right)$$ gives

\left(\begin{array}{lcr}a_{\tiny1}+d & a_{\tiny2}+d & a_{\tiny3}+d \\ b_{\tiny1}& b_{\tiny2}& b_{\tiny3} \\ c_{\tiny1} & c_{\tiny2} & c_{\tiny3} \end{array}\right)

Note in the example above that "lcr" has the effect that column 1 is left aligned, column 2 centered and colums 3 right aligned.