Quantcast
Channel: Question about enumitem, suspend/resume enumeration, last item of list, nested list - TeX - LaTeX Stack Exchange
Viewing all articles
Browse latest Browse all 4

Question about enumitem, suspend/resume enumeration, last item of list, nested list

0
0

How do I suspend / resume an item of a list, multiple levels, if it is the last item of the list?

\documentclass{article}\usepackage{enumitem}\begin{document}\begin{enumerate}    \item first level    \begin{enumerate}        \item second level        \begin{enumerate}            \item third level            \begin{enumerate}                \item fourth level                Text outside of enumerate            \end{enumerate}        \end{enumerate}    \end{enumerate}\end{enumerate}\end{document}

Specifically, how do I move "Text outside of enumerate" outside one level (equal to the third level), outside two levels (equal to the second level), outside three levels (equal to the first level)?

I am unable to simply enclose "Text outside of enumerate" inside a \end{enumerate} and \begin{enumerate}[resume] because there are issues with starting an enumerate environment and then immediately ending it without any items.

I have also investigated the usage of \item[]. If I try using it at the end of the list, it appears a blank vertical line is produced, similar to \phantom but with a vertical blank line.


Viewing all articles
Browse latest Browse all 4

Latest Images

Trending Articles





Latest Images