Let's try this. It's BUGGERED.
This commit is contained in:
parent
76e6aca867
commit
5cedca1b69
118 changed files with 26947 additions and 1 deletions
19
src/cmd/eqn/move.c
Normal file
19
src/cmd/eqn/move.c
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# include "e.h"
|
||||
# include "y.tab.h"
|
||||
|
||||
void move(int dir, int amt, int p)
|
||||
{
|
||||
double a;
|
||||
|
||||
yyval = p;
|
||||
a = EM(amt/100.0, ps);
|
||||
printf(".ds %d ", yyval);
|
||||
if (dir == FWD || dir == BACK)
|
||||
printf("\\h'%s%gm'\\*(%d\n", (dir==BACK) ? "-" : "", a, p);
|
||||
else if (dir == UP)
|
||||
printf("\\v'-%gm'\\*(%d\\v'%gm'\n", a, p, a);
|
||||
else if (dir == DOWN)
|
||||
printf("\\v'%gm'\\*(%d\\v'-%gm'\n", a, p, a);
|
||||
dprintf(".\tmove %d dir %d amt %g; h=%g b=%g\n",
|
||||
p, dir, a, eht[yyval], ebase[yyval]);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue