# no space between words in equation [duplicate]

I wrote a simple equation like this

$$Compress Ratio = \frac{n-u} {n} \times 100$$


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

How can I fix that?

• Load amsmath and use \text{Compress Ratio} Nov 2, 2013 at 19:08
• Yes that works however the the final text in the pdf is not bold. Symbols such as u and n are bold. 100 and Compress Ratio are not bold. Is that normal? Nov 2, 2013 at 19:10
• Or just type \mbox{Compress Ratio} without the amsmath package Nov 2, 2013 at 19:10
• Without an MWE we don't have a clue why they are bold. Please provide an MWE. Nov 2, 2013 at 19:11
• Is this answer useful in your case? Nov 2, 2013 at 19:12

You should do this:

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


I would rather do this:

\documentclass{article}
\usepackage{amsmath}
\begin{document}
$$C=\frac{n-u} {n} \times 100$$
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.

\mbox{Compress Ratio} when you are inside math.