TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using the following format for all

newP = p + vt + 0.5a(t square)

How do I

  • from left justified to centrally justified
  • leave one blank line before and after the formula
  • leave a single space between symbols and
  • do this for all formulas at the same time
share|improve this question
math is the 'inline' environment, equivalent to \( ... \) (or $ ... $). You are probably looking for the equation* environment, or the shorter \[ ... \] version. – Joseph Wright Feb 11 '13 at 8:50
up vote 6 down vote accepted

A trivial example from which you can learn faster.

enter image description here

The position of a moving particle along the $x$-axis is given by,
x_t = x_0 + vt + \tfrac{1}{2}at^2
where $x_0$ represents the initial position, \ldots.

The speed can be obtained by derivating the position with respect to $t$ as follows,
\frac{\textrm{d}x_t}{\textrm{d}t} = v + at


  • Use \[...\] or \begin{equation*}...\end{equation*} to display an unnumbered equation.
  • Use \begin{equation}...\end{equation} to display a numbered equation.
  • Use \begin{align*}...\end{align*} or \[\begin{aligned}...\end{aligned}\] to display multiple rows of unnumbered horizontally-aligned equations.
  • Use \begin{align}...\end{align} to display multiple rows of numbered horizontally-aligned equations or \begin{equation}\begin{aligned}...\end{aligned}\end{equation} to display multiple rows of horizontally-aligned equations but only with one equation number.
share|improve this answer

You need the amsmath package for align*, so make sure you have the line \usepackage{amsmath} in your preamble (before \begin{document}).

newP = p + vt + 1/2at^2
share|improve this answer
Don't use align* for a single line equation; prefer \[...\] (or equation* if amsmath has been loaded). – egreg Feb 11 '13 at 10:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.