|
These are okay: ================= \documentclass[12pt]{article} %this thing is hard.. \begin{document}
\begin{center} \textbf{ {Eigenvectors $\wedge$ Eigenvalues} $\vee$ {Characteristic Equation} } \end{center}
Consider this 3x3 matrix: ===============
But these: ================ \left( \begin{array}{ccc} a_{1,1} & a_{1,2} & a_{1,3}\\ a_{2,1} & a_{2,2} & a_{2,3}\\ a_{3,1} & a_{3,2} & a_{3,3}\\ \end{array} \right) ==================== Failed. What's wrong? O_o
Obviously the end is ============= \end{document} =============
|
|
i dont know any LaTeX, but from what i can gather from a quick google, you need to add \usepackage{amsmath}
|
It works for me. Did you remember to enable math mode by enclosing the matrix within \[ and \] (or $ and $)?
|
Oh, THAT latex, I was expecting something different
|
Edit: Works fine for me oO What programs are you using?
|
is this the entire document?
|
United States47024 Posts
Its worth posting what error it gives you instead of just saying "this fails".
|
I thought this would be about a porn movie or something.
|
You just forgot to start/end math mode when starting your matrix (just missing the \[ \])
\[ \left( \begin{array}{ccc} a_{1,1} & a_{1,2} & a_{1,3}\\ a_{2,1} & a_{2,2} & a_{2,3}\\ a_{3,1} & a_{3,2} & a_{3,3}\\ \end{array} \right) \]
should work.
|
Was really expecting photos of Trinity in latex...
|
On May 06 2009 08:37 404.Delirium wrote: Was really expecting photos of Trinity in latex...
Ditto.
|
For matrices, it's usually easier to use pmatrix and bmatrix from the amsmath package.
\documentclass[12pt]{article} \usepackage{amsmath}
\begin{document} \[ \begin{pmatrix} a_{1,1} & a_{1,2} & a_{1,3}\\ a_{2,1} & a_{2,2} & a_{2,3}\\ a_{3,1} & a_{3,2} & a_{3,3} \end{pmatrix} \]
\[ \begin{Bmatrix} a_{1,1} & a_{1,2} & a_{1,3}\\ a_{2,1} & a_{2,2} & a_{2,3}\\ a_{3,1} & a_{3,2} & a_{3,3} \end{Bmatrix} \]
\[ \begin{bmatrix} a_{1,1} & a_{1,2} & a_{1,3}\\ a_{2,1} & a_{2,2} & a_{2,3}\\ a_{3,1} & a_{3,2} & a_{3,3} \end{bmatrix} \]
\[ \begin{Vmatrix} a_{1,1} & a_{1,2} & a_{1,3}\\ a_{2,1} & a_{2,2} & a_{2,3}\\ a_{3,1} & a_{3,2} & a_{3,3} \end{Vmatrix} \]
\[ \begin{vmatrix} a_{1,1} & a_{1,2} & a_{1,3}\\ a_{2,1} & a_{2,2} & a_{2,3}\\ a_{3,1} & a_{3,2} & a_{3,3} \end{vmatrix} \] \end{document}
|
I'm guessing the last row doesn't need the "\\"
|
On May 06 2009 08:08 ShOoTiNg_SpElLs wrote: You just forgot to start/end math mode when starting your matrix (just missing the \[ \])
\[ \left( \begin{array}{ccc} a_{1,1} & a_{1,2} & a_{1,3}\\ a_{2,1} & a_{2,2} & a_{2,3}\\ a_{3,1} & a_{3,2} & a_{3,3}\\ \end{array} \right) \]
should work.
thx!
|
If I never need to write multiple matrices in a paper, I find it MUCH easier to add a new command at beginning so I don't have to worry about writing the structure over and over. Before the document start, put this:
\usepackage{amsmath} \newcommand{\bm}[1]{ \ensuremath{\begin{bmatrix} #1 \end{bmatrix} }
Then if you ever need a matrix, just write the entries in \bm{} like this:
\bm{ a_{1,1} & a_{1,2} & a_{1,3}\\ a_{2,1} & a_{2,2} & a_{2,3}\\ a_{3,1} & a_{3,2} & a_{3,3} }
The "ensure math" means you can use it inside or outside of your $'s without worrying about if you're in math mode or not. (Of course, you can use any shortcut you want instead of "\bm", and use any style matrix you want instead of "bmatrix")
|
51283 Posts
aww i thought this was about the movie the matrix done by people in latex suits
|
On May 06 2009 15:31 GTR wrote: aww i thought this was about the movie the matrix done by people in latex suits
me too
|
Since I am not the only one who was disappointed, I'll rescue this thread: + Show Spoiler +
|
YES thankyou h3r1n6. NOW thats what i was thinking.
|
|
|
|