Math & ScienceHow to leave some space between number and text?

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
yaozhao
Posts: 57
Joined: Sat Oct 27, 2018 10:38 pm

How to leave some space between number and text?

Post by yaozhao »

Code: Select all

\usepackage{amsmath}
\[P_E=5,000 \text{cents} \]
5000cents

I want 5000 cents.

Many thanks in advance!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10321
Joined: Mon Mar 10, 2008 9:44 pm

How to leave some space between number and text?

Post by Stefan Kottwitz »

Hi,

the easiest is having the space in the text part: \text{ cents}

Stefan
LaTeX.org admin
Post Reply