00 Votes

MathJax: Space in Formula

Question by Guest | 2018-09-27 at 22:18

To display formulas on my website properly formatted, I am using MathJax.

The whole thing works wonderfully and the formatted formulas are looking really good. However, now I have the problem that I want to use a space within a formula. It's about things like "Number Of Months". But MathJax always makes "NumberOfMonths" out of it and deletes spaces or does not even show them in the formula. What can I do?

ReplyPositiveNegative
Avatar
1Best Answer1 Vote

A space is represented with a tilde ~ in a MathJax formula.

So just write in your formula "number~of~months" if you want to have "number of months".
2018-09-28 at 20:16

ReplyPositive Negative
Reply

Related Topics

Important Note

Please note: The contributions published on askingbox.com are contributions of users and should not substitute professional advice. They are not verified by independents and do not necessarily reflect the opinion of askingbox.com. Learn more.

Participate

Ask your own question or write your own article on askingbox.com. That’s how it’s done.