Text formatting + writing a matrice

  • Thread starter Thread starter JamesGoh
  • Start date Start date
JamesGoh
Messages
140
Reaction score
0
What button in the text formatting allows you to create perfectly aligned matrices ?
 
Physics news on Phys.org
JamesGoh said:
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?
 
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:
[tex]\begin{bmatrix}1 & 0 & 0 \\ 0 & 1 & 0 \\ 0 & 0 & 1 \end{bmatrix}[/tex]

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.
 

Similar threads

  • · Replies 38 ·
2
Replies
38
Views
6K
  • · Replies 7 ·
Replies
7
Views
3K
Replies
11
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • Poll Poll
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 83 ·
3
Replies
83
Views
3K