I would like to write a list environment that only writes the non-empty items, but with the same label that would have appeared if that item was non-empty.
This is what I have:
Code: Select all
\documentclass{book}
\newcounter{mnum}
\newenvironment{mlist}{\setcounter{mnum}{0} % 1) 2) 3)
\begin{list}{\thechapter.\arabic{mnum})}{\usecounter{mnum}\rightmargin=6mm
\labelwidth=7mm\labelsep=2mm\setlength{\parsep}{\parskip}
\setlength{\listparindent}{\parindent}
\partopsep=0cm}}{\end{list}}
\begin{document}
\chapter{Test}
\begin{mlist}
\item
\item second item second item second item second item second item second item second item second item second item second item
\item third
\item
\item fifth
\item
\item
\item eight
\item
\end{mlist}
\end{document}
I would like to have a new list environment that typeset something like the following animation does:
\documentclass{book}
\begin{document}
\noindent I want it to automatically generate this:
\begin{description}
\itemsep=0in
\item[\normalfont 1.2)] second item second item second item second item second item second item second item second item second item second item
item[\normalfont 1.3)] third
\item[\normalfont 1.5)] fifth
\item[\normalfont 1.8)] eight
\end{description}
\end{document}
--Mo Ghodsi