[Tex/LaTex] Nested Enumerate

#enumeratelists

How can I create the following format?

i. Header 1

I. Ex 1 to be used later in the text

ii. Header 2

II. Ex 2 to be used later in the text

iii. Header 3

III. Ex 3 to be used later in the text

Hope this help. Image of what I am looking for

Best Answer

I hope this helps (under the assumption that you are trying to create a continuous list of enumerated which are nested, based on your example).

By invoking enumitem package and using resume option, you can achieve what you (might) want.

\documentclass[12pt]{article}
\usepackage{enumitem}
\begin{document}
    \begin{enumerate}
        \item a
\begin{enumerate}
  \item One
  \item Two
  \end{enumerate}  
\item b
\begin{enumerate}[resume]
  \item Three
\end{enumerate}\end{enumerate}
\end{document} 

which gives you

enter image description here

You can play with the type of counters to change their apperance :)

As OP requested,

Update in MWE:

\documentclass[12pt]{article} 
\usepackage[shortlabels]{enumitem}
\begin{document}
     \begin{enumerate}[i.]
         \item afd
         \begin{enumerate}[I] 
            \item mv
        \end{enumerate} 
        \item jh
        \begin{enumerate}[resume*] 
            \item lgh
        \end{enumerate} 
    \item lkgh
    \begin{enumerate}[resume*]
        \item 
    \end{enumerate} 
\end{enumerate} 
\end{document} 

to get: (not able to upload the images)

https://imgur.com/kh3gfbT