|
|
1.1 ! root 1: #once #create message ! 2: .ND ! 3: .tr %$ ! 4: .EQ ! 5: delim $$ ! 6: .EN ! 7: .LP ! 8: The next step is to learn how to put big parentheses, ! 9: brackets, braces or bars around equations, like this: ! 10: .EQ ! 11: left | a sup 2 over b sub i right | ! 12: .EN ! 13: ! 14: This is done with two new words called "left" and "right". ! 15: To put bars around something, you simply say, in the middle ! 16: of an equation, ! 17: left | something right | ! 18: and the job is done. ! 19: "something" can indeed be anything, from a single letter ! 20: up to some horribly complicated mess. ! 21: The bars grow to the right height to cover the ! 22: "something", automatically. ! 23: To produce the example above, all that was needed was ! 24: .EQ ! 25: left | a sup 2 over b sub i right | ! 26: .EN ! 27: ! 28: For practice, modify file "Example" so it produces output ! 29: that looks like this, then type "ready". ! 30: .pl 1 ! 31: #once #create Ref ! 32: .LP ! 33: .EQ ! 34: left | ! 35: {a over b ~+~ c over d} over 2 ! 36: right | ! 37: .EN ! 38: .pl 1 ! 39: #once #create Example ! 40: .LP ! 41: .EQ ! 42: replace me ! 43: .EN ! 44: .pl 1 ! 45: # ! 46: #once neqn Ref | nroff >X1 & ! 47: #once neqn message Ref | nroff -T$term %s/tinyms - ! 48: #user ! 49: neqn Example | nroff >X2 ! 50: #cmp X1 X2 ! 51: #log ! 52: #next ! 53: 12.1b 10
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.