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 / s02 < prev    next >
Text File  |  1994-01-25  |  5KB  |  134 lines

  1. @Section
  2.    @Tag { displays }
  3.    @Title { Displays }
  4. @Begin
  5. @PP
  6. The @Code "@Display" symbol displays the following thing in the centre
  7. of the page or column:
  8. @ID @Code "@Display @I Centred"
  9. has result
  10. @Display @I Centred
  11. Notice that @Code "@I Centred" does not have to be grouped within braces;
  12. it is already a single thing.  Spaces (@Code "@DP" symbols) are inserted
  13. automatically above and below the display, so no paragraph symbols are
  14. needed anywhere near the display.
  15. @PP
  16. The display can be made to appear at the left margin by using the
  17. {@Code "@LeftDisplay"} symbol instead of {@Code "@Display"}, or indented
  18. by using {@Code "@IndentedDisplay"}.  There are also @Code "@CentredDisplay"
  19. and @Code "@CenteredDisplay" symbols which are the same as
  20. {@Code "@Display"}.  In general, the word @Code Centred may be spelt
  21. @Code Centered wherever it appears.
  22. @PP
  23. Each display symbol has a `raw' version, which means that no space is
  24. inserted above or below; the user must therefore add paragraph symbols:
  25. @ID @Code {
  26. "... preceding text."
  27. "@DP"
  28. "@RawIndentedDisplay @I Emma"
  29. "@DP"
  30. "@RawIndentedDisplay @I"
  31. "{ Mansfield Park }"
  32. "@DP"
  33. "following text ..."
  34. }
  35. has result
  36. @ID {
  37. ... preceding text.
  38. @DP
  39. @RawIndentedDisplay @I Emma
  40. @DP
  41. @RawIndentedDisplay @I { Mansfield Park }
  42. @DP
  43. following text ...
  44. }
  45. The point of this particular example is that two consecutive non-raw
  46. displays would be separated by two @Code "@DP" symbols, which is too
  47. much.  A better way to do this, using a list, will be presented in the
  48. next section.
  49. @PP
  50. Displays may be {@I aligned}, which means that nominated points within a
  51. sequence of displays are made to appear directly beneath each
  52. other.  Displays may also be {@I numbered}, which means that an
  53. automatically generated number is placed at the right-hand margin.  For
  54. example, here is a first display:
  55. @BeginNumberedDisplays
  56. @BeginAlignedDisplays
  57. @CentredAlignedNumberedDisplay
  58.   @Tag { fibeq }
  59. @Eq { F sub n ^= F sub n-1 + F sub n-2 }
  60. and here is a second display, which is aligned on its @Eq {equal} sign
  61. with the first, and also numbered in sequence with it:
  62. @CentredAlignedNumberedDisplay
  63. @Eq { F sub n - F sub n-1 ^= F sub n-2 }
  64. @EndNumberedDisplays
  65. @EndAlignedDisplays
  66. Mathematical examples have been chosen because they are the most common
  67. aligned and numbered displays; but any kind of display may be aligned or
  68. numbered.
  69. @PP
  70. Notice that the two displays are centred as a block as well as
  71. aligned.  Altogether then we have four ways in which displays vary:
  72. @BL
  73. @LI { A display can be raw or not raw; }
  74. @LI { It can be a {@Code "@Display"}, {@Code "@LeftDisplay"},
  75. {@Code "@IndentedDisplay"}, {@Code "@CentredDisplay"} or
  76. {@Code "@CenteredDisplay"}; }
  77. @LI { It can be aligned or not aligned; }
  78. @LI { It can be numbered or not numbered. }
  79. @EL
  80. All possible combinations are allowed.  The display that has everything
  81. is called
  82. @ID @Code { "@RawCentredAlignedNumberedDisplay" &0io }
  83. By leaving out some or all of {@Code Raw}, {@Code Aligned}, and
  84. {@Code Numbered}, and by changing or leaving out {@Code Centred},
  85. we get all these combinations.
  86. @PP
  87. When aligned displays are used, it is necessary to indicate where the
  88. aligned group begins and ends, by inserting @Code "@BeginAlignedDisplays"
  89. just before the first, and @Code "@EndAlignedDisplays" just after the
  90. last.  The alignment points are indicated by preceding them by the
  91. symbol {@Code "^"}.  Numbered displays are similarly bracketed by
  92. @Code "@BeginNumberedDisplays" and {@Code "@EndNumberedDisplays"}.  So
  93. then, with the help of the @Code "@Eq" equation formatting package
  94. [{@Ref kingston92eq}], here is the input for the two displays given
  95. earlier:
  96. @ID @Code {
  97. "... a first display:"
  98. "@BeginNumberedDisplays"
  99. "@BeginAlignedDisplays"
  100. "@CentredAlignedNumberedDisplay"
  101. "  @Tag { fibeq }"
  102. @OneCol { "@Eq { F sub n ^= F sub n-1 + F sub n-2 }" &0io }
  103. "and ... in sequence with it:"
  104. "@CentredAlignedNumberedDisplay"
  105. @OneCol { "@Eq { F sub n - F sub n-1 ^= F sub n-2 }" &0io }
  106. "@EndNumberedDisplays"
  107. "@EndAlignedDisplays"
  108. "Mathematical examples ..."
  109. }
  110. No braces need enclose @Code "@Eq { ... }" because it is already a
  111. single entity.  The @Code "@Tag { fibeq }" part is optional and is
  112. explained in Section {@NumberOf cross}.  Alignment and numbering work
  113. quite independently; they don't have to start or end together, and there
  114. can be non-aligned and non-numbered displays among the others.
  115. @PP
  116. @Code "@BeginNumberedDisplays" has two {@I options}:  subsidiary
  117. symbols which modify the result.  For example,
  118. @ID @Code {
  119. "@BeginNumberedDisplays"
  120. "   style { [tag] }"
  121. "   start { 12.5 }"
  122. }
  123. will cause the associated numbered displays to be labelled [12.5],
  124. [12.6], and so on.  The first label is the @Code style option with
  125. @Code tag replaced by the @Code start option.  Font changes and other
  126. symbols are acceptable within the @Code style option.  When omitted, the
  127. options have default values @Code "(tag)" and @Code "1" respectively.
  128. @PP
  129. Every symbol introduced in this section has an abbreviated form
  130. consisting of @Code "@" followed by its capital letters only.  For
  131. example, @Code "@BeginNumberedDisplays" can be abbreviated to {@Code "@BND"},
  132. and the display that has everything to {@Code "@RCAND"}.
  133. @End @Section
  134.