Using the lines_left Option

The basic reason for setting lines_left is to count up all of the lines in the group of stubs that you wish not to break across a page, including the blank lines, and add to this number the number of lines in the title_5, footer, and footnotes that may appear on the tables.

Some special considerations are:

Stub wrap – If your stub width changes between banners, some stubs may wrap differently than they did in other banners.

Stats – The maximum number of rows in a table cell that may contain stats letters is four (eight in 7.x software after compile #700). Thus to be completely safe when using lines_left on tables having stats allow five lines per row category (four for stats and a space). Remember that stub wrapping may make it so that more is required.

If you don’t have many banner points being stats tested, and/or your columns are wide, or you are confident that not much is going to be significant, or maybe you just feel lucky, you can use a number less than five.

Title_5 – The number of lines in the title_5 should be added to the count for lines_left. Since the title five text only appears at the end of the table one should only need to count this into lines_left for the final block of stubs that you wish to remain together.

Footer – The number of lines in the footer should be added to the count for lines_left.

Stats footnote – If you are running stats you will need to add in at least two lines for a stats footnote.

It is possible with a narrow page_width or a large number of stat test combinations that the stats footnote will wrap, adding a line to the lines_left calculation.

Star_percent footnote – This adds one line to your lines_left calculation. The footnote does not appear if no cells need star_percent, so be sure to add this in even if the table that you are using as your guide doesn’t show the footnote.

Any other footnotes – For example, mark_stats_row.

Example Spec:

~comment&lleft.doc>-printrep~defbanner={b1:One line banner}banner={b2:Two line bannerTwo line banner}banner={b3:Three line bannerThree line bannerThree line banner}banner={b4:Four line bannerFour line bannerFour line bannerFour line banner}banner={b5:Five line bannerFive line bannerFive line bannerFive line bannerFive line banner}banner={b6:Six line bannerSix line bannerSix line bannerSix line bannerSix line bannerSix line banner}banner={b7:Seven line bannerSeven line bannerSeven line bannerSeven line bannerSeven line bannerSeven line bannerSeven line banner}footer={f1:One line footer}footer={f2:Two line footerTwo line footer}footer={f3:Three line footerThree line footerThree line footer}footer={f4:Four line footerFour line footerFour line footerFour line footer}footer={f5:Five line footerFive line footerFive line footerFive line footerFive line footer}footer={f6:Six line footerSix line footerSix line footerSix line footerSix line footerSix line footer}footer={f7:Seven line footerSeven line footerSeven line footerSeven line footerSeven line footerSeven line footerSeven line footer}>repeat $t=1,...,7;$l=16,...,22tabset={tab$t:col=: total with dudrow=: [1^1//5] with &[1^1//5] with &[1^1//5] with &[1^1//5]stub={:[lines_left=$l] Block 1 - oneBlock 1 - twoBlock 1 - threeBlock 1 - fourBlock 1 - five[lines_left=$l] Block 2 - oneBlock 2 - twoBlock 2 - threeBlock 2 - fourBlock 2 - five[lines_left=$l] Block 3 - oneBlock 3 - twoBlock 3 - threeBlock 3 - fourBlock 3 - five[lines_left=$l] Block 4 - oneBlock 4 - twoBlock 4 - threeBlock 4 - fourBlock 4 - five}}>endrepeat>printfile lleft1~input $~clean m [1$p]="12345"~exc>repeat $b=1,...,7>repeat $f=1,...,7banner=b$bfooter=f$ftabset=tab$f tab=*>endrepeat>endrepeat~end