home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / OSK / APPS / lout2.lzh / LOUT2 / DOC / TR.BEGIN / s06 < prev    next >
Text File  |  1994-01-25  |  1KB  |  27 lines

  1. @Section
  2.    @Tag { cnp }
  3.    @Title { Conditional new page }
  4. @Begin
  5. @PP
  6. Occasionally Lout will insert a page break directly following a heading,
  7. and this looks very poor.  The solution is to precede the heading with
  8. the conditional new page symbol {@Code "@CNP"}, which checks whether
  9. enough space is left in the page or column for a heading and at least
  10. two lines of text.  If so, @Code "@CNP" does nothing; if not, @Code "@CNP"
  11. causes a new page or column to be begun, like {@Code "@NP"}.  The recommended
  12. arrangement is
  13. @ID @Code {
  14. "end of previous part."
  15. "@DP"
  16. "@CNP"
  17. "@Heading { A Heading }"
  18. "@PP"
  19. "First paragraph of next part ..."
  20. }
  21. The @Code "@CNP" symbol should be preceded by either @Code "@DP" or
  22. @Code "@LP", preferably {@Code "@DP"}, and this determines the amount of
  23. space when the @Code "@NP" action does not occur.  In most cases it will
  24. be better to use the @Code "@Section" symbol described below, which has
  25. @Code "@CNP" included in it, rather than using @Code "@CNP" directly.
  26. @End @Section
  27.