# How can I write roman numbers in MathJax?

I need to write roman numbers in MathJax. I've tried almost every way. But, then I decided to copy the symbol itself. But it looks very ugly.

For example,

$$\displaystyle \mathcal {D}^{{\left(II \right)}}_n$$

I tried LaTex syntax. \rom. But, unfortunately it doesn$$$$t work.

Do you mean \mathrm{IX} perhaps? $$\mathrm{IX}$$?
• Or the alternative but more archaic {\rm IX}`. Dec 23 '19 at 20:23