jon at stagelightproductions.org wrote:
> 
> I got the style of chapter/sect numbering I wanted by adding another n to the 
> front of each group in collapsible.imp which then included the Chapter number 
> in each section title which is GREAT (exactly what I wanted to do)
> 
> However, I still can't seem to get the chapters to NOT reset to 1 within each 
> new part.  I tried several things (the use of the n and the - still aren't 
> clear to me) in the Chapter definition in collapsible.imp:
> 
> /* I added a dash BEFORE the first n but this didn't do anything */
> chapter > title:first-child:before {  content: collapser() " Chapter " 
> counter(-n-, decimal) ": "; }
> 
> /* I removed the dash after the n but this caused the chapter number to NOT 
> increment at all */
> chapter > title:first-child:before {  content: collapser() " Chapter " 
> counter(n, decimal) ": "; }
> 
> So the - seems to trigger the incrementing within the parent, but since the 
> part is always the parent of chapter, that means I can't make the chapter 
> numbers incremener 1,2,3,4,5,6... even if Part I surrounds 1,2,3 and Part II 
> surrounds 4,5,6... 
> 

Please find attached to this email a replacement for
XXE_install_dir/addon/config/docbook/css/docbook1.imp

This will give you something looking like attached screenshot. That's
the best we can do without any special effort.

Now an advanced alternative to using counter() is to use label(). See
http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/label.html.

It is also possible to code CSS style sheet extensions in Java[tm]. See
http://www.xmlmind.com/xmleditor/_distrib/doc/dev/styleext.html.





-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: collapsible.imp
Url: 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060927/57ec6aaa/attachment.bat
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alt_numbering.png
Type: image/png
Size: 21404 bytes
Desc: not available
Url : 
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20060927/57ec6aaa/attachment.png
 

Reply via email to