Annotation of 42BSD/usr.lib/learn/eqn/L5.1h, revision 1.1.1.1

1.1       root        1: #once #create message
                      2: .ND
                      3: .tr %$
                      4: .EQ
                      5: delim $$
                      6: .EN
                      7: .LP
                      8: One thing that you will occasionally need
                      9: is to be able to get a literal { or } in your
                     10: output, for an expression like
                     11: .EQ
                     12: { "{" a + b "}" } over 2
                     13: .EN
                     14: The way to do this is to place the braces
                     15: that are really to appear ______inside ______quotes,
                     16: like this:
                     17:    .EQ
                     18:    { "{" a + b "}" } over 2
                     19:    .EN
                     20: .br
                     21: The quotes temporarily turn off the special meaning
                     22: of the braces so that you can have them printed.
                     23: 
                     24: The file "Example" has a lot of square brackets in
                     25: it.  Modify them so they are all braces when they are
                     26: printed - so they look like this - then type "ready".
                     27: .pl 1
                     28: #once #create Ref
                     29: .LP
                     30: .EQ
                     31: f"{" x sub 1 ,..., x sub n "}" ~=~ "{" x sub 1 ,..., x sub n "}"
                     32: .EN
                     33: .pl 1
                     34: #once #create Example
                     35: .LP
                     36: .EQ
                     37: f[ x sub 1 ,..., x sub n ] ~=~ [ x sub 1 ,..., x sub n ]
                     38: .EN
                     39: .pl 1
                     40: #
                     41: #once neqn Ref | nroff >X1 &
                     42: #once neqn message Ref | nroff -T$term %s/tinyms -
                     43: #user
                     44: neqn Example | nroff >X2
                     45: #cmp X1 X2
                     46: #log
                     47: #next
                     48: 6.1a 10

unix.superglobalmegacorp.com

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