home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume20 / psroff / part03 / ltest.m < prev    next >
Encoding:
Text File  |  1989-10-17  |  8.1 KB  |  393 lines

  1. .\"Document revision 1.12 89/08/25
  2. .nr Ej 1
  3. .TL
  4. troff2ps testing script.
  5. .AU "Chris Lewis"
  6. .AS 1 10
  7. Ever since the dawn of time, people have been dreaming of being
  8. able to use "troff" on devices other than Wang Cat Phototypesetters.
  9. This is a test document of one such thingie.
  10. .AE
  11. .MT 4 1
  12. .SP 2i
  13. .H 1 "Line Test"
  14. .P
  15. This line should be exactly 5 inches long:
  16. .DS
  17. \l'5i\&\(ru'
  18. .DE
  19. .H 2 "Extended font test"
  20. .P
  21. Extended font test:
  22. .eX I
  23. This is a standard display - this should be 
  24. Courier, fixed width.
  25. .eE
  26. .H 2 "Simple paragraphs"
  27. .P
  28. This is some more of the testing.  Can't you tell?
  29. Testing, testing, testing testing.
  30. This book is a practical guide to the \fBUNIX\fP system and all users 
  31. from the novice to the expert should find it useful.
  32. Many examples are used throughout the text to illustrate techniques that make
  33. the system attractive to use.  By giving examples of the interactions
  34. between commands, the user is able to take full advantage of the power of the
  35. \fBUNIX\fP system.
  36. .P
  37. This is some more of the testing.  Can't you tell?
  38. Testing, testing, testing testing.
  39. This book is a practical guide to the \fBUNIX\fP system and all users 
  40. from the novice to the expert should find it useful.
  41. Many examples are used throughout the text to illustrate techniques that make
  42. the system attractive to use.  By giving examples of the interactions
  43. between commands, the user is able to take full advantage of the power of the
  44. \fBUNIX\fP system.
  45. .H 1 "Lists"
  46. .P
  47. Bullet list:
  48. .BL
  49. .LI
  50. \(<- that was a bullet.
  51. .LI
  52. This is 2
  53. .LI
  54. Dashlist:
  55. .DL
  56. .LI
  57. Dash
  58. .LI
  59. Dasher
  60. .LE
  61. .LE
  62. .H 2 "Ligature test"
  63. .P
  64. Ligature test: fido, flu, duffle, duffin
  65. .P
  66. nroff doesn't like double quotes too much.
  67. "X" should look reasonable.
  68. More 'test` `test'\*F
  69. .FS
  70. This here's a footnote - slightly smaller pitch.
  71. .FE
  72. This is more of the paragraph.
  73. .SK
  74. .H 1 "Different Fonts"
  75. .P
  76. This is normal\f3Bold\fP\f2italic\fPnormal.
  77. This is normal \f3Bold\fP \f2italic\fP normal.
  78. .S 36 38
  79. .P
  80. \(bs
  81. .S
  82. .S 14 26
  83. .P
  84. that was the logo at 36 point.  This sentence is 14 point.
  85. .S
  86. .P
  87. The Logo will be printed whether or not you have raster fonts.
  88. The original logo is a stylized "cX".
  89. If you don't have the vfonts installed, the rest of the line will be
  90. normal characters with big spacing.
  91. If the fonts are installed, you will see 75DPI big print.
  92. .P
  93. This is some more of bigger stuff:
  94. .S 22
  95. Testing
  96. .I Testing
  97. .B Testing
  98. .S
  99. .SP
  100. .S 6
  101. 6 Point
  102. .br
  103. .S 7
  104. 7 Point
  105. .br
  106. .S 8
  107. 8 Point
  108. .br
  109. .S 9
  110. 9 Point
  111. .br
  112. .S 10
  113. 10 Point
  114. .br
  115. .S 11
  116. 11 Point
  117. .br
  118. .S 12
  119. 12 Point
  120. .br
  121. .S 14
  122. 14 Point
  123. .br
  124. .S 16
  125. 16 Point
  126. .br
  127. .S 18
  128. 18 Point
  129. .br
  130. .S 20
  131. 20 Point
  132. .br
  133. .S 22
  134. 22 Point
  135. .br
  136. .S 24
  137. 24 Point
  138. .br
  139. .S 28
  140. 28 Point
  141. .br
  142. .S 36
  143. 36 Point
  144. .br
  145. .S 10
  146. .P
  147. Now, lets have some phun with phonts:
  148. .br
  149. .fp 1 H
  150. .fp 2 HO
  151. .fp 3 HB
  152. .ft 1
  153. This should be Helvetica.
  154. \f2Helvetica Oblique\fP, \f3Helvetica Bold\fP.
  155. .br
  156. .fp 1 BR
  157. .fp 2 BO
  158. .fp 3 BB
  159. .ft 1
  160. .P
  161. This should be Bookman.
  162. \f2Bookman Oblique\fP, \f3Bookman Bold\fP.
  163. .br
  164. .fp 1 R
  165. .fp 2 I
  166. .fp 3 B
  167. .H 3 "Testing 3"
  168. hello 3
  169. .H 4 "Testing 4"
  170. hello 4
  171. .H 5 "Testing 5"
  172. hello 5
  173. .H 6 "Testing 6"
  174. hello 6
  175. .H 7 "Testing 7"
  176. hello 7
  177. .H 1 "Some Equations"
  178. .S 16
  179. Equations:
  180. .S
  181. .DS
  182. .EQ
  183. left [ x sup 2 + y sup 2 over alpha right ] ~=~ 1
  184. .EN
  185. .DE
  186. .br
  187. .DS
  188. .EQ
  189. x dot = f(t) bar
  190. .EN
  191. .DE
  192. .DS
  193. .EQ
  194. lim from {n -> inf} sum from 0 to n x sub i
  195. .EN
  196. .DE
  197. .DS
  198. .EQ
  199. t ~=~ 2 pi int sub 0 sup 1
  200. sin ( sqrt { x sup 2 + a sup 2 } ) dx
  201. .EN
  202. .DE
  203. .\".P
  204. .\"This is a test of piling (though, this isn't eqn):
  205. .\".DS I
  206. .\"\b'\(lt\(lk\(lb'\b'\(lc\(lf x \b'\(rc\(rf\b'\(rt\(rk\(rb'
  207. .\".DE
  208. .H 2 "More Equations"
  209. .DS
  210. .EQ
  211. G(z)~mark =~ e sup { ln ~ G(z) }
  212. ~=~ exp left (
  213. sum from k>=1 { S sub k z sup k } over k right )
  214. ~=~ prod from k>=1 e sup { S sub k z sup k / k }
  215. .EN
  216. .DE
  217. .DS
  218. .EQ
  219. lineup = left ( 1 + S sub 1 z +
  220. { S sub 1 sup 2 z sup 2 } over 2! + ... right )
  221. left ( 1 + { S sub 2 z sup 2 } over 2
  222. + { S sub 2 sup 2 z sup 4 } over { 2 sup 2 cdot 2! }
  223. + ... right ) ...
  224. .EN
  225. .DE
  226. .DS
  227. .EQ
  228. lineup = sum from m>=0 left (
  229. sum from
  230. pile { k sub 1 ,k sub 2 ,..., k sub m >= 0
  231. above
  232. k sub 1 +2k sub 2 + ... + mk sub m = m }
  233. { S sub 1 sup { k sub 1 } } over { 1 sup k sub 1 k sub 1 ! } ~
  234. { S sub 2 sup { k sub 2 } } over { 2 sup k sub 2 k sub 2 ! } ~
  235. { S sub m sup { k sub m } } over { m sup k sub m k sub m ! }
  236. right ) z sup m
  237. .EN
  238. .DE
  239. .H 2 "Hanging Caps"
  240. .fp 1 PA
  241. .fp 3 PB
  242. .ta 1i
  243. .in +0.6i
  244. .ll -0.3i
  245. .ti -0.3i
  246. \v'1'\s36P\s0\v'-1'ater 
  247. .de Xx
  248. 'in -0.6i
  249. ..
  250. .wh \n(nlu+1.5v Xx
  251. noster qui est
  252. in caelis scanctificetur nomen tuum; adveniat regnum tuum;
  253. fiat voluntus tua, sicut in caelo, et in terra ...
  254. Amen.
  255. Too bad I can't read Latin so I don't know what that line meant.
  256. But it should be a good example of INITIAL hanging caps.
  257. (AND Palatino...)
  258. .fp 1 R
  259. .fp 3 B
  260. .H 1 "tbl output"
  261. .DS
  262. .TS
  263. allbox doublebox;
  264. c c c
  265. l l l.
  266. Command    Reference Section    Action
  267.  
  268. cc    CP    Compiles C programs
  269. cp    C    Copies files
  270. disk cp    C    Copies archive media
  271. lc    C    Lists files
  272. login    M    Access to the system
  273. troff    CT    Typesets text
  274. .TE
  275. .DE
  276. .DS
  277. .TS
  278. box;
  279. c s s
  280. c | c | c
  281. l | l | n.
  282. Major New York Bridges
  283. =
  284. Bridge    Designer    Length
  285. _
  286. Brooklyn    JA Roebling    1595
  287. Manhattan    G Lindenthal    1470
  288. Williamsburg    LL Buck    1600
  289. _
  290. Queensborough    Palmer &    1182
  291.       Hornbostel
  292. _
  293.         1380
  294. Triborough    OH Ammann    _
  295.         383
  296. _
  297. Bronx Whitestone    OH Ammann    2300
  298. Throgs Neck    OH Ammann    1800
  299. _
  300. George Washington    OH Ammann    3500
  301. .TE
  302. .DE
  303. .DS
  304. .TS
  305. box;
  306. cfB s s s.
  307. Composition of Foods
  308. _
  309. .T&
  310. c | c s s
  311. c | c s s.
  312. Food    Percent by Weight
  313. \^    _
  314. \^    Protein    Fat    Carbo-
  315. \^    \^    \^    hydrate
  316. _
  317. .T&
  318. l | n | n | n.
  319. Apples    .4    .5    13.0
  320. Halibut    18.4    5.2    ...
  321. Lima beans    7.5    .8    22.o
  322. Milk    3.3    4.0    5.0
  323. Mushrooms    3.5    .4    6.0
  324. Rye bread    9.0    .6    52.7
  325. .TE
  326. .DE
  327. .H 1 "A Test of Two Column Output"
  328. .2C
  329. .P
  330. The IBM salesman and the IBM system analyst went to spend 
  331. a weekend in the forest, hunting bear.
  332. They hired a log cabin, and when they got there, took 
  333. their backpacks off and put them inside.
  334. At which point the salesman said to the systems analyst:
  335. "You unpack while I go and find us a bear."
  336. The analyst finished unpacking and then went and sat 
  337. outside to await events. He did not have to wait too long.
  338. Soon he could hear noises in the forest. The noises got 
  339. nearer - and suddenly there was the salesman, running 
  340. across the clearing toward the cabin, pursued by one of the 
  341. largest and most ferocious Brown Bears the analyst had 
  342. ever seen.
  343. "Open the door! shouted the salesman.
  344. The analyst opened the door.
  345. The salesman ran to the door, suddenly stopped, and 
  346. stepped aside.
  347. The Bear carried by its momentum, continued though the 
  348. door and disappeared inside.
  349. The salesman promptly shut the door on it, turned, looked 
  350. at the analyst, and said:
  351. "Ok, you skin that one while I go rustle us up another."
  352. .P
  353. The IBM salesman and the IBM system analyst went to spend 
  354. a weekend in the forest, hunting bear.
  355. They hired a log cabin, and when they got there, took 
  356. their backpacks off and put them inside.
  357. At which point the salesman said to the systems analyst:
  358. "You unpack while I go and find us a bear."
  359. The analyst finished unpacking and then went and sat 
  360. outside to await events. He did not have to wait too long.
  361. Soon he could hear noises in the forest. The noises got 
  362. nearer - and suddenly there was the salesman, running 
  363. across the clearing toward the cabin, pursued by one of the 
  364. largest and most ferocious Brown Bears the analyst had 
  365. ever seen.
  366. "Open the door! shouted the salesman.
  367. The analyst opened the door.
  368. The salesman ran to the door, suddenly stopped, and 
  369. stepped aside.
  370. The Bear carried by its momentum, continued though the 
  371. door and disappeared inside.
  372. The salesman promptly shut the door on it, turned, looked 
  373. at the analyst, and said:
  374. "Ok, you skin that one while I go rustle us up another."
  375. .P
  376. The IBM salesman and the IBM system analyst went to spend 
  377. a weekend in the forest, hunting bear.
  378. They hired a log cabin, and when they got there, took 
  379. their backpacks off and put them inside.
  380. At which point the salesman said to the systems analyst:
  381. "You unpack while I go and find us a bear."
  382. The analyst finished unpacking and then went and sat 
  383. outside to await events. He did not have to wait too long.
  384. Soon he could hear noises in the forest. The noises got 
  385. nearer - and suddenly there was the salesman, running 
  386. across the clearing toward the cabin, pursued by one of the 
  387. largest and most ferocious Brown Bears the analyst had 
  388. ever seen.
  389. "Open the door! shouted the salesman.
  390. .1C
  391. .CS
  392. .TC
  393.