Simple LaTeX question, line-spacing equations

  • Context: LaTeX 
  • Thread starter Thread starter binbagsss
  • Start date Start date
  • Tags Tags
    Latex
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
4 replies · 2K views
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\\.