TeX - LaTeX Asked by Chaitanya Tappu on January 9, 2021
Within the span of half of a page, the User’s Guide for the amsmath
Package gives conflicting assertions about whether the equation
or align
or gather
environment housing the split
structure can contain only one equation or multiple equations.
Well, which is it?
Also, what is a good way to split multiple long equations in an align
environment?
Here is an MWE try:
It has three equations, two of which have long right-hand-sides that need to be split over multiple lines. There should be only three equation numbers on the left side
begin{align}
framebox[0.3columnwidth]{eqn 1 LHS} &= framebox[.4columnwidth]{eqn 1 RHS 1}
&hphantom{=} + framebox[.4columnwidth]{eqn 1 RHS 2}
framebox[.25columnwidth]{eqn 2 LHS} &= framebox[.35columnwidth]{eqn 2 RHS}
framebox[0.35columnwidth]{eqn 3 LHS} &= framebox[.35columnwidth]{eqn 3 RHS 1}
&hphantom{=} + framebox[.35columnwidth]{eqn 3 RHS 2}
end{align}
You asked,
Can the
split
environment be used for only one equation?
Using the sentence you highlighted in yellow, I believe the answer should be
A
split
environment should contain the entire body of the enclosing structure.
What may give rise to confusion is the term "structure". Consider the case of
a = b
= c
which I trust can be accepted as an example of a particular structure, viz., a two-line equation. Now consider three different ways to typeset this two-line equation/structure. The first uses split
, with split
enclosing the entire structure; the second uses aligned
; and the third tries to mimic the second but with the use of split
. The first two ways succeed, whereas the third quite obviously does not. Observe also that I could have placed the first two structures in independent equation*
environments without provoking a change in the way the structures end up getting typeset.
documentclass{article}
usepackage{amsmath}
begin{document}
begin{gather*}
begin{split} % this is ok
a &= b
&= c
end{split}[1ex]
a begin{aligned}[t] % this is ok too
&= b
&= c
end{aligned}
end{gather*}
[
a begin{split} % this is not ok
&= b
&= c
end{split}
]
end{document}
Correct answer by Mico on January 9, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP