[Tex/LaTex] indentation for nested lists and short labels with enumitem

enumitemindentation

I am trying to have a nested list with a label, using the enumitem package with the "shortlabels" option. But when I add the label "Note" to the list items, the indentation is aligned with the number instead with the start of the label "Note".

 \documentclass[]{article}%
    \usepackage[shortlabels]{enumitem}



\begin{document}

Here's my first list, which has the label ``Note'', but the indentation is too far to the left:

\begin{itemize}
\item First item
\item Second item
        \begin{enumerate}[{Note} 1:]
        \item First nested item
        \item Second nested item
        \end{enumerate}
\item Third item
\end{itemize}

Here's a second list, showing the proper indentation of the nested list when there is no ``Note'' label:

\begin{itemize}
\item First item
\item Second item
        \begin{enumerate}
        \item First nested item
        \item Second nested item
        \end{enumerate}
\item Third item
\end{itemize}


\end{document}

enter image description here

Best Answer

enumerate labels are right aligned. That means that if they get longer they stick out to the left. You can change this with the align key:

 \documentclass[]{article}%
    \usepackage[shortlabels]{enumitem}



\begin{document}

Here's my first list, which has the label ``Note'', but the indentation is too far to the left:

\begin{itemize}
\item First item
\item Second item
        \begin{enumerate}[{Note} 1:,align=left]
        \item First nested item
        \item Second nested item
        \end{enumerate}
\item Third item
\end{itemize}

Here's a second list, showing the proper indentation of the nested list when there is no ``Note'' label:

\begin{itemize}
\item First item
\item Second item
        \begin{enumerate}
        \item First nested item
        \item Second nested item
        \end{enumerate}
\item Third item
\end{itemize}


\end{document}

enter image description here