Figure and Table number captions

Copy link to clipboard
Copied
My question is: In Structured FM, how do you add Figure and Table captions in the format Figure#: figurename and Table#: tablename? I want to generate lists of figures and tables for a book. Is it set up as a Marker in the EDD? If so, what do I need to include in the set-up to generate a list of figures/tables for the book?
I had thought this topic was covered by another forum user, but couldn't find it by performing a search. I also have been searching the User Guide and Application Developer Guide for information to no avail. I hope my question is clear.
Copy link to clipboard
Copied
Figure and table numbering are handled by the EDD, in the same way as the EDD assigns paragraph formatting to elements. In the case of tables, the EDD formats the TableTitle element. Typically figures have a title element that serves as the caption; the EDD can format that also.
So, look in the App Dev Guide for information on formatting paragraphs/elements. There are three ways of doing it: you can create the appropriate paragraph formats in your template, and then let the EDD assign the right format to the corresponding element. Or (2), create the paragraph formats in the EDD as format lists, and the EDD assigns the right list to the corresponding element. Or (3), the EDD assigns the correct autonumbering format to the corresponding element. I prefer methods 2 and 3 because they prevent the user from changing the autonumbering in the documents.
Good luck,
Van

Copy link to clipboard
Copied
Copy link to clipboard
Copied

Copy link to clipboard
Copied

Copy link to clipboard
Copied
Copy link to clipboard
Copied
You can update your current numbering scheme so that the section numbers are shown in the Figure and Table numbers.
Element(Container):Head
General rule: TEXT
Text format rules
Count ancestors named: Section
If level is: 1
Context label: Heading1
Numbering properties
Autonumber format: S:<n+>.<n=0>< =0>< >\t
Else, if level is: 2
Context label: Heading2
Numbering properties
Autonumber format: S:<n>.<n+>< =0>< >\t
Else, if level is: 3
Context label: Heading3
Numbering properties
Autonumber format: S:<n>.<n>.<n+>< =0>\t
For the TableTitle use this autonumber format rule if the Table is at level 1 or 2:
Autonumber format: S:Table <n>.<n>< >-<n+>:\t
Or if the Table is a level 3, use this rule:
Autonumber format: S:Table <n>.<n>.<n>-<n+>:\t
I think this should do what you want.
Regards
Ian
Ian Proudfoot
Adobe Community Expert

Copy link to clipboard
Copied
Copy link to clipboard
Copied
The key to Ian's solution is the use of < > (the space between the angle brackets is crucial). To explain why this works, each autonumbering sequence (S in your case) contains an arbitrary number of counters. You specify counters by enclosing a special one-character code in angle brackets. This code indicates how the counter is displayed. The letter n, for instance, indicates that the counter is displayed as an Arabic numeral, R indicates an uppercase Roman numeral, and so on. A space means that the counter is not displayed.
Of course, any of these codes can be followed by a + to indicate that the value should be incremented, or by an = and an integer to set the counter to the specified value. Thus < =0> sets a counter to 0 without displaying it and < +> increments a counter without displaying it.
Any counter that is not mentioned is reset to 0. Thus, the autonumbers:
<n>
<n>< =0>
are equivalent.
You are using the first three counters in the S sequence for section headings of different levels. You can use the 4th for for tables and the 5th for figures (or the other way around). You need to use the space code for two reasons:
-
- To skip past unused counters (e.g., to avoid including the table counter in a figure number)
- To avoid resetting a counter that you don't want to display (e.g., to avoid resetting the figure count to 0 each time you display a table number).
--Lynne

Copy link to clipboard
Copied
Copy link to clipboard
Copied
As far as my experience goes, it can be advantageous to have the numbering specification in the format and not hardcoded in the EDD.
This way, you only assign a format in the EDD. The advantage ist, that if you have documents that get translated into other languages, you only need to update the format ("Abbildung" instead of "Figure") and not the EDD. If you did it via the EDD, you´d need an EDD per language. Also, template based localization can also deal with the parapgraph language and language-dependent reference pages (such as index sorting a.s.o).
For tables, you can either have the table title as a separate "paragraph" (=defined as a "Container" in the EDD) or as a true Table Title (in the sense of the table dialog), when you define it as a "TableTitle" in the EDD.
Hope this helps.
With kind regards,
Franz.
[ excess signature deleted by host ]

