.\"
.\" $Xorg: exp.eqn,v 1.3 2000/08/17 19:42:13 cpqbld Exp $
.\"
.\" 
$XMCOPY
.\" Copyright (c) 1990, 1991 by Sun Microsystems, Inc. and the X Consortium.
.\" 
.\"                         All Rights Reserved
.\" 
.\" Permission to use, copy, modify, and distribute this software and its 
.\" documentation for any purpose and without fee is hereby granted, 
.\" provided that the above copyright notice appear in all copies and that
.\" both that copyright notice and this permission notice appear in 
.\" supporting documentation, and that the names of Sun Microsystems,
.\" and the X Consortium not be used in advertising or publicity 
.\" pertaining to distribution of the software without specific, written 
.\" prior permission.  
.\" 
.\" SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 
.\" INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
.\" EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
.\" CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
.\" USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
.\" OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
.\" PERFORMANCE OF THIS SOFTWARE.


.bd S B 3
.	\" EQ - equation, breakout and display
.de EQ
.nr UR \\n(.u
.rm EE
.nr LE 1	\" default centered
.ds EL \f1\\$1\fP
.if \\$1C .ds EL \f1\\$2\fP
.if \\$1L \{\
.	ds EL \f1\\$2\fP
.	nr LE 0
.	if \\n(PL=1 .ds EE \\h'\\n(GIu'
.\}
.if \\$1I \{\
.	ds EL \f1\\$2\fP
.	nr LE 0
.	ds EE \\h'\\n(GIu+.5i'
.	if !\\$3 .ds EE \\h'\\$3'
.\}
.if \\n(YE>0 .nf
.di EZ
..
.	\" EN - end of a displayed equation
.de EN
.if !\\*(10 .br
.di
.rm EZ
.nr ZN \\n(dn
.if \\n(ZN>0 .if \\n(YE=0 .LP
.if \\n(ZN=0 .if !\\*(EL .nr ZN 1
.if \\n(.z .if \\n(ZN>0 .if !\\n(nl=\\n(PE .sp \\n(DDu
.if !\\n(.z .if \\n(ZN>0 .if !\\n(.d=\\n(PE .sp \\n(DDu
.pc
.if \\n(BD>0 .nr LE 0	\" can't mean centering in this case.
.if \\n(MK>0 .if \\n(LE=1 .ds EE \\h'|.5i'
.if \\n(MK>0 .nr LE 0	\" don't center if mark/lineup
.lt \\n(.lu
.if \\n(EP=0 .if \\n(ZN>0 \{\
.	if \\n(LE>0 .tl \\*(10\\*(EL
.	if \\n(LE=0 .if \\n(BD=0 .tl \\*(EE\\*(10\\*(EL
.	if \\n(LE=0 .if \\n(BD>0 .if \\n(BD<\\w\\*(10 .nr BD \\w\\*(10
.	if \\n(LE=0 .if \\n(BD>0 \!\\*(10\\t\\*(EL
.\}
.if \\n(EP>0 .if \\n(ZN>0 \{\
.	if \\n(LE>0 .tl \\*(EL\\*(10
.	if \\n(LE=0 .if \\n(BD=0 .tl \\*(EL\\*(EE\\*(10
.	if \\n(LE=0 .if \\n(BD>0 .if \\n(BD<\\w\\*(10 .nr BD \\w\\*(10
.	if \\n(LE=0 .if \\n(BD>0 \!\\h'-\\\\n(.iu'\\*(EL\\h'|0'\\*(10
.\}
.lt \\n(LLu
.pc %
.if \\n(YE>0 .if \\n(UR>0 .fi
.rm 10 11 12 13 14 15 16 17 18 19 20 21 22 23 EL
.rr 10 11 12 13 14 15 16 17 18 19 20 21 22 23
.if \\n(ZN>0 .if t .sp \\n(DDu
.if \\n(.z .nr PE \\n(nl
.if !\\n(.z .nr PE \\n(.d
..

