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?
> 
>  

No, you cannot do this using simple counters (which are strictly
hierarchical counters). You need to use standard CSS counters.

See http://www.w3.org/TR/CSS2/generate.html#counters

If you cannot make standard CSS counters to work, please double-check,
then triple-check what you did before reporting a bug, because such
standard CSS counters are not that easy to specify.





Reply via email to