Hi Simon,

Here is a quick hack:

\documentclass{article}

  \makeatletter

  \newcounter{deeplistdepth}
  \setcounter{deeplistdepth}{0}

  \newenvironment{deeplist}{\addtocounter{deeplistdepth}{1}
    
\@ifundefined{c@deeplistitem\alph{deeplistdepth}}{\newcounter{deeplistitem\alph{deeplistdepth}}}{}
    \leavevmode\newline
    
\list{\arabic{deeplistdepth}\alph{deeplistitem\alph{deeplistdepth}}}{\usecounter{deeplistitem\alph{deeplistdepth}}}}%
    {\endlist\addtocounter{deeplistdepth}{-1}}

  \makeatother

  \begin{document}
  And now a test....

  \begin{deeplist}
    \item First item
    \item Second item
    \begin{deeplist}
      \item First sublist
      \item
      \begin{deeplist}
        \item Second sublist
        \item \begin{deeplist}
            \item Next subliblist
            \item
            \begin{deeplist}
              \item and another
              \item
              \begin{deeplist}
                \item Here we go again
              \end{deeplist}
            \end{deeplist}
        \end{deeplist}
        \item Back a few levels in the list
        \item
        \begin{deeplist}
          \item up again
          \item same level
        \end{deeplist}
        \item down a level
      \end{deeplist}
    \end{deeplist}
  \end{deeplist}

\end{document}

 If there are going to be 10+ levels of nesting you may notwant to do 
change the indentation using list, ut the same general principle should 
work.

Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to