jbezos / enumitem

Customize enumerate, itemize and description
MIT License
45 stars 5 forks source link

before/after/first confusion #30

Closed kalekje closed 2 years ago

kalekje commented 2 years ago

Can it be confirmed/clarified that the following is true when using the before, after, and first keys? Additionally, may I suggest the addition of a last or final key to inject something before itemize/enumerate is ended? See below:

<before>
\begin{itemize}
<first>
\item
<last>  --- Feature request
\end{itemize}
<after>
muzimuzhi commented 2 years ago

Combine all these, input

\begin{itemize}
  <env content>
\end{itemize}

is more or less equivalent to

<some settings>
\list{<labeling>}{<spacing settings> <before>}
  <first>
  <env content>
  <after>
\endlist
<some settings>

You can find some intro to \list here: https://latexref.xyz/list.html.