LaTeX Simple LaTeX question, line-spacing equations

  • Thread starter Thread starter binbagsss
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary
To prevent automatic labeling of equations in LaTeX, use the asterisk (*) in environments like align or equation. For left or right alignment, the flalign environment can be utilized, allowing equations to be pushed to the left with the ampersand (&) symbol. Alternatively, for displaying two equations side by side, the minipage environment is effective. If numbering is needed for the last line of a multi-line equation, remove the asterisk and use \nonumber at the end of each line. To simplify this process, a new command can be defined at the beginning of the document for easier usage.
binbagsss
Messages
1,291
Reaction score
12
So the only way I know is

\ begin{align}
f &= ma\\
E &= mc^2\\
\ pi &\ text{ is exactly three!}
\ end{align},

But this labels them, and I don't want them labelled...Any assistance really appreciated, thank you !
 
Physics news on Phys.org
To stop the (1.2) and so on labeling, simply add the * symbol.
\ begin{align*}
yourformula
\ end{align*}
Rather than align, you can also use {equation*}
 
Totally said:
To stop the (1.2) and so on labeling, simply add the * symbol.
\ begin{align*}
\ end{align*}
thank you so much , and is there anyway to quickly align it to the left or right rather than the centre?
 
Well, you could use & to push everything to the left in flalign.
\ begin{flalign*}
a &= bcdef & \\
&= ghij + klmn
\ end{flalign*}

Or if you want two formulas in single line on left and right, you could use minipage

\ begin{minipage}{0.5\linewidth}
\ begin{equation*}
Q=\frac{W}{\eta}=\frac{P\frac{d}{v}}{\eta}
\ end{equation*}
\ end{minipage} \hspace{0.5cm}
\ begin{minipage}{0.5\linewidth}
\ begin{equation*}
m=\frac{Q}{e}=\frac{Pd}{v\eta e}
\ end{equation*}
\ end{minipage} \hspace{0.5cm}
 
Sometimes you will probably want the last line to be numbered. Then you can remove the * (i.e. use align rather than align*) and end each line with \nonumber\\ instead of just \\. It gets annoying to type that every time, so you also consider adding something like "\newcommand{\nn}{\nonumber}" to the start of your LaTeX document. Now you can end each line with \nn\\.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
6K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 11 ·
Replies
11
Views
8K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 6 ·
Replies
6
Views
2K