home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / textutil / jgpsuite / xmp / EXMERGE < prev    next >
Encoding:
Text File  |  1992-05-20  |  3.2 KB  |  90 lines

  1. .// Cannot be used with JGDoc; requires a Merge file
  2. .// 32.              Extab
  3. .// By reading this file you have entered into a contract specified in the
  4. .// file Licence. Please refer thereto for details.
  5. .nofj
  6. .setm 6
  7. :
  8. \g\f}Title} by \f}Author}, published by \f}Publisher} at \f}Price},
  9. :
  10. .col
  11. \d| |The Old Statesman   |
  12. .col
  13. | |Tumbledown Printshop|
  14. .col
  15. | |Gutenberg-by-Sea    |
  16.  
  17.  
  18. Dear \f}Name},
  19.  
  20. .setu 5 :\f}Ex}:
  21. .setu 1 :\f}Reviewer}:
  22. .setu 2 :\f}add1}:
  23. .setu 3 :\f}add2}:
  24. .setu 4 :\f}postcode}:
  25. We should be glad if you would review the following books for us next month:
  26. \u6 \u6
  27. and
  28. \u6
  29. .if \u5
  30. .fj
  31.  
  32. \g}Since this is the first review you have written for us, I here give you an
  33. example of the kind of thing your predecessor wrote:\|
  34. "It is always a delight to read \f}Author} at her best, though \f}Title
  35. (\f}Publisher}, \f}Price}) is perhaps not quite as fine as her last book. Still,
  36. this thundering yarn of passion and fury in Ante\-Bellum Virginia makes
  37. \g\f}Title , the latest offering from \f}Author}, look a little
  38. milk\-amd\-water, especially as the court of Elizabeth I is a somewhat
  39. overdone location. (\f}Publisher}, \f}Price}). On the other hand, I would
  40. rather read any number of
  41. \f}Title}s than \g\f}Author}'s boring new offering; I am surprised that
  42. \f}Publisher} continues to put out this kind of rubbish, especially at a price
  43. of \f}Price}. (\f}Title})."
  44.  
  45. We would recommend you not to use this as a model.
  46. .fi
  47.  
  48. Yours sincerely,
  49.  
  50.  
  51. .col
  52. | |Literary Editor
  53.  
  54. .nofj
  55. \u1
  56. \u2
  57. \u3
  58. \u4
  59.  
  60. .if \u5
  61. .fj
  62. .setst :| :
  63. .setend : |:
  64. .stop include comments?
  65. This example shows the use of \\f to pick up fields from records, both
  66. automatically for repeated copies of the same text (classic Mailmege), and
  67. changing the record in mid\-text by \\g. It also shows the use of .if for the
  68. conditional inclusion of text, and .setu and \\u for picking up user strings for
  69. later use. Notice that, even if .nofj, wordwrap occurs to keep within margins.
  70. You will be offered a user variable file before you exit. There are no forward
  71. references in this text, so you do not need it. You might be interested, though,
  72. to see its format. Note the use of .SETM rather than .SETU for the (macro)string
  73. containing directives that should be reinterpreted wherever it is used, rather
  74. than once where it is defined.
  75.  
  76. I do not know, and doubt the existence of, any wordprocessors that can hold
  77. fields of one record for use after several records have been read in, as is
  78. used for the address at the bottom of each letter. Of course, systems that
  79. allow multiple merge files could do it their way, and there are nine and
  80. forty ways of constructing tribal lays, and evry single one of them is right.
  81.  
  82. An alternative approach would be to use .RPT. This would not be so appropriate
  83. here, since there could be the danger of getting two letters on the same page.
  84. Moreover, an explicit \\g would be needed at the bottom of the text. If, as is
  85. not the case here, the text were longer than a page, there would also be a
  86. blank page between each repetition. Finally, the last repetition is longer
  87. than the others, but .rpt leaves just enough space on a page as was used by the
  88. last repetition for the next one.
  89. .fi
  90.