1
These are patches to makes psfig work with groff. They apply to the
2
version of psfig in comp.sources.unix/Volume11. After applying them,
3
psfig should be recompiled with -DGROFF. The resulting psfig will
4
work only with groff, so you might want to install it under a
5
different name. The output of this psfig must be processed using the
6
macros in the file ../tmac/tmac.psfig. These will automatically add
7
the necessary PostScript code to the prologue output by grops. Use of
8
the `global' feature in psfig will result in non-conformant PostScript
9
which will fail if processed by a page reversal program. Note that
10
psfig is unsupported by me (I'm not interested in hearing about psfig
11
problems.) For new documents, I recommend using the PostScript
12
inclusion features provided by grops.
17
*** cmds.c.~1~ Thu Feb 14 16:09:45 1991
18
--- cmds.c Mon Mar 4 12:49:26 1991
22
(void) sprintf(x, "%.2fp", fx);
23
(void) sprintf(y, "%.2fp", fy);
26
(void) sprintf(x,"(%.2fp*%s/%.2fp)", fx, y, fy);
28
+ (void) sprintf(x,"(%.0fu*%s/%.0fu)", fx, y, fy);
32
(void) sprintf(y,"(%.2fp*%s/%.2fp)", fy, x, fx);
34
+ (void) sprintf(y,"(%.0fu*%s/%.0fu)", fy, x, fx);
39
*** troff.c.~1~ Thu Feb 14 16:09:48 1991
40
--- troff.c Mon Mar 4 12:48:46 1991
48
char incl_file_s[] = "\\X'f%s'";
50
+ char incl_file_s[] = "\\X'ps: file %s'";
54
printf(incl_file_s, filenm);
58
error("buffer overflow");
62
char endfig_s[] = "\\X'pendFig'";
64
+ char endfig_s[] = "\\X'ps: exec psfigend'";
72
"\\X'p\\w@\\h@%s@@'\\X'p\\w@\\h@%s@@'\\X'p%.2f'\\X'p%.2f'\\X'p%.2f'\\X'p%.2f'\\X'pstartFig'";
74
+ "\\X'ps: exec \\w@\\h@%s@@ \\w@\\h@%s@@ %.2f %.2f %.2f %.2f psfigstart'";
77
startfig(x, y, llx, lly, urx, ury)
86
printf("\\X'pdoclip'");
88
+ printf("\\X'ps: exec psfigclip'");
97
#define isWhite(ch) ((ch) == ' ' || (ch) == '\t' || (ch) == '\n')
100
char literal_s[] = "\\X'p%s'";
102
+ char literal_s[] = "\\X'ps: exec %s'";
106
static char litbuf[BUFSZ];