Math & Science ⇒ Align equations with multiple align points
Align equations with multiple align points
a + b = c + d
___e = f + g = h
___________= i + j
Please let me know the best way to do this. Thanks!
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
Re: Align equations with multiple align points
alignat
environment in the 
Re: Align equations with multiple align points
Any suggestions?
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Align equations with multiple align points
You can create nested structures using the "aligned" environment inside alignat. Or smash the width of some pieces like this, as a quick way:
Code: Select all
\documentclass{article}\usepackage{amsmath,mathtools}\begin{document}\begin{alignat*}{2}a &= \mathrlap{b + c + d + e + f} \\g &= h + i &&= j \\&&&= \mathrlap{k + l + m}\end{alignat*}\end{document}