12
$\begingroup$

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.

$\endgroup$
26
$\begingroup$

Do you mean \mathrm{IX} perhaps? $\mathrm{IX}$?

There's a reason why the font family is called "Roman".

$\endgroup$
  • 2
    $\begingroup$ Or the alternative but more archaic {\rm IX}. $\endgroup$ – ja72 Dec 23 '19 at 20:23
3
$\begingroup$

$$\mathcal{D}_n^{\tiny\mathrm{(IX)}}$$ might work ? put \tiny\mathrm{(IX)} in the exponent. That at least makes it look similar size.

$\endgroup$
  • $\begingroup$ might bold it to make it look better. $\endgroup$ – Roddy MacPhee Dec 20 '19 at 0:59
  • 18
    $\begingroup$ $`` \texttt{\tiny} "$ may be a bit too small; if the size'd be reduced, probably just $`` \texttt{\small} ".$ $$ \begin{array}{|c|c|} \hline \left[\text{none}\right] & \mathcal{D}_{n}^{\left(\mathrm{IX}\right)} \\ \hline \texttt{\small} & \mathcal{D}_{n}^{\small{\left(\mathrm{IX}\right)}} \\ \hline \texttt{\Tiny} &\mathcal{D}_{n}^{\Tiny{\left(\mathrm{IX}\right)}} \\ \hline \texttt{\tiny} &\mathcal{D}_{n}^{\tiny{\left(\mathrm{IX}\right)}} \\ \hline \end{array} $$ $\endgroup$ – Nat Dec 20 '19 at 9:11
  • $\begingroup$ I was simply making a size comparison with the n . ${}^{\boldsymbol\tiny\mathrm{(IX)}}$ looks closer to the boldness probably $\endgroup$ – Roddy MacPhee Dec 20 '19 at 9:38
  • $\begingroup$ or resize the n $\endgroup$ – Roddy MacPhee Dec 20 '19 at 11:46
  • 1
    $\begingroup$ So you were trying to get the subscript and superscripts to match in size? I can appreciate the aesthetic motivation behind that, though the superscript's and subscript's sizes differ by so much that it's probably not reasonably viable to make them both about the same size. $\endgroup$ – Nat Dec 21 '19 at 3:09
  • 6
    $\begingroup$ @Nat: \scriptsize works, and would be the semantically correct choice here: $\mathcal{D}_n^{\scriptsize\mathrm{(IX)}}$. In this case, it appears to render slightly smaller than \small ($\mathcal{D}_n^{\small\mathrm{(IX)}}$) but slightly bigger than \Tiny ($\mathcal{D}_n^{\Tiny\mathrm{(IX)}}$). $\endgroup$ – Ilmari Karonen Dec 23 '19 at 1:05
  • $\begingroup$ You can also adjust the subscript writing placement with a forced space. $\endgroup$ – Roddy MacPhee Dec 23 '19 at 11:59
  • $\begingroup$ $\mathcal{D}_{\;n}^{\scriptsize\mathrm{(IX)}}$ $\endgroup$ – Roddy MacPhee Dec 27 '19 at 17:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .