home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / text / tex / 13347 < prev    next >
Encoding:
Text File  |  1992-11-19  |  2.2 KB  |  47 lines

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