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

Discussion Overview

The discussion revolves around resolving line breaking issues in LATEX, particularly in the context of formatting mathematical equations. Participants explore different environments and commands to achieve proper alignment and avoid unwanted equation numbering.

Discussion Character

  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant suggests using \\ instead of \cap for line breaks in equations.
  • Another participant proposes that alignment using the align environment may be more effective for formatting the equations.
  • A participant expresses confusion about the appearance of equation numbers when using the align environment and seeks a solution to remove them.
  • Another participant recommends using the align* environment to avoid equation numbering and mentions an analogous aligned environment for subformulas.

Areas of Agreement / Disagreement

Participants generally agree on the use of different environments for formatting, but there is some uncertainty regarding the best approach to avoid equation numbering and the specific commands to use.

Contextual Notes

Some participants reference the User’s Guide for the amsmath Package for further information on environments, indicating that there may be additional details or nuances not fully explored in the discussion.

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