• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Autonumbering Tables and Figures using <$paranum>-<n+>

New Here ,
Jul 03, 2024 Jul 03, 2024

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.

 2024-07-03_9-48-17.png

Views

320

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Community Expert , Jul 03, 2024 Jul 03, 2024

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.

 

 

 
 

 

Votes

Translate

Translate
Community Expert , Jul 04, 2024 Jul 04, 2024

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,

...

Votes

Translate

Translate
Community Expert ,
Jul 03, 2024 Jul 03, 2024

Copy link to clipboard

Copied

How is that 2> already defined?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 03, 2024 Jul 03, 2024

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 03, 2024 Jul 03, 2024

Copy link to clipboard

Copied

The "2>         Scope" bit is manually typed in? I thought you were using some autonumbering already in there.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 03, 2024 Jul 03, 2024

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 03, 2024 Jul 03, 2024

Copy link to clipboard

Copied

Basically my question is, is this possible without splitting the file into chapters or sections? Thank you!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 03, 2024 Jul 03, 2024

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.

-Matt Sullivan
FrameMaker Course Creator, Author, Trainer, Consultant

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 04, 2024 Jul 04, 2024

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 12, 2024 Jul 12, 2024

Copy link to clipboard

Copied

LATEST

This scheme works perfectly! Thank you Winfried.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 03, 2024 Jul 03, 2024

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.

 

 

 
 

 


Bjørn Smalbro - FrameMaker.dk

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines