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

DITA 1.3 bookmap, how to exclude lower level headings

Explorer ,
Jul 08, 2024 Jul 08, 2024

Copy link to clipboard

Copied

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?

 

Views

210

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 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

Votes

Translate

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

Copy link to clipboard

Copied

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

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

Copy link to clipboard

Copied

Thank you for the help, Winfried.

 

Right indents are the settings I need.

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

Copy link to clipboard

Copied

LATEST

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?

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