[texhax] stupid enumerate question

SteveC steve at fractalus.com
Tue Jun 29 16:15:22 CEST 2004


how can I make 'hello' come out all the way to the left? It doesn't seem
to like nesting suspends...

\usepackage{enumerate}
\usepackage{mdwlist}

\begin{document}

\begin{enumerate}
\item blah 1
\item blah 2
\begin{enumerate}
\item nest 1
\item nest 2
\begin{enumerate}
\item double nest 1
\item double nest 2
\end{enumerate}
\suspend[blah]{enumerate}
hello
\resume[blah]{enumerate}
\item nest 3
\end{enumerate}
\item blah 3
\end{enumerate}
\end{document}


* Robin Fairbairns (Robin.Fairbairns at cl.cam.ac.uk) wrote:
> > I want to interrupt a nested enumerations a la
> > 
> > http://www.tex.ac.uk/cgi-bin/texfaq2html?label=interruptlist
> > 
> > which says you can suspend a given nested enumerate id with
> > \suspend[id]{enumerate}
> > 
> > how do I give enumerations ids so that I can tell suspend what to
> > suspend?
> 
> the faq answer shows you, but it could do with an example.  something
> like:
> 
> \begin{enumerate}
> \item blah 1
> \suspend[blah]{enumerate}
> here we are again
>   \begin{enumerate}
>   \item nest 1
>   \suspend[nest]{enumerate}
>   happy as can be
>   \resume[nest]{enumerate}
>   \item nest 2
>   \end{enumerate}
> \resume[blah]{enumerate}
> \item blah 2
> \end{enumerate}
> 
> this isn't entirely satisfactory, in fact.  as far as latex is
> concerned, the "nested" list is a top-level one, so there's no
> distinction about labels.
> 
> i can imagine circumstances where the facility might be useful,
> though...
> 
> i'll try and get an example into the faq in some future revision.
> 
> _______________________________________________
> TeX FAQ: http://www.tex.ac.uk/faq
> TeX newsgroup: http://groups.google.com/groups?group=comp.text.tex
> Mailing list archives: http://tug.org/pipermail/texhax/
> More links: http://tug.org/begin.html
> 
> Automated subscription management: http://tug.org/mailman/listinfo/texhax
> Human mailing list managers: postmaster at tug.org
> 
have fun,

SteveC steve at fractalus.com http://www.fractalus.com/steve/



More information about the texhax mailing list