Basing image & table numbering on H1 numbering not {chapnum}

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
oceanclub
Sr. Propeller Head
Posts: 277
Joined: Thu Oct 10, 2013 4:45 am
Location: Dublin

Basing image & table numbering on H1 numbering not {chapnum}

Post by oceanclub »

Previous we used the following for numbering:

Code: Select all

	h1
	{
		color: #000000;
		/* Black */
		mc-auto-number-format: 'GH:{n+} ';
	}

	div.figure p.figurecount
	{
		mc-auto-number-format: 'CF:{b}Figure {chapnum}.{Cn+}: {/b}';
	}
However, for the figure numbering, I wanted to get rid of the need for {chapnum} as I want to get rid of chapter breaks from our guides since they force page breaks.

So I tried:

Code: Select all

div.figure p.figurecount
	{
		mc-auto-number-format: 'CF:{b}Figure GH:{n}.{Cn+}: {/b}';
	}
However, rather than evaluating to the value of the previous H1 numbering, I just get something completely wrong.

If anyone knows what to put there would appreciate it,

P.
Post Reply