I have a list like this one:
I do not want to have spacing between lines (2) and (a), but I would like to keep spacing between (1) and (2) and between (b) and (3) (as on the photo). I tried to solve it by using LaTeX enumitem command \begin{enumerate}[topsep=-5pt] as shown below. I am interested in a similar command that can be used without giving the actual number for space height (-5pt), something like nosep (this one does not work) or so.
\documentclass{article} \usepackage{enumitem} \begin{document} \begin{enumerate}[label={(}\arabic*{)}] \item Random text \item Random text \begin{enumerate}[nolistsep,topsep=-5pt] \item Random text \item Random text \end{enumerate} \item Random text \end{enumerate} \end{document} 

