Thread View: adobe.framemaker.sgml
11 messages
11 total messages
Started by janice_swanson
Fri, 09 Jan 2009 17:15
Figure and Table number captions
Author: janice_swanson
Date: Fri, 09 Jan 2009 17:15
Date: Fri, 09 Jan 2009 17:15
5 lines
1404 bytes
1404 bytes
I am using FM 8.0p277 on Vista Home Premium and am a newbie to FM. I am currently migrating documents from unstructured to structured. I am also learning to develop my own EDDs and templates. 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.
Re: Figure and Table number captions
Author: Van_Kurtz
Date: Fri, 09 Jan 2009 18:14
Date: Fri, 09 Jan 2009 18:14
8 lines
1497 bytes
1497 bytes
Janice, 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
Re: Figure and Table number captions
Author: janice_swanson
Date: Fri, 09 Jan 2009 23:07
Date: Fri, 09 Jan 2009 23:07
5 lines
1045 bytes
1045 bytes
Thanks, Van. I'm much closer to figuring this out with your help.
I have tested my EDD on an existing document and the Table #: xxx caption I was trying to achieve seems to work. I was also able to generate a list of tables.
Unfortunately, all my tables are Table 1 even though I added format rules for a {first} occurrence of the TableTitle <n=1> vs. a {notfirst} occurrence <n+>. So, obviously I still have some work to do...
Re: Figure and Table number captions
Author: Russ Ward
Date: Mon, 12 Jan 2009 13:27
Date: Mon, 12 Jan 2009 13:27
5 lines
1031 bytes
1031 bytes
Janice,
The {first} designation refers to an element's position on its respective branch, not its general occurrence in the document. A table only has one title and it is always the first element on the table branch, therefore a table title element is always {first}. So, your setup is not relevant for table titles. Normally, a table title will always use the <n+1> type of setup, no different than unstructured FrameMaker.
Russ
Re: Figure and Table number captions
Author: janice_swanson
Date: Mon, 12 Jan 2009 15:38
Date: Mon, 12 Jan 2009 15:38
1 lines
783 bytes
783 bytes
Thanks, Russ. I started learning unstructured FrameMaker less than a year ago. I guess I'm just trying to pack too much into my poor brain. I appreciate your assistance and this forum, so thanks again!
Re: Figure and Table number captions
Author: janice_swanson
Date: Wed, 21 Jan 2009 22:04
Date: Wed, 21 Jan 2009 22:04
23 lines
2127 bytes
2127 bytes
On the same topic, it has been requested of me that the Figure and Table numbers in my document be preceded by the section number. (Figure #1 in section 3.3 is Figure 3.3-1: xxx, Fig #2 of that section is Figure 3.3-2: xxx, and so on, where xxx is the Figure title). I have incorporated the word "Figure" and formatted the figure title text; I just require assistance with the autonumbering.
I am a department of one, so while not only responsible for writing, am also responsible for my own EDDs/templates and am learning on the fly. My EDD has the following section numbering series (which may not be conducive to what I want to accomplish):
Count ancestors named: Section
If level is: 1
Context label: Heading1
Numbering properties
Autonumber format: S:<n+>.<n=0>\t
Else, if level is: 2
Context label: Heading2
Numbering properties
Autonumber format: S:<n>.<n+>\t
Else, if level is: 3
Context label: Heading3
Numbering properties
Autonumber format: S:<n>.<n>.<n+>\t
Is there a way to either:
1) use the current section autonumbering to set up the Figure numbering system requested, or
2) create a new element that addresses the Figure and Table autonumbering to incorporate the section numbers?
If the EDD will require a complete overhaul, I don't have time right now, and have no qualms about letting the "powers that be" know that it is too complex/time consuming with the current set-up that I have. But any guidance would be much appreciated.
Re: Figure and Table number captions
Author: Ian_Proudfoot
Date: Thu, 22 Jan 2009 01:26
Date: Thu, 22 Jan 2009 01:26
36 lines
1570 bytes
1570 bytes
Hi Janice,
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
Re: Figure and Table number captions
Author: janice_swanson
Date: Thu, 22 Jan 2009 15:35
Date: Thu, 22 Jan 2009 15:35
1 lines
1031 bytes
1031 bytes
Thank you so much, Ian. I spent way too much time on this & with the help of the App Dev guide I got part of the numbering to work, but then other parts would not. I believe I was placing the empty counter in the wrong place and numbering was starting at zero, which I didn't want. In the future, I should save myself the headache, set a way shorter trial period for myself, and then consult the experts like yourself!
Re: Figure and Table number captions
Author: Lynne_A._Price
Date: Thu, 22 Jan 2009 17:42
Date: Thu, 22 Jan 2009 17:42
20 lines
2056 bytes
2056 bytes
Janice,
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
Re: Figure and Table number captions
Author: janice_swanson
Date: Thu, 22 Jan 2009 17:58
Date: Thu, 22 Jan 2009 17:58
1 lines
660 bytes
660 bytes
Excellent! Thanks for the clarification, Lynne.
Re: Figure and Table number captions
Author: systecgmbhnuremberg
Date: Wed, 28 Jan 2009 08:56
Date: Wed, 28 Jan 2009 08:56
27 lines
2064 bytes
2064 bytes
Mello Mrs. Swanson,
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.
| FINALLY: Adobe FrameMaker 9 and TCS 2 have arrived!
| Training, Software, Support, Plugins, Services
| Everything from one expert provider!
<http://www.systec-gmbh.com/en/sites/toolbox.php>
<http://www.systec-gmbh.com/en/sites/ditapack.php>
<http://www.systec-gmbh.com/en/sites/3dpack.php>
| phone +49 911 99 89 55 - 600
| fax +49 911 99 89 55 - 663
| E-Mail info@systec-gmbh.com
| Schreiberhauer Str. 5, 90475 N�rnberg
| Internet www.systec-gmbh.com
| CEO Dipl.-Ing. (FH) Georg Eck, Dipl.-Btw. (FH) Manfred Papp
| Amtsgericht N�rnberg HRB 9369 Umsatzsteuer-Identifikationsnummer DE 133560519
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads