home *** CD-ROM | disk | FTP | other *** search
/ Aminet 10 / aminetcdnumber101996.iso / Aminet / util / gnu / groff_src.lha / groff-1.10src / mm / NOTES < prev    next >
Text File  |  1995-04-24  |  2KB  |  104 lines

  1. ######################################################################
  2. Beware!
  3. This may be old information. Trust only the source. :-)
  4.  
  5. Implementation notes. (Or how to make your own national mm)
  6.  
  7. Different commands:
  8.  
  9. COVER [arg]
  10. MT [arg [addressee]]
  11. The arg is part of a filename in mm/*.MT or mm/*.cov.
  12. This file is read when the macro is executed. Therefore it must be
  13. put before any text output.
  14. In each file there are definitions of all extra macros needed for the
  15. cover sheet. MT files is only for compatibility reasons, and has several
  16. limits due to that it don't know when the cover starts, and cannot
  17. change sizes. Use COVER for new coversheet macros.
  18.  
  19. But with MT it is possible to write all of the AT&T covers.
  20. An example can be found in mm/0.MT.
  21.  
  22. When writing a new cover using COVER, have in mind that the cover
  23. should print the page with the COVEND macro. This macro
  24. should be defined by the new macrofile.
  25.  
  26. Here is a part of ms.cov:
  27. > .\"-----------------
  28. > .de COVEND
  29. > .sp |4.2c
  30. > .cov@print-title
  31. > .cov@print-authors
  32. > .cov@print-firm
  33. > .cov@print-abstract
  34. > .cov@print-date
  35. This is important, since COVER disables the page header.
  36. > .pg@enable-top-trap
  37. Should begin with page one (normally).
  38. > .bp 1
  39. And enable the trap at the page footer.
  40. > .pg@enable-trap
  41. > ..
  42.  
  43. #########################
  44.  
  45. Variables for covers:
  46. I = integer
  47. S = string
  48. D = diversion
  49. M = macro
  50.  
  51. Name            Type    Desc.
  52. cov*au            I    The number of authors.
  53.  
  54. cov*title        M    Title collected with .TL.
  55.  
  56. cov*au!x!y        S    Author(s) given to .AU
  57. cov*at!x!y        S    Author(s) title given to .AT
  58.                 x is the author-index [1-cov*au],
  59.                 y is the argument-index [1-9].
  60.                 Look at the table with indexes.
  61.  
  62. cov*firm        I    Author(s) firm.
  63.  
  64. cov*abs-arg        I    Argument to abstract.
  65.  
  66. cov*abs-ind        I    Indent for abstract.
  67.  
  68. cov*abs-name        S    The string 'ABSTRACT', changed with .AST
  69.  
  70. cov*abstract        M    The abstract.
  71.  
  72. cov*new-date        S    The date (todays date if ND is not used)
  73.  
  74. cov*mt-type        S    MT type
  75. cov*mt-addresse     S    MT addressee
  76.  
  77.  
  78. ##########################
  79. Argument-index for cov*au:
  80.  
  81. Index        Desc.
  82. 1        name
  83. 2        initials
  84. 3        location
  85. 4        department
  86. 5        extension
  87. 6        room
  88. 7        arg 7
  89. 8        arg 8
  90. 9        arg 9
  91.  
  92. The location is set to the contents of string cov*location-xxxx
  93. if location is equal to xxxx and cov*location-xxxx is defined
  94. in the file locale.
  95.  
  96.  
  97. Argument-index for cov*at:
  98.  
  99. Index        Desc.
  100. 1        title 1
  101. .        .
  102. .        .
  103. 9        title 9
  104.