How can I make this image:
Result with MathJax
{}_{88}^{226}\mathrm{Ra},\;{}_6^{12}\mathrm C,\;{}_{14}^{30}\mathrm{Si},\;{}_{92}^{235}\mathrm U
Subscripts and superscripts are aligned to the left.
If centering them is enough for you, then you can use smallmatrix
:
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML"></script>
$$
\begin{smallmatrix}
112 \\
4
\end{smallmatrix}
\mathrm{Ra}
$$
But if you want them aligned to the right, I think your only option is using array
, but then the numbers appear too separated.
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML"></script>
$$
{
\scriptsize
\begin{array}{r}
112 \\
4
\end{array}
}
\mathrm{Ra}
$$