|
|
1.1 ! root 1: #once #create message ! 2: .ND ! 3: .EQ ! 4: delim $$ ! 5: .EN ! 6: .LP ! 7: You will get lots of practice ! 8: using braces as we go along. ! 9: One thing to keep in mind is that ! 10: braces can appear ______within braces. ! 11: (Remember that I said that anywhere you ! 12: could use an "x" you could put something in ! 13: braces instead. So to get this: ! 14: .EQ ! 15: e sup {x sup {pi +1} + y sup {pi +1}} ! 16: .EN ! 17: you can type ! 18: ! 19: e sup {x sup {pi +1} + y sup {pi +1}} ! 20: ! 21: The big superscript (the one on the "e") has ! 22: a pair of braces that take in everything. ! 23: Then the "x" and the "y" each have braces ! 24: to delimit their superscripts. ! 25: Of course the braces have to go in the right ! 26: places, or you won't get the output you ! 27: want. ! 28: ! 29: To verify that you are still following this ! 30: lesson, modify "Example" so it looks like ! 31: this, then type "ready". ! 32: .pl 1 ! 33: #once #create Ref ! 34: .LP ! 35: .EQ ! 36: e sup {{x sup {pi +1} + y sup {pi +1}} over 2} ! 37: .EN ! 38: .pl 1 ! 39: #once #create Example ! 40: .LP ! 41: .EQ ! 42: e sup {x sup {pi +1} + y sup {pi +1}} ! 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: #fail ! 52: Don't forget that you need braces for the overall superscript, ! 53: and also for the "over" part. ! 54: #log ! 55: #next ! 56: 5.1e 10 ! 57: 5.2d 5
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.