1 #ifndef lint 2 static char sccsid[] = "@(#)eqnbox.c 2.2 (CWI) 87/04/01"; 3 #endif lint 4 # include "e.h" 5 6 eqnbox(p1, p2, lu) 7 { 8 float b, h; 9 char *sh; 10 extern char *IRspace; 11 12 yyval = p1; 13 b = max(ebase[p1], ebase[p2]); 14 eht[yyval] = h = b + max(eht[p1]-ebase[p1], 15 eht[p2]-ebase[p2]); 16 ebase[yyval] = b; 17 dprintf(".\tS%d <- %d %d; b=%g, h=%g\n", yyval, p1, p2, b, h); 18 if (rfont[p1] == ITAL && lfont[p2] == ROM) 19 sh = IRspace; /* was \| */ 20 else 21 sh = ""; 22 if (lu) { 23 printf(".nr %d \\w'\\*(%d%s'\n", p1, p1, sh); 24 printf(".ds %d \\h'|\\n(09u-\\n(%du'\\*(%d\n", p1, p1, p1); 25 } 26 printf(".as %d \"%s\\*(%d\n", yyval, sh, p2); 27 rfont[p1] = rfont[p2]; 28 sfree(p2); 29 } 30