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!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
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: 10350
- 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}