PDA

View Full Version : text formatting + writing a matrice


JamesGoh
Dec26-11, 03:24 PM
What button in the text formatting allows you to create perfectly aligned matrices ?

berkeman
Dec26-11, 03:34 PM
What button in the text formatting allows you to create perfectly aligned matrices ?

Do you mean like using "code" tags to get uniformly spaced text? Or do you mean creating matrices in LaTeX?

Mark44
Dec28-11, 05:08 PM
You can enter a matrix (there's no such word as matrice) using LaTeX like this:
[ tex ]\ begin{bmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \ end{bmatrix}[ /tex ]

This LaTeX code (with the extra spaces removed from the tex tags and before begin and end) produces this matrix:
\begin{bmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}

There are several other ways to do this, of which this technique is probably the simplest. If you want the matrix surround with parentheses instead of brackets, use pmatrix in both places.