Aligning numbers in a list [closed]

I am trying to align the numbers in a list as in the picture below. Currently when I do it the (i) and (ii) are aligned on the left just by starting a new line of code, but how do I get them to be aligned on the right?

• tex.stackexchange.com/questions/33334/… could be relevant. – Willie Wong Jul 9 '16 at 14:05
• I'm voting to close this question as off-topic because it turns out that this question is on MathJax actually (see the comments to the answer by Mico,please!) – user31729 Jul 9 '16 at 14:29

I suggest you load the enumitem package and define a dedicated enumerate-like list environment that uses lowercase-roman letters.

\documentclass{article}

\usepackage{enumitem}
\newlist{romanenum}{enumerate}{1}
\setlist[romanenum]{label=(\roman*)} % roman numerals, encased in parentheses

\begin{document}
\begin{romanenum}
\item For any natural number \dots
\item If $a,b,c,d\in M$, \dots
\end{romanenum}
\end{document}

• I am not writing the Latex in a document, so I don't think the new list and set list is going to work for me. Is there another way to do it? – user19405892 Jul 9 '16 at 14:17
• @user19405892: What do you mean you're not writing LaTeX in a document? Do you use ConTeXt or TeX? – user31729 Jul 9 '16 at 14:22
• @ChristianHupfer It is like Tex and used for writing Latex for a blog. But I can't use document class and things like that for some reason. – user19405892 Jul 9 '16 at 14:24
• @user19405892: It seems that your question is totally off-topic here -- looks like MathJax stuff then -- you should have provided this information in your question :-( – user31729 Jul 9 '16 at 14:26
• @user19405892 - TeX.SE is definitely not a MathJax site. I've voted to close the posting. – Mico Jul 9 '16 at 14:32