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

DITA 1.3 bookmap, how to exclude lower level headings

Explorer ,
Jul 08, 2024 Jul 08, 2024

I'm using FM 2022 to rewrite our guides in DITA 1.3 compliance.

  • So far I have made minor adjustment to paragraph style and save them in EDD file, and combined the EDD with a topic template - which keeps all of my specific formatting.
  • I have began to create my first bookmap by "chapter/topicref" the contents.
  • I published the book with 'save PDF via Book with components route' to get the best visual result, while generating TOC and everything else.
  • My current problem is to limit TOC entries within the first two level headings, because my level 2 heading is practically just an intro title for the level 3 heading. This means both headings would have the same page number, and it's doubling the TOC length for no purpose.

Andy38108926n5yf_0-1720493102437.png

  1. How do I exclude the 'steps' section from the TOC? I have tried to modify the TOCTpl.fm reference page, but all I have done was removing the trailing dots and page number - the section heading is still included.
  2. Some heading titles are also longer than the rest - i.e. page 2 and page 8, pushing out the page numbers. Is there a way to truncate the titles, or wrap them to a new line?

 

311
Translate
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 1 Correct answer

Community Expert , Jul 09, 2024 Jul 09, 2024

Hi,

I can only comment to question 2.

When I tested this, I added  a value to Indent Right _and_ to Indent Last Line Right in the Paragraph Designer. Then this worked.

However, it can happen that only the page number is moved to the second line. When you want that also text breaks to the second line, add some values in the Paragraph Designer in the Advanced tab:

Word Spacing minimum 200 %, maximum 125 %. You can also experiment and use other values.

Best regards, Winfried

Translate
Community Expert ,
Jul 09, 2024 Jul 09, 2024

Hi,

I can only comment to question 2.

When I tested this, I added  a value to Indent Right _and_ to Indent Last Line Right in the Paragraph Designer. Then this worked.

However, it can happen that only the page number is moved to the second line. When you want that also text breaks to the second line, add some values in the Paragraph Designer in the Advanced tab:

Word Spacing minimum 200 %, maximum 125 %. You can also experiment and use other values.

Best regards, Winfried

Translate
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
Explorer ,
Jul 09, 2024 Jul 09, 2024

Thank you for the help, Winfried.

 

Right indents are the settings I need.

Translate
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
Explorer ,
Jul 12, 2024 Jul 12, 2024

Looks like toctpl.fm only applied if we publish ditamap directly to PDF. Publish to book with FM components doesn't apply the template from toctpl.fm. Do you know where else we have to set our paragraph style?

Translate
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
Explorer ,
Jan 30, 2025 Jan 30, 2025

Hi Andy,

 

I had this problem as well for a while.

 

How I fixed it:

1. Made a change in the ditafm-output.ini such as shown below: [BookWithFM-TOC]
Template=TOCTpl.fm
ElementTags=
ParaTags=title.0|title.1|title-index
2. I made the change in in AppData\Roaming\Adobe\FrameMaker\17\ditafm-output.ini, NOT in Program Files\Adobe\Adobe FrameMaker 2019\fminit\ditafm\ditafm-output.ini.

 

Now I have only title 0 and title 1:

zornitzad80431241_0-1738264693239.png

I am running Structured FM 17.0.04 and Windows 11.

 

I hope that this is helpfull.

 

Regards,

 

Zornitza Doneva

Translate
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
Explorer ,
Jan 30, 2025 Jan 30, 2025
LATEST

Many thanks, Zornitza.

 

Adobe somehow never mentioned these locations.

Translate
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