Multiple alignment points in LaTeX

Click For Summary
SUMMARY

This discussion addresses the challenge of aligning multiple equations in LaTeX using the align or alignat environments. The user seeks to format two strings of equalities such that the second string aligns correctly beneath the first, despite the first string spanning two lines. The proposed solution suggests using separate align environments instead of a single align or alignat environment, as the latter may not support the desired formatting. The discussion highlights the limitations of the align and alignat environments in achieving complex multi-line alignment.

PREREQUISITES
  • Familiarity with LaTeX typesetting
  • Understanding of the align and alignat environments in LaTeX
  • Basic knowledge of mathematical notation in LaTeX
  • Experience with multi-line equations in LaTeX
NEXT STEPS
  • Explore the use of separate \begin{align}...\end{align} environments for complex alignments
  • Research advanced LaTeX packages for enhanced equation formatting, such as amsmath
  • Learn about the array environment for custom alignment options in LaTeX
  • Investigate LaTeX documentation on multi-line equation alignment techniques
USEFUL FOR

Mathematicians, researchers, and anyone involved in typesetting complex equations in LaTeX who require precise control over equation alignment.

Fredrik
Staff Emeritus
Science Advisor
Homework Helper
Insights Author
Gold Member
Messages
10,876
Reaction score
423
If I have two strings of equalities within the same align or alignat environment, and the first one is long enough to need two lines, I would want the result to look like
Code:
A+B+C=D=E
     =F=G=H
I=J
rather than
Code:
A+B+C=D=E
     =F=G=H
    I=J
Is there a way to do this? I suppose it can be done with an array, but I thought either align or alignat would be able to handle this. I get garbage results like these:

\begin{alignat}{3}
&F_k &=(f\chi_E)^{-1}(v_k)=\{x\in X|f(x)\chi_E(x)=v_k\}=\{x\in X|f(x)=v_k\}\cap E\\
&&=f^{-1}(v_k)\cap E=E_k\cap E\in\Sigma,\\
&\mu\big(F_k)=\mu(E_k\cap E)\leq\mu(E_k)<\infty.
\end{alignat}

\begin{alignat}{4}
&F_k && =(f\chi_E)^{-1}(v_k) =\{x\in X|f(x)\chi_E(x)=v_k\}=\{x\in X|f(x)=v_k\}\cap E\\
&&&=f^{-1}(v_k)\cap E=E_k\cap E\in\Sigma,\\
&\mu\big(F_k)=\mu(E_k\cap E)\leq\mu(E_k)<\infty.
\end{alignat}
 
Physics news on Phys.org
Have you tried using two separate \begin{align}...\end{align} environments? What you are trying to achieve, might not be possible within one environment.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 17 ·
Replies
17
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K