Extracting figure number from heading number

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

Extracting figure number from heading number

Post by oceanclub »

I used the following for my heading 1 numbering (where heading 1s are my chapter headings):

Code: Select all

h1
	{
		color: #000000;
		/* Black */
		mc-auto-number-format: 'GH:{n+} ';
	}
I've set up my figure numbering as follows:

Code: Select all

mc-auto-number-format: 'CF:{b}Figure {chapnum}.{Cn+}: {/b}';



So I should see:

1. Chapter 1

Figure 1.1:
Figure 1.2:

2. Chapter 2

Figure 2.1:
Figure 2.2:

etc.

However, this depends on the chapter breaks being set up correctly. I've rather just directly use the heading 1 number value in my figure numbering. How do I do that?

P.
Post Reply