summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/eqn/L3.1a
diff options
context:
space:
mode:
authorIan Darwin <ian@cvs.openbsd.org>1998-09-28 16:01:53 +0000
committerIan Darwin <ian@cvs.openbsd.org>1998-09-28 16:01:53 +0000
commit5c33bfa47b213f93498fe8c5dc17f90f4d116c06 (patch)
tree0dcf528168e800bebf68c46bb8296b34b3342caa /usr.bin/learn/lib/eqn/L3.1a
parent8d70bdbdf6fd88bf88b9a384cfaafb6668c804ec (diff)
import BTL learn(1) lessons/eqn
Diffstat (limited to 'usr.bin/learn/lib/eqn/L3.1a')
-rw-r--r--usr.bin/learn/lib/eqn/L3.1a53
1 files changed, 53 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/eqn/L3.1a b/usr.bin/learn/lib/eqn/L3.1a
new file mode 100644
index 00000000000..a33f08973a2
--- /dev/null
+++ b/usr.bin/learn/lib/eqn/L3.1a
@@ -0,0 +1,53 @@
+#once #create message
+.ND
+.PP
+Now that we have some of the preliminaries out of the way,
+we can get on to doing real mathematics.
+I have been slipping small things into the example files
+as we go along so that you will at least have seen
+some common neqn constructions.
+
+One of the most frequent is the word "sub", which
+indicates a subscript, like this:
+
+ .EQ
+ x sub i + y sub j
+ .EN
+
+which produces
+.EQ
+x sub i + y sub j
+.EN
+The main thing to notice is that the blanks are delimiters -
+the subscript of "x" is "i"; the blank after the "i" marks
+the end of the subscript.
+
+Modify the file "Example" so the equation in it looks like
+this:
+.EQ
+x sub alpha ~=~ y sub pi ~+~ z sub pi
+.EN
+Then type "ready".
+.pl 1
+#once #create Ref
+.LP
+.EQ
+x sub alpha ~=~ y sub pi ~+~ z sub pi
+.EN
+.pl 1
+#once #create Example
+.LP
+.EQ
+xxx
+.EN
+.pl 1
+#
+#once neqn Ref | nroff >X1 &
+#once neqn message | nroff -T$term %s/tinyms -
+#user
+neqn Example | nroff >X2
+#cmp X1 X2
+#log
+#next
+3.1b 10
+3.2a 5