Annotation of 43BSDTahoe/usr.lib/learn/eqn/L5.1b, revision 1.1.1.1

1.1       root        1: #once #create message
                      2: .ND
                      3: .EQ
                      4: delim $$
                      5: .EN
                      6: .LP
                      7: The problem is really that we need a way to tell neqn
                      8: that in spite of blanks, a group of things (like the $pi$
                      9: and the +1) have to be kept together as a single superscript.
                     10: The way that this is done is to enclose the group in
                     11: braces - the characters { and } - like this:
                     12: 
                     13:   .EQ
                     14:   x sup {pi + 1}
                     15:   .EN
                     16: 
                     17: This tells neqn that everything inside the braces belongs
                     18: to the superscript, in spite of blanks and tildes.
                     19: (You don't need blanks before and after braces themselves -
                     20: like tildes, they act as delimiters.)
                     21: 
                     22: Modify the file "Example" so that the output looks like
                     23: the following, then type "ready".
                     24: (To get $==$, type ==.)
                     25: .pl 1
                     26: #once #create Ref
                     27: .LP
                     28: .EQ
                     29: x sup {pi +1} == y sup z sup {alpha + beta}
                     30: .EN
                     31: .pl 1
                     32: #once #create Example
                     33: .LP
                     34: .EQ
                     35: replace me
                     36: .EN
                     37: .pl 1
                     38: #
                     39: #once neqn Ref | nroff >X1 &
                     40: #once neqn message Ref | nroff -T$term %s/tinyms -
                     41: #user
                     42: neqn Example | nroff >X2
                     43: #cmp X1 X2
                     44: #log
                     45: #next
                     46: 5.1c 10
                     47: 5.2b 5

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.