Horizontal alignment of items across environments

Horizontal alignment of items across environments

Here is a MWE:

\documentclass{article}
\begin{document}

\section*{First}

\begin{enumerate}
\item Item 1
\item Item 2
\end{enumerate}

\section*{Second} 

\begin{enumerate}
\item[] Item 1
\item[] Item 2
\end{enumerate}


\end{document}

I want the numbering for the first enumerate environment but not for the second; meanwhile, want the items in both to be horizontally aligned (taking into account the numbers in the first environment), i.e., I want them to have the same amount of indentation. Below is the picture that shows what the solution should look like:

enter image description here

In case of numbers with two more digits, I want the numbers left aligned. Thank you in advance.

답변1

waiting on your response to my comment above, i assume, that enumerate has only one digit numbers followed by dot. in this case it is possible tweak the following (approximation of your image):

enter image description here

\documentclass{article}
\usepackage{enumitem}

\begin{document}
\section*{First}
    \begin{enumerate}[labelwidth=2.2ex, labelsep=1ex]
\item Item 1
\item Item 2
    \end{enumerate}

\section*{Second}
    \begin{enumerate}[labelwidth=2.2ex, labelsep=1ex,
                      label={}, leftmargin=\dimexpr\labelsep+\labelwidth\relax]
\item Item 1
\item Item 2
    \end{enumerate}
\end{document}

addendum:

after your clarification and simplification of requested features, see if the following solution fulfill them:

\documentclass{article}
\usepackage{enumitem}
\setlist[enumerate]{labelwidth=3ex, labelsep=1ex, align=left,
                    leftmargin=4em}
\newlist{quoteitem}{enumerate}{1}% <-- defined new list
\setlist[quoteitem]{label={}}

\usepackage{lipsum}

\begin{document}
\section*{First}
\lipsum[11]
    \begin{enumerate}
\item \lipsum*[11]
\item[99.] Item 2
    \end{enumerate}

\section*{Second}
\lipsum[11]
    \begin{quoteitem}
\item \lipsum*[11]
\item Item 2
    \end{quoteitem}
\end{document}

enter image description here

답변2

\documentclass{article}

\usepackage{enumitem}

\begin{document}

\section*{First}

\begin{enumerate}
\item Item 1
\item Item 2
\item Item 1
\item Item 2
\item Item 1
\item Item 2
\item Item 1
\item Item 2
\item Item 1
\item Item 2
\end{enumerate}

\section*{Second} 

\begin{enumerate}
\item[\hspace*{\labelwidth}] Item 1
\item[\hspace*{\labelwidth}] Item 2
\end{enumerate}


\end{document}

enter image description here

관련 정보