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 / s15 < prev    next >
Text File  |  1994-01-25  |  4KB  |  90 lines

  1. @Section
  2.    @Tag { big.changes }
  3.    @Title { Making more radical changes }
  4. @Begin
  5. @PP
  6. The DocumentLayout package makes a large number
  7. of decisions, about how large the pages will be, which fonts will
  8. ordinarily be used, and so on.  The more complex decisions, such as the
  9. appearance of tables of contents in books, can only be changed by
  10. modifying the packages,  but many of the simpler decisions can be changed
  11. quite easily by setting options in the setup file.
  12. @PP
  13. The first step is to obtain a private copy of the setup file.  A local
  14. expert will know where these files are kept; for example, in directory
  15. { @Code "/usr/lout/include"}.  Suppose the @Code report setup file is
  16. copied into a file called { @Code myrep }; then typing
  17. @ID @Code "lout myrep myfile"
  18. instead of
  19. @ID @Code "lout -ireport myfile"
  20. runs Lout with the private copy of the setup file, {@Code "myrep"}.
  21. @PP
  22. Exactly what the setup file contains will depend upon the local
  23. situation, but it will be something like this:
  24. @ID @Code {
  25. "# Setup file for reports."
  26. "# J. H. Kingston, July 1991"
  27. ""
  28. "@SysInclude { ft }"
  29. "@SysInclude { dl }"
  30. "# @SysInclude { eq }"
  31. "# @SysInclude { pas }"
  32. "# @SysInclude { fig }"
  33. "# @SysInclude { tab }"
  34. ""
  35. "@Use { @DocumentLayout"
  36. "  # @InitialFont { Times Base 12p }"
  37. "  # @InitialBreak { adjust 1.2fx }"
  38. "  # @Hyphenate { Yes }"
  39. "  # @PageNumbers { Yes }"
  40. "  # @Columns { Single }"
  41. "  # @HeadingFont { Bold }"
  42. "  # @ParaIndent { 2.0f }"
  43. "  # @PageTop { |0.5rt - @PageNum - }" &0io ""
  44. "  # @PageFoot { @Null }"
  45. "}"
  46. }
  47. Whenever Lout encounters a @Code "#" character not enclosed in quotes,
  48. it ignores it and everything following it up to the end of the line.  The
  49. first two lines of the setup file, then, are comments for the human
  50. reader.  After them come lines which cause Lout to read the file
  51. @Code "ft" of font definitions and the file @Code "dl" which contains
  52. the definition of the DocumentLayout package.
  53. @PP
  54. The next four lines are comments and will be ignored, but if the initial
  55. @Code "#" is deleted they cause Lout to read the definitions of the Eq
  56. equation formatting package and the Pas Pascal program formatting package
  57. [{@Ref kingston92eq}], the Fig diagram drawing package [{@Ref kingston92fig}],
  58. and the Tab table formatting package [{@Ref kingston92tab}].
  59. @PP
  60. Next comes a @Code "@DocumentLayout" symbol within a @Code "@Use"
  61. clause.  It is this symbol whose options may
  62. be changed so as to affect the overall layout.  These options are listed
  63. as comments on the following lines, together with the default value
  64. of each.  To change an option, delete the @Code "#" and change the
  65. value.  For example, the normal paragraph indent produced by @Code "@PP" is
  66. @Code "2.0f" (twice the current font size).  To change it, say to
  67. {@Code "3.0f"}, change the line to
  68. @ID @Code "@ParaIndent { 3.0f }"
  69. The display indent option (not shown here) should probably be changed as well.
  70. @PP
  71. The first five options have the same name as five of the @Code "@Document"
  72. symbol's options, and they determine the default value of those
  73. options.  The @Code "@PageTop" and @Code "@PageFoot" options determine
  74. the appearance of the page header and footer lines (where the page
  75. numbers appear), and are best left to experts;  but, for example,
  76. @ID @Code "@PageTop { |1rt  @PageNum }"
  77. will make the page number appear at the top right of each page, without
  78. the @Code "-" characters.
  79. @PP
  80. The setup file is also the place to add your own definitions.  They should
  81. be placed just before the @Code "@Use" clause, as shown for example in
  82. Section 4 of the report describing the Eq equation formatting package
  83. [{@Ref kingston92eq}].
  84. @PP
  85. Those who wish to make more radical changes will have to copy the @Code dl
  86. file and change the definition of the DocumentLayout package.  This requires
  87. knowledge of the principles of Lout, and the primitive features from which
  88. others are built, as described in the Lout user manual [{@Ref kingston92}].
  89. @End @Section
  90.