I need help getting enumitem's resume option to work with newenvironment. Here's an example where the first two enumeration's resume option is not working but the last two is working:
Code: Select all
\documentclass{article}\usepackage{enumitem}\newenvironment{pvn}[1]{\begin{enumerate}[resume,label=#1\arabic*]}{\end{enumerate}}\begin{document}Not working:\begin{pvn}{d}\item bla\end{pvn}\begin{pvn}{d}\item bla % I want this label to be 'd2'\end{pvn}Working:\begin{enumerate}[resume,label=d\arabic*]\item bla\end{enumerate}\begin{enumerate}[resume,label=d\arabic*]\item bla\end{enumerate}\end{document}