Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
We have an issue where we are often left with a level 2 or 3 title and short description stuck on the bottom of a page, while the rest of the topic is on the next page.
What are my options? My thought is to create a rule that would check the room left on the page, and if the title element was within the last 3 in. of the bottom of the page it would start the topic on a new page. Is that possible?
Bryon
Hi Bryon
You're going to need to use an APP source edit to test the baseline position of the title and, if it is greater than some threshold, output a page break or set the top margin to something large to force it over to the next page.
Something like
if (formatting.currentState.yBase > new fLength("200mm") {
formatting.output(""); //For the page break or block.marginTop = "40mm" for the top margin
}
Put that edit in a property set and apply that to the title, then you can reuse it and it doesn't lock up your title from being styled.
Hope that helps
Simon