I tried to create a new environment for this matrix(array)
Code: Select all
\[
F(x)=\left(\negthickspace
\begin{array}{cc}
\\[-6pt]
\dfrac{x}{2} & 0 \\[6pt]
0 & x^2\\[2pt]
\end{array}\negthickspace\right)
\]
Code: Select all
\begin{document}
\begin{matrice}
\item 1st
\item 2nd
\item 3rd
\item 4th
\end{matrice}
\end{document}
From a working example i figured out that it should be something like
Code: Select all
\newenvironment{matrice}{
% the first codebox copy-pasted here
}
pdflatex reports errors at the \item lines.
How do i relate the 1st,2nd...variables to the environment defined ?
Thanks.