Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I try to write a multiplication dot and use \cdot, 4 = 2/cdot{2}. But I get the error message Missing $ inserted. What have I forgotten?

share|improve this question
Math mode? $4 = 2\cdot2$? Please provide a minimal working example (MWE) which will reproduce your error when compiled. –  Holene May 11 '13 at 8:46

1 Answer 1

TeX and its various derivatives (such as LaTeX) distinguish between normal prose (text mode) and mathematics (math mode). The simplest and original way to switch between the two is to use the math switch, which is $.

Here is a sample document to show you how it is typically used.


This is some normal text, written in text-mode. In between dollar signs,
such as $ x = \frac{1}{2} = \frac{10}{20} = \frac{2}{5} \cdot \frac{5}{4} $,
one may write mathematics (using macros that only work in math-mode, such
as \verb:\frac:). For displayed equations, which are centered and put on
their own line, you can put math in between \verb:\[: and \verb:\]:, like this:
\[ E = mc^2 \]
If you want to number equations or to align them horizontally in a particular way,
you should consider using environments such as \texttt{equation}, \texttt{align},
or \texttt{gather} from the \texttt{amsmath} package.

share|improve this answer

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.