About Arbortext Styler > Adding Generated Text > Advanced Formatting of Titles and Numbering > Example: Create Individual Numbering Sequences Based on Figure Type
  
Example: Create Individual Numbering Sequences Based on Figure Type
* 
If you would like to create separate lists of graphics and lists of tables in your document, as tables of contents, you will need to set up the figure elements in a slightly different way. Please refer to the example Create lists of tables and graphics in Customizing the Content of a TOC.
This example describes how to create two separate numbering sequences for figure elements in a document, where a figure can contain either a table or a graphic. In the final output tables and graphics will be numbered according to their own numbering scheme, and will display different labels.
1. In the Elements list, set the title element to be of Title style via the Edit > Style menu option.
2. Set the figure element to be of Formal Block style. Arbortext Styler creates a context for the title in a figure, i.e. title in figure, and sets it to generate a number.
3. Create a condition for the title in figure context via the InsertCondition menu option. In the Condition dialog box that appears, click the New Content Test button to open the Content Test dialog box.
4. In the dialog box, configure the following settings:
Element whose content to test: Ancestor (figure)
Test types: Includes
Test depth: At any level
Content to test for: graphic
Click OK twice to save the condition and exit the dialog boxes. Here you have created a condition that the title in figure context will match if the title is a child of a figure element that also contains a graphic element.
5. In the Generated text category for the condition, select the Number option in the Bullets and Numbers field to number the graphic titles. Click the Details button in the Numbers and Bullets field to open the relevant title numbering dialog box and configure the numbering for the title.
6. In the title numbering dialog box, make any changes to the formatting of the number you desire, for example type the text Graphic, followed by a space, in the Label field. Click OK to exit the title numbering dialog box.
7. Repeat steps 3–4 for a second condition that will match if the title is a child of a figure element that also contains a table element. In this instance, you will use the following settings in the Condition dialog box:
Element whose content to test: Ancestor (figure)
Test types: Includes
Test depth: At any level
Content to test for: table
You can also include a different prefix for the title's output for tables, for example by typing the text Table followed by a space in the Label field.
8. When previewing or publishing you will now see that tables and figures are numbered according to separate numbering schemes, and that table titles are prefixed Table whilst the graphic titles are prefixed Graphic.