LaTeX Solving Line Breaking Issues in LATEX

AI Thread Summary
In the discussion, a user seeks help with formatting equations in LaTeX, specifically regarding line breaks in long equalities. They initially attempt to use the `multline` environment but encounter issues. Other participants suggest using the `align` environment for better alignment and readability. A key point raised is the use of `\\` for line breaks instead of `\cap`. When the user tries the `align` environment, they notice unwanted equation numbers appear on the right side of each equality. The solution provided is to use the `align*` environment to avoid numbering. Additionally, there is mention of an analogous aligned environment that can be used for subformulas, with a recommendation to consult the User’s Guide for the amsmath package for further details.
evinda
Gold Member
MHB
Messages
3,741
Reaction score
0
Hello! (Wave)

I am writing a text in LATEX.
Since the equalities I wrote are longer than the paper's size, I tried to break the line as follows, but it failed.
[m]\begin{multline} [/m]
y'=y+4 \pi \cos(4 \pi t)y \Rightarrow y'=(1+ 4 \pi \cos(4 \pi t))y \cap
\Rightarrow \frac{dy}{dt}=(1+ 4 \pi \cos(4 \pi t))y \cap
\Rightarrow \frac{dy}{y}=(1+ 4 \pi \cos(4 \pi t)) dt
[m]\end{multline} [/m]Why? What could I do?
 
Last edited:
Physics news on Phys.org
You should probably use [m]\\[/m] instead of [m]\cap[/m].

Personally, I think alignment works better here.

\begin{align}
&y'=y+4 \pi \cos(4 \pi t)y\\
&\quad\implies y'=(1+ 4 \pi \cos(4 \pi t))y\\
&\quad\implies \frac{dy}{dt}=(1+ 4 \pi \cos(4 \pi t))y\\
&\quad\implies \frac{dy}{y}=(1+ 4 \pi \cos(4 \pi t)) dt
\end{align}
 
Evgeny.Makarov said:
You should probably use [m]\\[/m] instead of [m]\cap[/m].

Yes, this would work...

Evgeny.Makarov said:
Personally, I think alignment works better here.

\begin{align}
&y'=y+4 \pi \cos(4 \pi t)y\\
&\quad\implies y'=(1+ 4 \pi \cos(4 \pi t))y\\
&\quad\implies \frac{dy}{dt}=(1+ 4 \pi \cos(4 \pi t))y\\
&\quad\implies \frac{dy}{y}=(1+ 4 \pi \cos(4 \pi t)) dt
\end{align}

I tried it and I got this:
View attachment 4214Why do the numbers appear at the right side of each equality? How could we get rid of them?
 

Attachments

Last edited:
To avoid equation numbers, use the environment [m]align*[/m] instead of [m]align[/m]. There is also an analogous [m]aligned[/m] environment that does not occupy the whole width of the line and can be used as a subformula in other formulas. You can read about these environments in the User’s Guide for the amsmath Package (search for it).
 

Similar threads

Replies
1
Views
2K
Replies
2
Views
2K
Replies
4
Views
1K
Replies
1
Views
3K
Replies
7
Views
3K
Replies
9
Views
2K
Back
Top