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.TAB / s4 < prev    next >
Text File  |  1994-01-25  |  2KB  |  62 lines

  1. @Section
  2.    @Title { Aligned columns }
  3. @Begin
  4. @PP
  5. Columns of numbers are often presented with decimal points aligned:
  6. @CD @Tab
  7.     @Fmta { @Col A }
  8. {
  9.     @Rowa A { 5^.46 }
  10.     @Rowa A { 128^.2 }
  11.     @Rowa A { 3^.4159 }
  12.     @Rowa A { 5772^ }
  13. }
  14. This is achieved with Tab by placing the @Code "^" symbol (which
  15. actually comes from the DocumentLayout package) just before the
  16. alignment point in each entry:
  17. @ID @Code {
  18. "@Tab"
  19. "    @Fmta { @Col A }"
  20. "{"
  21. "    @Rowa A { 5^.46 }"
  22. "    @Rowa A { 128^.2 }"
  23. "    @Rowa A { 3^.4159 }"
  24. "    @Rowa A { 5772^ }"
  25. "}"
  26. }
  27. The equals signs of equations can be aligned in the same way.  The
  28. format of such columns should not contain @Code "@CC" or {@Code "@RR"}.
  29. @PP
  30. The simplest way to get a heading over an aligned column is to use the
  31. @Code "^" symbol in the heading as well.  If it is not possible to do
  32. this, for example because the heading entry is a paragraph of text
  33. broken over more than one line, the most viable alternative is to use
  34. @Code "@Over" in the heading line's format to make the heading column
  35. span over the aligned column:
  36. @ID @Code {
  37. "@Tab"
  38. "    @Fmta { @Col @CC H @Over A }"
  39. "    @Fmtb { @Col A }"
  40. "{"
  41. "    @Rowa H { Heading }"
  42. "    @Rowb A { 5^.46 }"
  43. "    @Rowb A { 128^.2 }"
  44. "    @Rowb A { 3^.4159 }"
  45. "    @Rowb A { 5772^ }"
  46. "}"
  47. }
  48. for example produces
  49. @CD @Tab
  50.     @Fmta { @Col @CC H @Over A }
  51.     @Fmtb { @Col A }
  52. {
  53.     @Rowa H { Heading }
  54.     @Rowb A { 5^.46 }
  55.     @Rowb A { 128^.2 }
  56.     @Rowb A { 3^.4159 }
  57.     @Rowb A { 5772^ }
  58. }
  59. Unfortunately, the aligned entries are left-justified in the column,
  60. not centred.
  61. @End @Section
  62.