1 /* t3.c: interpret commands affecting whole table */
16 "doublebox", &dboxflg,
17 "DOUBLEBOX", &dboxflg,
20 "doubleframe", &dboxflg,
21 "DOUBLEFRAME", &dboxflg,
34 char line[200], *cp, nb[25], *t;
38 for (lp = options; lp->optnam; lp++)
40 texname = texstr[texct=0];
42 Bprint(&tabout, ".nr %d \\n(.s\n", LSIZE);
43 gets1(line, sizeof(line));
44 /* see if this is a command line */
45 if (strchr(line, ';') == 0) {
49 for (cp = line; (c = *cp) != ';'; cp++) {
53 for (lp = options; lp->optadd; lp++) {
54 if (prefix(lp->optnam, cp)) {
56 cp += strlen(lp->optnam);
58 error("Misspelled global option");
63 while ((ci = *++cp) != ')')
69 if (lp->optadd == &tab) {
71 *(lp->optadd) = nb[0];
73 if (lp->optadd == &linsize)
74 Bprint(&tabout, ".nr %d %s\n", LSIZE, nb);
75 if (lp->optadd == &delim1) {
84 error("Illegal option");