1

I would like to create inline enumerate lists where each additional line after the first is progressively indented, forming a step-like pattern, as illustrated below. Is there any way to produce this effect automatically? In the MWE below I've set up some framework with enumitem, but any alternative solution would be acceptable.

\documentclass{article}
\usepackage{multicol}
\usepackage[inline]{enumitem}
\raggedright

\newlist{progressive}{enumerate*}{1}
\setlist[progressive]{label=(\Alph*)}

\begin{document}
\begin{multicols}{2}

Goal: Format a list to look like this:

(A)~Ordovician (B)~Devonian

\hspace*{18pt}(C)~Cambrian (D)~Silurian

\hspace*{36pt}(E)~Permian

while writing it like this:

\begin{progressive}
    \item Ordovician
    \item Devonian
    \item Cambrian
    \item Silurian
    \item Permian
\end{progressive}
\end{multicols}
\end{document}

I'd like the output to look something like the left column.

example result

1

enter image description here

\documentclass{article}

\setlength\textwidth{5cm}
\newcount\zzc
\newenvironment{progressive}{%
\par\raggedright
\def\item{\refstepcounter{enumi}(\Alph{enumi})~}%
{\global\zzc=0
\dimen0=0pt
\xdef\pshh{}
\loop
\xdef\pshh{\pshh\space\the\dimen0 \space \the\dimexpr\hsize-\dimen0\relax}%
\advance\dimen0 15pt
\global\advance\zzc 1
\ifdim\dimen0<\hsize
\repeat}%
\typeout{^^JXXX^^J\parshape \the\zzc\pshh}%
\parshape \zzc\pshh
\noindent\ignorespaces}
{\par}

\begin{document}



\begin{progressive}
    \item Ordovician
    \item Devonian
    \item Cambrian
    \item Silurian
    \item Permian
\end{progressive}

\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.