home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.text.tex
- Path: sparky!uunet!wupost!uwm.edu!ux1.cso.uiuc.edu!news.cso.uiuc.edu!cameron
- From: cameron@symcom.math.uiuc.edu (Cameron Smith)
- Subject: TeX in batch mode
- Message-ID: <By036B.E6H@news.cso.uiuc.edu>
- Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
- Organization: none
- Date: Fri, 20 Nov 1992 05:56:34 GMT
- Lines: 36
-
- Another request for help.
-
- One of the goals of a project I'm helping out with is to allow
- a computer program to generate nicely formatted reports in response
- to remote requests. For this we are planning to have the program
- generate TeX code as its output, then spawn a subprocess to run
- TeX to do the formatting, then convert the resultant DVI file
- to an appropriate other form and send that to the remote user
- for printing. This means that we need to run TeX in batch mode,
- under the supervision of another program, which needs at a minimum
- to be able to detect whether a TeX run completed successfully
- so that it will know whether it can go on to the next step and
- try to deliver a document to the user. This itself is apparently
- a non-trivial proposition, since even a warning telling me that
- a page is 2pt overfull causes TeX to deliver an "error" return code,
- even though an "error" like that is acceptable for our purposes.
- I envision (with distaste) building a parser that reads through
- a log file after a TeX run to decide whether errors so serious
- that they preclude printing have occurred.
-
- This is very different from the way I've used TeX in the past,
- and because my experience with this mode is so limited my question
- is quite general (I don't know enough yet to ask anything specific!).
- I would simply like to hear any pointers, tips, suggestions, warnings,
- and the like from anybody who has tried this kind of thing. I'd like
- to hear from you regardless of whether you did or did not succeed in
- getting the results you wanted (perhaps *especially* if you didn't,
- since if this is impractical to the point of unfeasibility I'd prefer
- to find out now rather than after I've spent six months on it).
-
- Email would be OK, but I'd rather read postings since that way
- everyone can join in and either learn from or teach one another.
- Thanks in advance for any info.
-
- --Cameron Smith
- cameron@symcom.math.uiuc.edu
-