On 03/19/2010 10:21 AM, Hussein Shafie wrote:
> Henry Mok wrote:
>
>>
>> I'm trying to change the css so that figures will be automatically
>> numbered. I want the format to be chapter num, then figure number. I've
>> added the following to the collapsible.imp file.
>>
>>
>>
>> figure > title:first-child:before {
>>
>> content: collapser() " Figure " simple-counter(n-n-) " ";
>>
>> }
>>
>>
>>
>> The problem that I am having is that it's counting within the figure?s
>> parent, section. When I go to a new section, the counter resets. Is
>> there any way using simple-counter to count the figures at the chapter
>> level?
>>
>>
>>
Hi Henry, Sorry to interfere...
what about using standard counters in your case ? A naive example:
chapter {
.........
counter-reset: figure ;
}
figure > title:first-child:before {
counter-increment: figure ;
content: collapser() "Figure " counter(figure) " " ;
}
Hope this helps,
Phil.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: philippe_nobili.vcf
Type: text/x-vcard
Size: 349 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20100319/7af4165d/attachment.bin