From 5c33bfa47b213f93498fe8c5dc17f90f4d116c06 Mon Sep 17 00:00:00 2001 From: Ian Darwin Date: Mon, 28 Sep 1998 16:01:53 +0000 Subject: import BTL learn(1) lessons/eqn --- usr.bin/learn/lib/eqn/L5.1a | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 usr.bin/learn/lib/eqn/L5.1a (limited to 'usr.bin/learn/lib/eqn/L5.1a') diff --git a/usr.bin/learn/lib/eqn/L5.1a b/usr.bin/learn/lib/eqn/L5.1a new file mode 100644 index 00000000000..1434e1e3cb1 --- /dev/null +++ b/usr.bin/learn/lib/eqn/L5.1a @@ -0,0 +1,45 @@ +#once #create message +.ND +.EQ +delim $$ +.EN +.LP +So far we have carefuly skirted around a potential +problem; maybe you've wondered about it. +Suppose we want to produce an equation that looks +like this: +.EQ +x sup { pi + 1 } +.EN +The superscript is complicated, in that it contains +both a $pi$ and a +1, which has to be separated +from the $pi$ by a blank. +But I already told you that a blank terminates +the superscript. What's going on? + +As the first step to finding out, will the input +equation + + x sup pi + 1 + +produce the output + + $x sup {pi + 1}$ ? +Answer yes or no. +(You can play with the file "Example" if you like.) +.pl 1 +#once #create Example +.LP +.EQ +replace me +.EN +.pl 1 +# +#once neqn message | nroff -T$term %s/tinyms - +#copyin +#user +#uncopyin +#match no +#log +#next +5.1b -- cgit v1.2.3