Copy link to clipboard
Copied
Hello Community,
Need help on how to add <$paranum> to the autonumbering definitions of tables and figures in an ustructured FM file.
I need the Tables and Figures inherit the paragraph number where they are located. See graphic below.
T:Table 2-<n+>:
Do I need to make a book?
Thanks in advance.
The autonumbering of tables is merely using paragraph numbering and to connect the headings numbering to the tables numbering, you will need to use the same sequence character like in the screenshots attached here.
For what ever reason I can't paste the screenshots into the text here.
Here is an example for a system without <$chapnum> and therefore without splitting documents:
H1
<n+>< =0>< =0>< =0>< =0>
H2
<n>.<n+>< =0>< >< >
H3
<n>.<n>.<n+>< >< >
Figure
<n>< >< >-<n+>< >
Table
<n>< >< >-< ><n+>
This means in my example:
You do not have any series labels.
The first 3 counters are for headings.
The numbering for heading1 resets all other counters.
Counter 4 is for figures. The counter for heading1 is shown, but not changed.
Counter 5 is for tables. The counter for heading1 is shown,
...Copy link to clipboard
Copied
How is that 2> already defined?
Copy link to clipboard
Copied
That number "2" is currently manually typed. Obviously if I insert or remove a section, that number will be incorrect. I want to make it dependent of the Section paragraph number where the item is located.
Copy link to clipboard
Copied
The "2> Scope" bit is manually typed in? I thought you were using some autonumbering already in there.
Copy link to clipboard
Copied
When you want to use the chapter counter (in your screenshot in the upper left corner), the numbering of this chapter counter and the numbering of the table must be in the same sphere (e.g. both without T or with the same character). You would have to add all counters of the chapter numbering (I do not know which you have; maybe you can post this here) to your table numbering and change them all to < >. This just copies the counters, but makes them invisible. Only for the counter of the chapter numbering you have to use <n>.
However, when you use <$chapnum> for the chapter numbering, then you can just add this:
T:Table <$chapnum>-<n+>:
The only restriction, when you use <$chapnum>: All files must be new chapters. You cannot combine several chapters in a single file or split one chapter into several files.
Copy link to clipboard
Copied
Basically my question is, is this possible without splitting the file into chapters or sections? Thank you!
Copy link to clipboard
Copied
Yes, possible. Not terribly difficult, as this is what we did before Fm books were a "thing". You need to understand the n+ building block and various placeholders and reset codes.
Copy link to clipboard
Copied
Here is an example for a system without <$chapnum> and therefore without splitting documents:
H1
<n+>< =0>< =0>< =0>< =0>
H2
<n>.<n+>< =0>< >< >
H3
<n>.<n>.<n+>< >< >
Figure
<n>< >< >-<n+>< >
Table
<n>< >< >-< ><n+>
This means in my example:
You do not have any series labels.
The first 3 counters are for headings.
The numbering for heading1 resets all other counters.
Counter 4 is for figures. The counter for heading1 is shown, but not changed.
Counter 5 is for tables. The counter for heading1 is shown, but not changed.
When there is < >, the counter is kept, but not changed.
Copy link to clipboard
Copied
This scheme works perfectly! Thank you Winfried.
Copy link to clipboard
Copied
The autonumbering of tables is merely using paragraph numbering and to connect the headings numbering to the tables numbering, you will need to use the same sequence character like in the screenshots attached here.
For what ever reason I can't paste the screenshots into the text here.