Solving Line Breaking Issues in LATEX

  • Context: LaTeX 
  • Thread starter Thread starter evinda
  • Start date Start date
  • Tags Tags
    Issues Latex Line
Click For Summary
SUMMARY

This discussion addresses line breaking issues in LATEX when formatting equations. Users encountered problems with the multline environment and were advised to use the align environment for better alignment and readability. To suppress equation numbering, the align* environment is recommended. The conversation highlights the importance of using the correct environments for optimal formatting in LATEX documents.

PREREQUISITES
  • Familiarity with LATEX syntax and environments
  • Understanding of the amsmath package functionalities
  • Knowledge of equation formatting and alignment in LATEX
  • Basic experience with mathematical typesetting
NEXT STEPS
  • Explore the amsmath package documentation for advanced formatting options
  • Learn about the differences between multline and align environments
  • Research how to use the align* environment to suppress equation numbering
  • Investigate other LATEX environments for specific mathematical formatting needs
USEFUL FOR

Researchers, students, and professionals who are writing technical documents in LATEX, particularly those focusing on mathematical equations and formatting.

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 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 9 ·
Replies
9
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K