Skip to main content
hadih26673991
Inspiring
Apr 13, 2021 1:02 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

8 replies

Wanda Jane
Inspiring
Jun 15, 2022 7:14 PM UTC

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

Translate
Bob_Niland
Community Expert
Community Expert
Apr 13, 2021 2:57 PM UTC

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.

Translate
hadih26673991
Inspiring
Apr 14, 2021 8:01 AM UTC

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

Translate
frameexpert
Community Expert
Community Expert
Apr 14, 2021 10:46 AM UTC

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.

Translate
www.frameexpert.com