summaryrefslogtreecommitdiff
path: root/usr.bin/learn/lib/eqn/L7.1d
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/learn/lib/eqn/L7.1d')
-rw-r--r--usr.bin/learn/lib/eqn/L7.1d37
1 files changed, 37 insertions, 0 deletions
diff --git a/usr.bin/learn/lib/eqn/L7.1d b/usr.bin/learn/lib/eqn/L7.1d
new file mode 100644
index 00000000000..72eb0c49b9b
--- /dev/null
+++ b/usr.bin/learn/lib/eqn/L7.1d
@@ -0,0 +1,37 @@
+#once #create message
+.ND
+.tr %$
+.EQ
+delim $$
+.EN
+.LP
+Let's do one more example of from-to for practice
+before we go on to the next topic.
+Modify "Example" so it produces output that looks
+like this, then type "ready".
+.pl 1
+#once #create Ref
+.EQ
+delim $$
+.EN
+.LP
+Let $Q( pi )$ be $sum from {i= pi sub 1} to {i= pi sub 2} x sub i$.
+.pl 1
+#once #create Example
+.EQ
+delim $$
+.EN
+.LP
+.pl 1
+#
+#once neqn Ref | nroff >X1 &
+#once neqn message Ref | nroff -T$term %s/tinyms -
+#user
+neqn Example | nroff >X2
+#cmp X1 X2
+#fail
+Don't forget to set delimiters before the .LP line,
+and get the spaces right around the dollar signs.
+#log
+#next
+8.1a 10