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

Formatting a table of contents

Advisor ,
Jun 20, 2021 Jun 20, 2021

Copy link to clipboard

Copied

In Automatically text Format change - Adobe Support Community - 12125343, @Daniela Barros asked how to include heading numbers and leader dots in a TOC.

 

Daniela, I am answering your question in a new thread.

 

There are three steps to creating a TOC:

 

1. Specify which paragraphs (or, in a structured document, elements) in the original document or book contribute entries. This specification is made in the Set Up Table of Contents dialog box. 

 

2. Specify what information is extracted from the document/book for each entry. This is made on on a reference page named TOC in the TOC file. The TOC page has an entry for each paragraph format that will contribute to the TOC. The tag for a paragraph on the page is the same as that of the original format with TOC appended at the end. For example, if you want to include information for Heading1 paragraphs in the original documents, you need a paragraph tagged Heading1TOC on this page. 

 

3. Specify how the extracted paragraphs are formatted. Formatting is specified in the paragraph formats of the paragraphs in the TOC.

 

Once you set up a a TOC (step 1 above), FrameMaker will generate a TOC using defaults for the items in 2 and 3. You can change them by editing and saving the initial generated file. To see the results of changes you make in step 2, regenerate the TOC.

 

In your case, you wanted the paragraph numbers from your headings to show in the TOC. Find the appropriate paragraph on the TOC reference page in the TOC file and add the building block <$paranum> at the beginning. You also wanted the page numbers to appear at the right with leader dots between the heading text and the page numbers. On the reference page, insert a tab character before the <$pagenum> building block. Then, in the paragraph designer, define a tab stop for this paragraph format. Specify Right for alignment, the right edge of the frame for position, and the desired leaders. Click Update Style and save the file. Then regenerate the TOC.

 

     --Lynne

 

Views

682

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
Participant ,
Jun 30, 2021 Jun 30, 2021

Copy link to clipboard

Copied

Hi Lynne,

 

Unfortunately it is not working. The only thing in the Reference page of the TOC file is  the following: I have added the paranum block and updated but nothing..

 

DanielaBarros_1-1625109285059.pngDanielaBarros_2-1625109322220.png

 

 

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
Contributor ,
Jun 30, 2021 Jun 30, 2021

Copy link to clipboard

Copied

Hi,

 

Do you have the Paragraph Tag correct?

For example, if the Paragraph Tag of the paragraph in the body is Heading, then the corresponding Paragraph Tag in the TOC Reference Page should be HeadingTOC.

 

Regards,

Shalom

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 01, 2021 Jul 01, 2021

Copy link to clipboard

Copied

Hi @Daniela Barros:

 

I have written up the answers to both questions on my student blog:

https://www.rockymountaintraining.com/adobe-framemaker-adding-tabs-to-a-table-of-contents/

https://www.rockymountaintraining.com/adobe-framemaker-including-chapter-numbers-in-a-table-of-conte... but in your case you would need to use <$paranum> and not <$chapnum> on the reference page to pick up the heading auto-numbers, assuming they are not specifically chapter numbers. 

 

I can see that you tried to add the <$paranum> building block already, and it was already noted there are style-specific. For example, if the style with the numbering is called Head1, then locate Head1TOC on the TOC reference page and add the <$paranum> to that paragraph. Then update your book.

 

~Barb 

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
Participant ,
Jul 04, 2021 Jul 04, 2021

Copy link to clipboard

Copied

I have read, followed the instructions, tried everything, still can`t get the number of the headings. Below is what I have done and the results. What could be wrong?

Thank you for the support

DanielaBarros_2-1625456305348.pngDanielaBarros_3-1625456326473.png

 

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
Contributor ,
Jul 04, 2021 Jul 04, 2021

Copy link to clipboard

Copied

The first thing I see is that you have written <$Sparanum>. It should be <$paranum>.

And I think <$chapnum> needs to have a lowercase "c".

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 05, 2021 Jul 05, 2021

Copy link to clipboard

Copied

Hi @Daniela Barros:

 

FrameMaker does not accomodate typos in building blocks. The ones you need are:

<$chapnum> or <$paranum> (one of them, depending on how the numbering was defined for your heads, but never both)

<$paratext>

<$pagenum>

 

~Barb

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
Participant ,
Jul 11, 2021 Jul 11, 2021

Copy link to clipboard

Copied

Thank you Guys, It worked partially.

 

I have 1.0 as the fisrt headind (H:\t<$chapnum>.<n=0>\t) for which I have created the style "1.0 Heading"

and 1.1, 1.2... to the next ones (H:\t<$chapnum>.<n+>\t) for which I have used the existing style 1.1 Heading.

 

When I generated the TOC the 1.0 is missing.

Any particular reason for that?

 

Thanks once more

-Daniela

 

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
Contributor ,
Jul 11, 2021 Jul 11, 2021

Copy link to clipboard

Copied

LATEST

Remember what Lynne wrote at the beginning, that you have to specify which paragraphs will appear in the TOC.

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 11, 2021 Jul 11, 2021

Copy link to clipboard

Copied

Hi @Daniela Barros:

 

This is hard to troubleshoot in the forum so I need to clarify what you are saying:

  1. You just showed us your Paragraph Designer > Numbering setting for the heads on the body pages?
  2. Then you updated the TOC and the first level number is missing but the second level number is correct?

 

If that is what you were trying to tell us, then please show us a screen shot of your TOC reference page, with your cursor in the Heading1TOC (or whatever you called it) entry. 

 

~Barb 

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