I'm new to Latex and all it's glory.
What am I doing wrong here?
\begin{eqnarray}
\left[ \begin{array}{c}
C_{\alpha}^{+} (x_o +\ell) \\
. \\
. \\
_____ \\
C_{\alpha}^{-} (x_o) \\
. \\
. \\
\end{array} \right]
Math & Science ⇒ What is wrong with this?
NEW: TikZ book now 40% off at Amazon.com for a short time.

- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
What is wrong with this?
Hi charlejs,
welcome to the board!
Stefan
welcome to the board!
- you used _____, however the underscore _ has a meaning in LaTeX for writing subscripts
- you forgot to close the eqnarray environment
- the code is incomplete, \documentclass missing etc.
- you don't need eqnarray for a simple expression with an array
- eqnarray is obsolete, see eqnarray vs. align
- you could use a matrix environment instead of array
Code: Select all
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\[
\begin{bmatrix}
C_{\alpha}^{+} (x_o +\ell) \\
. \\
. \\
. \\
C_{\alpha}^{-} (x_o) \\
. \\
. \\
\end{bmatrix}
\]
\end{document}
LaTeX.org admin
Re: What is wrong with this?
Thanks for the response. I'll look at using the bmatrix structure that you gave me the example for. I have plenty of matrices to write. And good to know eqnarray is obsolete. Some background, I'm making changes to a 9 year old Latex document.