Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Formatting fraction fir display

I’m formatting fraction with MathJax and are having problem displaying it properly.

$disp = '<h1>$${{10 \over 9 }} of 99 $$</h1><br>';
echo $disp;

enter image description here
For some reason, i cannot get a space before and after the word ‘of’. Any pointers is greatly appreciated. Thanx in advance.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Usually, \ keep the space between letters.

$disp = '<h1>$${{10 \over 9 }}\ of\ 99 $$</h1><br>';

Reference – Spacing in math mode

space

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading