Consider the following code:
\documentclass{article}
\usepackage{enumitem}
\setlist[enumerate,1]{label = \bfseries \Alph*.}
\setlist[enumerate,2]{label = \bfseries \Alph{enumi}.\arabic*}
\setlist[enumerate,3]{label = \bfseries \Alph{enumi}.\arabic{enumii}.\alph*.}
\begin{document}
\begin{enumerate}
\item
\begin{enumerate}
\item
\begin{enumerate}
\item
\item
\end{enumerate}
\end{enumerate}
\end{enumerate}
\end{document}
Is there a way to make \item
detects it is followed by another enumerate
environment so that it does not print its label? I could then get something like:
[3rd level indent]A.1.a
[3rd level indent]A.1.b
I'd like the solution being compatible with enumitem
.
\item
. It should not be necessary for\item
to look ahead. – David Carlisle Feb 21 '17 at 12:19enumitem
(as I expected, because\makelabel
is based on\llap
). – Javier Bezos Feb 21 '17 at 15:50\makelabel
only usesllap
as it "knows" space has been left for the label... – David Carlisle Feb 21 '17 at 16:08