#include #define LEN 1024 int pairs[2*LEN]; int lastpage=-1; int retval; int makepairs(int *pairs,int *pages) { int i=0,j=0; while (i=LEN) { fprintf(stderr,"MACRO LEN = %d too small! Recompile!\n",LEN); exit(1); } printf("#!\n\n# First make a postscript file of everything.\n"); printf("dvips -z -o junk.ps manual\n"); printf("# Filter to put %%%%BeginDocument lines at start of new lines\n"); printf("sed -e 's/@setspecial%%%%BeginDocument/@setspecial\\\\\n%%%%BeginDocument/' junk.ps >! manual.ps\n"); printf("rm -f junk.ps\n\n"); printf("#\n# Now a postscript file of the color pages only.\n"); printf("dvips -pp "); num=makepairs(pairs,colorlist); for (i=0;i