[Tex/LaTex] no space between words in equation

equations

I wrote a simple equation like this

\begin{equation}
  Compress Ratio = \frac{n-u} {n} \times 100
\end{equation}

However in the output there is no "space" between Compress and Ratio and they are concatenated.

How can I fix that?

Best Answer

You should do this:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
 \text{Compress Ratio}=\frac{n-u} {n} \times 100
\end{equation}
\end{document}

I would rather do this:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
 C=\frac{n-u} {n} \times 100
\end{equation}
where $C$ denotes the compress ratio.
\end{document}

Always remember to typeset all math inside math environments $x$ etc., and put the least possible text inside.