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 have a document I am trying to copy to learn TeX. Here is what I have encountered:alt text How can I have the "or" in the equation. This is what I have right now:

\[ f = ma; \] 
But $a$ is the change in velocity,

\[ f = m \frac{dv}{dt};\]
\[ f = m  \frac{d^2y}{dt^2};\]

Edit: Trying out Stefan's answer alt text

share|improve this question
up vote 28 down vote accepted

Use the amsmath package and the commands \text{...} for text in the formula or \intertext{...} for text between the lines of multi-line formulas. For example:

  f &= ma;\\
\intertext{But $a$ is the change in velocity} 
  f &= m \frac{dv}{dt};\\
  f &= m  \frac{d^2y}{dt^2};

One advantage of align* to \[ ... \] is that you can align the equations on relation symbols.

If you wish to put or in the same line, you could use \text and flalign* :

  && f &= ma;&\\
\text{or} && f &= m \frac{dv}{dt};&\\
\text{or}  &&f &= m  \frac{d^2y}{dt^2};

flalign example

share|improve this answer
It dosn't work. It still gives me spaces in between. Check my original post for a picture. – masfenix Aug 13 '10 at 16:16
Sorry, can you explain what the $$ does – masfenix Aug 13 '10 at 16:22
$ opens and closes the inline math mode. $$ opens and closes displayed math mode. Both are TeX commands, not LaTeX. Or do you mean the && ? – Stefan Kottwitz Aug 13 '10 at 16:24
oh, yea sorry. I meant teh && – masfenix Aug 13 '10 at 16:27
& is used both for specifying the alignment position and as column separator, alternating. In columns of formulas, &= means that at = would be aligned, a following & would end the column, like in a table. && has been used to skip a column, i.e. to create an empty column. – Stefan Kottwitz Aug 13 '10 at 16:53

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.