Skip to main content
hadih26673991
Inspiring
April 13, 2021
Question

how to get widow/orphan lines work in dita xml?

  • April 13, 2021
  • 2 replies
  • 838 views

I am using FM 2020 and would like to avoid having strange looking breaks in my text such as title (or title plus one line) at the bottom of a page and the rest of the content on the next page. In such cases what I would like to have is to see the title and the following content (i.e. body) on the next page. So I tried to increase the widow/orphan lines in the publishing template file (ChapterOutputTpl.fm) for the titles and body elements. It did not change anything. Am I missing something here?

This topic has been closed for replies.

2 replies

Wanda Jane
Inspiring
June 15, 2022

Did you import the updated template into the settings file for publish?

Bob_Niland
Community Expert
April 13, 2021

You might need to review the Keep properties for all the Paragraph Formats.

If, for example, ordinary Body has a Keep with Next, that might keep a following Heading1 on the same page.

When Keep/Widow/Orphan hints conflict, I'm not sure how FM prioritizes what to do.

I'm also not sure how Structured mode might alter the behavior.

hadih26673991
Inspiring
April 14, 2021

Hi, thank you for the comments. I tried different options, no change occured. It is possible that this option is not active for structured FM. Unfortunately FM is not as complete when it comes to structured authoring (based on my experience in the past).

frameexpert
Community Expert
April 14, 2021

Are you able to see positive changes when you change Keep settings in your finished document? If so, you may be changing the wrong template because the changes should carry through to your published documents.