This is a follow up from a previous query.
Code:
\documentclass[12pt]{article}
\usepackage{enumitem}
\usepackage{diagbox}
\usepackage[margin=1in]{geometry}
\begin{document}
\begin{enumerate}[itemindent = {\widthof{\arabic.} + \labelsep}, leftmargin =]
\item Ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp but rather I would \addtocounter{enumi}{9}
\item Ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp but rather I would
\end{enumerate}
\end{document}
I would like to align the numbers by the most significant digit instead of the least significant digit (which is pretty common). However, it seems that the numbers are aligned by the least significant digit as shown below (and I’m getting an error; I’m using TeXpad):
How to align the numbers by the most significant digit as well as the multi-line content starting from the second line? The first one did well, but the second enumeration does not do as desired.
Addendum: Problem solved by Bernard. Now here is a case:
\documentclass[12pt]{article}
\usepackage{enumitem}
\usepackage{diagbox}
\usepackage[margin=1in]{geometry}
\begin{document}
\begin{enumerate}[wide = 0pt]
\item Ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp but rather I would \addtocounter{enumi}{9}
\item Ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp but rather I would
\item
\begin{enumerate}[wide = 0pt]
\item Ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp but rather I would
\item Ppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppppp but rather I would
\end{enumerate}
\end{enumerate}
\end{document}
Output:
Here, the nested enumerators aren’t aligned. Just wondering if there is a way to align the enumerators while aligning the “overflowing” lines at the most significant digit of the outer enumerator.




adjustwidthenvironment from thechangepagepackage, that allows for local modifications of the text horizontal margins. – Bernard Jan 03 '21 at 01:01enumitem. – Bernard Jan 03 '21 at 13:24