Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

LaTeX Simple LaTeX question, line-spacing equations

  1. Mar 16, 2015 #1
    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 dont want them labelled........

    Any assistance really appreciated, thank you !
  2. jcsd
  3. Mar 16, 2015 #2
    To stop the (1.2) and so on labeling, simply add the * symbol.
    \ begin{align*}
    \ end{align*}
    Rather than align, you can also use {equation*}
  4. Mar 16, 2015 #3
    thank you so much , and is there anyway to quickly align it to the left or right rather than the centre?
  5. Mar 16, 2015 #4
    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*}
    \ 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}
  6. Mar 27, 2015 #5


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    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\\.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook