On Monday 04 June 2007 04:47, you wrote:
> To put text in equations, I use \mbox
> Jean

Thanks Jean,

I tested that and it works, but stuff doesn't line up the way I'd like. What 
I'd really like is an \eqnarray* with 4 columns instead of 3, so I could do 
something like this:

\begin{eqnarray*}
 2x+y&=&z\qquad\qquad &\mbox{this is the explanation}\\
 31x+64y&=&71z\qquad\qquad &\mbox{another explanation}\\
\end{eqnarray*}


That would work perfectly, but I get this error if I put in three & symbols on 
a line:

! LaTeX Error: Too many columns in eqnarray environment.

If I remove the & before the equal sign, it compiles, with the equal signs 
under each other, and the explanations all lined up perfectly, but the right 
sides of the equations don't line up, but instead are centered under each 
other, which looks confusing to the reader.

I could do it with a separate minipage for all the explations, but that would 
require huge amounts of ERT, I would think. It would completely separate the 
explanations from the equations they explain. Doing it that way would be very 
hard in LyX, be unreadable or confusing in LyX, and probably require lots of 
ERT.

So if anyone knows how to get a four column \eqnarray*, please let me know.

SteveT

SteveT


>
> Le 2 juin 07 à 17:15, Steve Litt a écrit :
> > Hi all,
> >
> > I'd like to have an explanation to the left of each equation,
> > something like
> > this:
> >
> > 2x +4 = 3x -14      Given
> > 2x +4 - 4 = 3x - 14 -4       Subtract 4 from each side
> > 2x = 3x - 18            Simplify
> > 2x - 3x = 3x - 18 - 3x     Subtract 3x from each side
> > -1x = -18              Simplify
> > x = 18                 Multiply both sides by -1
> >
> > How do I do that?
> >
> > Thanks
> >
> > SteveT
> >
> > Steve Litt
> > Author: Universal Troubleshooting Process books and courseware
> > http://www.troubleshooters.com/

Reply via email to