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?
Thanks for the help!
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
add descriptions to each line of a multiline equation?
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
\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}
-
- Posts: 4
- Joined: Sun Sep 12, 2010 9:44 pm
Re: add descriptions to each line of a multiline equation?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
add descriptions to each line of a multiline equation?
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10