Custom environment won't use align instead of eqnarray
- From: oatmealbrain <heafnerj@xxxxxxxxx>
- Date: Sun, 10 Jun 2012 17:16:54 -0700 (PDT)
I have the following minimal example in which I define a new environment named derivation. Initially, I used eqnarray in the definition of my new environment, but I now want to use align. When I do so, I get an error message saying "\begin{align} on input line 19 ended by \end{derivation}. How can I fix this? (Line 19 is \begin{derivation})
% !TEX TS-program = pdflatexmk
%
% Minimal Template Version 20120522
%
\documentclass{minimal}
\usepackage{amsmath}
\newenvironment{derivation}
{\setcounter{equation}{0}
\vspace{1.00cm}%
\begin{align}}
{\end{align}
\vspace{1.00cm}}%
\begin{document}
\begin{derivation}
\vectsub{v}{avg} &= \DbyDt[\vect{r}] \\
\Dvect{r} &= \vectsub{v}{avg} \Changein{t} \\
\vectsub{r}{final} - \vectsub{r}{initial} &= \vectsub{v}{avg} \Changein{t} \\
\vectsub{r}{final} &= \vectsub{r}{initial} + \vectsub{v}{avg} \Changein{t}
\end{derivation}
\end{document}
Joe
.
- Follow-Ups:
- Re: Custom environment won't use align instead of eqnarray
- From: Dan Luecking
- Re: Custom environment won't use align instead of eqnarray
- From: Ulrich D i e z
- Re: Custom environment won't use align instead of eqnarray
- From: Ulrich D i e z
- Re: Custom environment won't use align instead of eqnarray
- From: oatmealbrain
- Re: Custom environment won't use align instead of eqnarray
- Prev by Date: Re: pgf tikz pgfplots external - ocg -- compatibility issue (?)
- Next by Date: Re: Custom environment won't use align instead of eqnarray
- Previous by thread: Nike Air Max 90 Shoes,Nike air Jordan 3 4 5 6 7 8 9 10 11 12 Shoes (www.edoplaza.com)
- Next by thread: Re: Custom environment won't use align instead of eqnarray
- Index(es):