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
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
Community Expert
April 14, 2021

Hi Rick, I also thought that I might be changing the wrong template. To check that under pagination in ChapterOutputTpl.fm I set the start of the title to top of the page. That happened immediately providing some level certainty that I am chaning the right template. Moreover, I applied the previously mentioned changes (keep, widow/orphan lines) to dita.template, dita1.3.template, section output and subsection output templates, I see no change.


What happens when you make changes in the output document? Does it correct the pagination?

 

If it does, choose File > Import > Element Definitions and check Remove Overrides. This will "reset" the document to the default--and in some cases, undesired pagination. Now choose Structure > Show Element Context and start selecting some of the elements in the Structure View in the area where pagination has the undesired breaks. This will give you a window into the EDD and where the formatting is coming from. This will allow you to see which formats and/or EDD formatting that you may need to change.

 

If you want to do a web meeting, I will be glad to look at this with you. Thanks.

www.frameexpert.com