diff options
author | rsc <devnull@localhost> | 2004-05-15 23:24:00 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-05-15 23:24:00 +0000 |
commit | 5cedca1b69d020c32466f70843a11767773d7e3b (patch) | |
tree | a15a3d84e92aa262543b0010763a5e6920c9ba24 /src/cmd/eqn/eqnbox.c | |
parent | 76e6aca867e3e48ea04fbcf7284c45369a69829e (diff) | |
download | plan9port-5cedca1b69d020c32466f70843a11767773d7e3b.tar.gz plan9port-5cedca1b69d020c32466f70843a11767773d7e3b.tar.bz2 plan9port-5cedca1b69d020c32466f70843a11767773d7e3b.zip |
Let's try this. It's BUGGERED.
Diffstat (limited to 'src/cmd/eqn/eqnbox.c')
-rw-r--r-- | src/cmd/eqn/eqnbox.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/cmd/eqn/eqnbox.c b/src/cmd/eqn/eqnbox.c new file mode 100644 index 00000000..7dd0b867 --- /dev/null +++ b/src/cmd/eqn/eqnbox.c @@ -0,0 +1,24 @@ +#include "e.h" + +void eqnbox(int p1, int p2, int lu) +{ + double b, h; + char *sh; + extern char *IRspace; + + yyval = p1; + b = max(ebase[p1], ebase[p2]); + eht[yyval] = h = b + max(eht[p1]-ebase[p1], + eht[p2]-ebase[p2]); + ebase[yyval] = b; + dprintf(".\tS%d <- %d %d; b=%g, h=%g\n", yyval, p1, p2, b, h); + sh = pad(class[rclass[p1]][lclass[p2]]); + if (lu) { + printf(".nr %d \\w'\\*(%d%s'\n", p1, p1, sh); + printf(".ds %d \\h'|\\n(09u-\\n(%du'\\*(%d\n", p1, p1, p1); + } + printf(".as %d \"%s\\*(%d\n", yyval, sh, p2); + rfont[p1] = rfont[p2]; + rclass[p1] = rclass[p2]; + sfree(p2); +} |