.pg ! ! .lm CMDTAB.nf ________ | | | | | .EQ | | | |________| .fi.lm LEFTMG .hl 1;EQ (equation) command .ix Equation mode .ix EQ The EQ command sets parameters in anticipation of a displayed equation. .s.lm +7.nf _________ _________________________________________ | | | | .EQ | [p1"lines", p2, p3"lines", p4"lines"] | | | | |_________|_________________________________________| .fi.lm LEFTMG.s The EQ command sets modes appropriate for printing displayed equations. .s 2;.lm LEFTMG Defaults: .s;.lm +7 This command causes a break. The three parameters to the .EQ command are defined as follows - .b .i-5 p1 - test page, default setting = 4 .br After the amount of white space is allocated by p3, a test page will be performed to make sure the equation will fit on the page. .b.i-5 p2 - indentation, default setting = 0 .br This is the amount to indent all lines until a .EEQ is encountered. This is the method used to center the equation, while allowing the input to be left justified. This should be entered as + or -, eg., +23, because it is ^&relative\& to the left margin. .b.i-5 p3 - skip, default setting = 2 .br This is the number of "lines" to space down before beginning the printing of the equation. Can be specified in 1/8 lines. .b.i-5 p4 - line spacing, default setting = 1/8 .br This parameter is equivalent to the .SP command. Normally, we want each line in the input file to be interpreted as 1/8 line movement on the Diablo printer for finest resolution. .b All parameters will be reset when .EEQ is encountered. .b.lm-7 Notes: .s;.lm +7 Fill and justify are turned off for the duration of the EQ block. .b In the EQ block, the quoted space character %#, is interpreted as a half space (horizontal). .b This is a fairly painful way to create equations. There are more reasonable alternatives which, I believe, can yield equally well displayed equations. Claire Nielson of Los Alamos National Labs has done such things with his TEDI editor/formatter. .b .b2 The file EQTMPLT.RNO is used as an equation template file. It is listed here. .b EQTMPLT.RNO........................ .nf.nj %.eq %! 2 %! %! %! %!-1/4 %! %! %! %! 1/2 %! %! %! %! 1/4 %! %! %! %! 1 %! %! %! %!-1/4 %! %! %! %! 1/2 %! %! %! %! 1/4 %! %! %! %! 0 %! %! %! %!-1/4 %! %! %! %! 1/2 %! %! %! %! 1/4 %! %! %! %! -1 %! %! %! %!-1/4 %! %! %! %! 1/2 %! %! %! %! 1/4 %! %! %! %! -2 %! %.eeq .f.j .pg .lm CMDTAB.nf ________ | | | | | .EQ | | | |________| .fi.lm LEFTMG .s 2;.lm LEFTMG Example: .br .lm+7 The following is the source for an equation : .b .nf %.eq,+11 %.sub l = "%%l" %.sub z = "%%2" %.sub x = "%%4" %.ob ;_ _ ___ ___ %! 0 %!N (T)/N (T) = 1 + 1/2 m(m - 1) T'z + 0(T'x) + ... . %.opj %;(2) %.op ; ___ ______ %! %! %!-1/4 %! %! %! l l %! 1/2 %! %! %! %! 1/4 %! %! %! %! -1 %! %.ob ; %#_ _ %! %! %#Tz Tx %.eeq .f.j .b2 The equation will then appear as follows - .eq,+11 .sub l = "{l" .sub z = "{2" .sub x = "{4" .ob ;_ _ ___ ___ ! 0 !N (T)/N (T) = 1 + 1/2 m(m - 1) T'z + 0(T'x) + ... . .opj ;(2) .op ; ___ ______ ! ! !-1/4 ! ! ! l l ! 1/2 ! ! ! ! 1/4 ! ! ! ! -1 ! .ob ; #_ _ ! ! #Tz Tx .eeq