[comp.text.tex] LaTeX: Embedding titles within {enumerate} lists

steve@ste.dyn.bae.co.uk (Steve Mallon) (10/10/90)

In LaTeX, I need to create a numbered list which is split into groups,
each with a title line, eg
	Group 1
	1. xxxxx
	2. yyyyy
	3. zzzzz

	Group 2
	4. aaaaa
	5. bbbbb

This is simple using \begin{enumerate} ... \end{enumerate}
if one doesn't want the first title -- but I do and LaTeX
complains about the lack of an \item in front of Group 1.

Can anyone suggest a way to achieve the required effect?
-- 
Steve Mallon				Voice: +44 438 753565
PB 230					FAX:   +44 438 753377
British Aerospace (Dynamics) Ltd.
PO Box 19				Email: smallon@ste.dyn.bae.co.uk
Six Hills Way
Stevenage
Herts SG1 2DA

duchier@cs.yale.edu (Denys Duchier) (10/12/90)

In article <1990Oct10.104855.16617@ste.dyn.bae.co.uk> steve@ste.dyn.bae.co.uk (Steve Mallon) writes:
 >    In LaTeX, I need to create a numbered list which is split into groups,
 >    each with a title line, eg
 > 	   Group 1
 > 	   1. xxxxx
 > 	   2. yyyyy
 > 	   3. zzzzz
 > 
 > 	   Group 2
 > 	   4. aaaaa
 > 	   5. bbbbb

How about this:

\begin{enumerate}
  \item [{\makebox[0pt][l]{\hspace{-\labelsep}Group 1}}]
  \item xxxxxx
  \item yyyyyy
  \item zzzzzz
\vspace*{1cm}
  \item [{\makebox[0pt][l]{\hspace{-\labelsep}Group 2}}]
  \item aaaaaa
  \item bbbbbb
\end{enumerate}

--Denys