none
What does keep with next really mean? RRS feed

Answers

  • Hey Dave,

    17.3.1.15 keepNext (Keep Paragraph With Next Paragraph), says:

    "This element specifies that when rendering this document in a paginated view, the contents of this paragraph are at least partly rendered on the same page as the following paragraph whenever possible."

    17.3.1.44 widowControl (Allow First/Last Line to Display on a Separate Page) says:

    "This element specifies whether a consumer shall prevent a single line of this paragraph from being displayed on a separate page from the remaining content at display time by moving the line onto the following page."

    Putting these together, explains what you see. The keepNext will only keep *part* of a paragraph on the same page with the next paragraph. widowControl will prevent single (first or last) lines of a paragraph from being left behind on the previous page or dangling alone on the next page.

    These are controlled in the UI by the Paragraph setting dialog seen below from Word 2016:

    The operative word for keepNext was "part" (i.e. "...at least partly rendered..."). This is not the same thing as keeping a single line from trailing or dangling on the previous or next page.

    Best regards,
    Tom Jebo
    Sr Escalation Engineer
    Microsoft Open Specifications


    Friday, March 4, 2016 2:24 AM
    Moderator

All replies

  • Hi Dave,

    Thank you for contacting the Microsoft Open Specifications forum.  A case has been created to track the request.  A member from the team will review and respond back with an update.

    Thank you,

    Nathan

    Thursday, March 3, 2016 4:24 PM
    Moderator
  • Hi Dave,

    I'll take a look.

    Best regards,
    Tom Jebo
    Sr Escalation Engineer
    Microsoft Open Specifications

    Thursday, March 3, 2016 5:44 PM
    Moderator
  • Hey Dave,

    17.3.1.15 keepNext (Keep Paragraph With Next Paragraph), says:

    "This element specifies that when rendering this document in a paginated view, the contents of this paragraph are at least partly rendered on the same page as the following paragraph whenever possible."

    17.3.1.44 widowControl (Allow First/Last Line to Display on a Separate Page) says:

    "This element specifies whether a consumer shall prevent a single line of this paragraph from being displayed on a separate page from the remaining content at display time by moving the line onto the following page."

    Putting these together, explains what you see. The keepNext will only keep *part* of a paragraph on the same page with the next paragraph. widowControl will prevent single (first or last) lines of a paragraph from being left behind on the previous page or dangling alone on the next page.

    These are controlled in the UI by the Paragraph setting dialog seen below from Word 2016:

    The operative word for keepNext was "part" (i.e. "...at least partly rendered..."). This is not the same thing as keeping a single line from trailing or dangling on the previous or next page.

    Best regards,
    Tom Jebo
    Sr Escalation Engineer
    Microsoft Open Specifications


    Friday, March 4, 2016 2:24 AM
    Moderator
  • Hi Tom;

    What's really weird about this (didn't catch this before) is "whenever possible". So does this really force much of anything?

    It looks like it can then page break whenever it hits a 4+ line paragraph (3 or less hits the widow/orphan rule). I tried a couple and it does seem to follow your rule above.

    thanks - dave


    What we did for the last 6 months - Made the world's coolest reporting & docgen system even more amazing

    Friday, March 4, 2016 2:33 AM
  • Yes, it does. If you read the next paragraph, you'll see:

    "This means that if the contents of the current paragraph would normally be completely rendered on a different page than the following paragraph (because only one of the two paragraphs would fit on the remaining space on the first page), then both paragraphs shall be rendered on a single page. "

    That's important, the "...would normally be completely rendered on a different page than the following paragraph...".  If you play with it, keeping this in mind, then Word behaves according to the standard. Also using the widow/orphan control helps to understand.

    Tom

    Friday, March 4, 2016 3:06 AM
    Moderator