table numbers in table captions

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

table numbers in table captions

Post by pdenchfield »

Flare 10, Windows 7. How do you automatically number tables when using table captions under table properties?

1. Insert table
2. Under Table Style, select table style
3. Under Table Caption, in the Text box, type the table caption

Everything works except I don't know how to code the table numbering.

If I use CSS and caption the tables outside the table styles, then I use the following.

Code: Select all

		mc-auto-number-class: TableNum;
		mc-auto-number-format: 'CT:Table {chapnum}-{n+} ';
How do I number tables within the table style editor?

Thanks!
angelabartz
Propeller Head
Posts: 36
Joined: Mon Apr 07, 2014 4:18 pm

Re: table numbers in table captions

Post by angelabartz »

I don’t use an auto-number format directly in my tables. I set the auto-number formatting on the caption style. Then when I type my table caption (your step 3), the numbering automatically appears.

For example, the following is how the CSS looks for my print medium. Note that I don’t include chapter numbering in my table captions. My print medium just continues table numbering throughout the manual.

Code: Select all

table
{
    mc-caption-contunation: ‘ (continued)’;
    mc-caption-repeat: true;
}

caption
{
   …<some_additional_paragraph_formatting>...
   mc-auto-number-format: ‘H:{b}Table {Gn+:{/b} ‘;
}
-Angela
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

Re: table numbers in table captions

Post by pdenchfield »

Thanks, Angela! Is the code in your stylesheet file or your tablestyle file? I'm guessing stylesheet but wanted to confirm. :-)
angelabartz
Propeller Head
Posts: 36
Joined: Mon Apr 07, 2014 4:18 pm

Re: table numbers in table captions

Post by angelabartz »

Sorry for the delayed response. The code is in my main stylesheet rather than in the table stylesheet.
-Angela
pdenchfield
Propellus Maximus
Posts: 574
Joined: Tue Oct 03, 2006 7:56 am
Location: Seattle, WA
Contact:

Re: table numbers in table captions

Post by pdenchfield »

Thanks, Angela! I am sticking with my previous style of table captions in separate paras for now, but I look forward to trying out your solution when I have some down time.
Post Reply