Sorry Stuart to have bothered you with this. I actually posted my post BEFORE reading the changelog of the new revision thinking I would contribute something new and then realised from the changelog that this was already done. I then tried to delete this post but this seem no to have worked.
On Oct 21, 7:04 pm, Stuart Rackham <[email protected]> wrote: > On 20/10/10 18:23, Henrik wrote: > > > > > Hi all, > > > The following patch for docbook.conf and xhtml.conf adds support for > > the ordered list start number attribute: > > > In docbook.conf change the list entry like shown below: > > > [listtags-numbered] > > list=<orderedlist{id? id="{id}"}{role? role="{role}"}{reftext? > > xreflabel="{reftext}"} numeration="{style}"{compact-option? > > spacing="compact"}{continuation-option? continuation="continues"} > >> {title?<title>{title}</title>}|</orderedlist> > > > In xhtml.conf change the list entry like shown below: > > > [listtags-numbered] > > list=<div class="olist{style? {style}}{compact-option? compact}{role? > > {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol > > class="{style}"{start? start="{start}"}>|</ol></div> > > > This allows a new list to continue with the previous numbering or > > start with a new number. > > > Example use: > > > [start=10] > > . Lorem ipsum > > . Lorem ipsum > > . Lorem ipsum > > > Note: Those changes are best applied to a custom .conf file rather the > > original files of AsciiDoc. > > I added the 'start' attribute to conf files in r839 > (http://code.google.com/p/asciidoc/source/detail?r=59e53dde416688b55d1...). > I used the dbfo and dbhtml processing instructions to set the list start > number > in DocBook outputs (seehttp://www.sagehill.net/docbookxsl/Orderedlists.html) > rather than continuation so that the same AsciiDoc source could be used for > both > DocBook and HTML. > > Start is different to the docbook continuation attribute, which seems to me to > be more useful, pity it's not in HTML. > > Cheers, Stuart > > > > > Cheers > > > Henrik > > -- You received this message because you are subscribed to the Google Groups "asciidoc" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/asciidoc?hl=en.
