5

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?

6
  • Load amsmath and use \text{Compress Ratio} Nov 2, 2013 at 19:08
  • 1
    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?
    – mahmood
    Nov 2, 2013 at 19:10
  • Or just type \mbox{Compress Ratio} without the amsmath package
    – Ludovic C.
    Nov 2, 2013 at 19:10
  • Without an MWE we don't have a clue why they are bold. Please provide an MWE.
    – marczellm
    Nov 2, 2013 at 19:11
  • 1
    Is this answer useful in your case?
    – Ludovic C.
    Nov 2, 2013 at 19:12

2 Answers 2

6

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.

3

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

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