Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Text formatting + writing a matrice

  1. Dec 26, 2011 #1
    What button in the text formatting allows you to create perfectly aligned matrices ?
     
  2. jcsd
  3. Dec 26, 2011 #2

    berkeman

    User Avatar

    Staff: Mentor

    Do you mean like using "code" tags to get uniformly spaced text? Or do you mean creating matrices in LaTeX?
     
  4. Dec 28, 2011 #3

    Mark44

    Staff: Mentor

    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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Text formatting + writing a matrice
  1. Writing (Replies: 9)

Loading...