I'm using eqnarray to create multi line equations that show the steps of a problem, but I'm wondering how I can add descriptions to the ends of those lines? I've been using eqnarray* on and off to suppress/add labels, but adding a short text description, non math mode, to the right side of each line in the eqnarray would be really helpful.
Thanks for the help!
Math & Science ⇒ add descriptions to each line of a multiline equation?
-
- Posts: 4
- Joined: Sun Sep 12, 2010 9:44 pm
add descriptions to each line of a multiline equation?
Last edited by pythonscript on Mon Sep 13, 2010 7:03 pm, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

add descriptions to each line of a multiline equation?
Hi,
don't use eqnarray anymore (read Avoid eqnarray!). In its stead you can use align or some other environment from amsmath. Try something like this:
don't use eqnarray anymore (read Avoid eqnarray!). In its stead you can use align or some other environment from amsmath. Try something like this:
Code: Select all
Code, edit and compile here:
\documentclass{article}\usepackage{amsmath}\begin{document}\begin{align*}a(b + c) &= ab + ac && \text{(por distributividad)}\\&= ba + ca && \text{(por conmutatividad)}\\&= (b + c)a && \text{(por distributividad)}\end{align*}\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
-
- Posts: 4
- Joined: Sun Sep 12, 2010 9:44 pm
Re: add descriptions to each line of a multiline equation?
Thank you! That was extremely helpful and exactly what I was looking for.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
add descriptions to each line of a multiline equation?
Now that the problem is obviously solved, please be so kind and mark the topic accordingly as clearly written in Section 3 of the Board Rules (to be read before posting).
Best regards and welcome to the board
Thorsten
Best regards and welcome to the board
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10