asp@COS.COM (Andrew S. Partan) (04/13/87)
I have a user who has been trying to work with tbl and troff and is having all sorts of problems and I can not help her. Any have any ideas? Her question follows: ----- Can you tell me how to load a TBL table into the middle of a TROFF source file? (Actually through the ptroff filter - a PostScript filter that first runs troff and then turned the C/A/T output into PostScript and then shoves the file to a printer.) I am trying to write a document which is going to contain several TBL tables. I do not want to have to pre-figure how many pages each will be and set up the page numbering in my heading by hand in order to print each file separately. I would like to figure out how to have the tables automatically loaded in the correct place so the page numbers etc work. I have managed to get the TBL files to print correctly (1 table per file) if I tbl file.tbl | ptroff -ms however if I .so the file into the text - it messes up - the boxes disappear. If I use -ms on the ptroff command, the table starts to migrate horizontally across the page. I've tried: - tbl'ing the file into another file and .so'ing that output file - tbl'ing the file piped to ptroff which contains a .rd to read it - tbl'ing the file piped to ptroff which contains a .rd in a diversion at the top of the file I'm running out of both ideas and paper since you have to actually print the file to see if it works. (NROFF doesn't show the lines and we do not have a program to display TROFF output on our Suns). Any help would be greatly appreciated. The manual only gives help for tbl by way of examples which are not very complete and only appear to work when the table is isolated in a file on its own. thanks, wendy ---- Please replay by Email to: seismo!sundc!cos!web Thanks for any help that you can give her. --asp (Andrew Partan @ COS) -- {seismo!sundc, hadron, hqda-ai}!cos!asp -- --asp (Andrew Partan @ COS) -- Software Engineer @ Corporation for Open System -- acting Unix System Administrator -- seismo!sundc!cos!asp, hadron!cos!asp, hqda-ai!cos!asp