Re: Newbie Class/Counter question

2006-03-14 Thread Michael Spencer
ProvoWallis wrote: > > My document looks like this > > A. Title Text > 1. Title Text > 1. Title Text > 1. Title Text > B. Title Text > 1. Title Text > 1. Title Text > > but I want to change the numbering of the second level to sequential > numbers like 1, 2, 3, etc. so my output would look like

Re: Newbie Class/Counter question

2006-03-14 Thread Michael Tobis
Paul, thanks for the enlightening intro to pyparsing! We don't really know what the application is (I suspect it's homework), but whether it's homework or a real-world one-off this all seems like overkill to me. There's a time for elegance and a time for quick and dirty. Assuming line oriented inp

Re: Newbie Class/Counter question

2006-03-14 Thread Paul McGuire
"ProvoWallis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I've always struggled with classes and this one is no exception. > > I'm working in an SGML file and I want to renumber a couple of elements > in the hierarchy based on the previous level. > > E.g., > > My document