[Tugindia] Re: Help required
David Kastrup
David.Kastrup at t-online.de
Wed Jun 18 10:22:12 CEST 2003
"Manjunatha G." <manju at rri.res.in> writes:
> Hello!
> Pls help!
>
> I need to provide a veticle line before and after the equation.
> The command I have used below, which produced just a left curly
> bracket. Also, I need some space to provide between the each segment.
> eg. 1 \cdot 2 (space) 2 \cdot 1 (space) 1. What command should I use to
> produce
> these.
>
> \begin{eqnarray}
> S^2 = - \det \cases{1 \cdot 1 2 \cdot 1 3 \cdot 1 \cr
> 1 \cdot 2 2 \cdot 2 3 \cdot 2 \cr
> 1 \cdot 3 2 \cdot 3 3 \cdot 3}
> \end{eqnarray}
First of all, you should get yourself any introductory text about
LaTeX: eqnarray is not used in that way (you would need & characters
around the =, and, anyhow, it is pretty pointless for single
equations).
In general, I would recommend using amsmath.sty for any serious
typesetting of math, and it comes with instructions in amsldoc.dvi
(which can be read with
texdoc amsldoc
on teTeX-similar systems). In your case, probably something like
\begin{equation}
S^2 = - \left| \begin{array}{ccc}
1 \cdot 1 & 2 \cdot 2 & 3 \cdot 1\\
1 \cdot 2 & 2 \cdot 2 & 3 \cdot 2\\
1 \cdot 3 & 2 \cdot 3 & 3 \cdot 3
\end{array} \right|
\end{equation}
sould be appropriate.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
UKTUG FAQ: <URL:http://www.tex.ac.uk/cgi-bin/texfaq2html>
More information about the Tugindia
mailing list