|
|
1.1 ! root 1: #print ! 2: It is usually wise to do your formatting with ! 3: the "-ms" macro package developed by Mike Lesk, since ! 4: it does a lot of dirty work for you without any effort ! 5: on your part. ! 6: One of the things "-ms" does is to arrange that equations ! 7: are "displayed" - that is, that they are neatly centered ! 8: and set off from the surrounding text. ! 9: Most of the "-ms" package is described in another script ! 10: called "macros", which you may have already learned. ! 11: For now, we need only know this much: to use "-ms" ! 12: with neqn, add "-ms" to your command line, right after ! 13: the word "nroff", like this ! 14: ! 15: neqn files... | nroff -ms -Txxx ! 16: ! 17: Notice where the "-ms" goes. ! 18: ! 19: In this directory is a file called "Example". ! 20: To prove that you can type the "-ms" in the right place, ! 21: print "Example" with "-ms", then type "ready". ! 22: #once #create Example ! 23: .PP ! 24: This is a tiny little text ! 25: that includes one equation ! 26: or at least it will when you find this line: ! 27: .EQ ! 28: x sub i = y sub i ! 29: .EN ! 30: and convert it into an equation. ! 31: (Naturally I changed it.) ! 32: .pl 1 ! 33: #copyin ! 34: #user ! 35: #uncopyin ! 36: grep 'neqn Example *| *nroff -ms' <.copy >/dev/null ! 37: #log ! 38: #next ! 39: 1.1d 10
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.