Article View: comp.text.tex
Article #218Answers to Questions about how LaTeX calls output.
From: James Fortune
Date: Tue, 03 Nov 1992 19:04
Date: Tue, 03 Nov 1992 19:04
62 lines
3161 bytes
3161 bytes
I received two replies to my post about how LaTeX calls the output routine. I think that the implementation I have chosen so far is relatively clean and hope that the incorporation or their comments will make what I want possible. Donald Arseneau writes: >In article <1992Nov1.234431.16775@vela.acs.oakland.edu>, you write... >>Does LaTeX make any calls to output other than the ones done by TeX, i.e., >>errors of -10000 or less? >yes it does. look at latex.tex (or latex.doc) OK, I'm in the process of doing that right now. Thanks for the pointer. >>Does LaTeX use any constructs that would cause an error of -10000 or less? >> ????? >Do you mean "penalty"? Yes, that is how it calls the output routine. Sorry if this caused any confusion. Penalty is correct. >(by the way, your messages are double-"sig"ed I'll check this post to see if it's back to normal. From: David Carlisle <carlisle@computer-science.manchester.ac.uk>: #There is no way of forcing a call to the output routine except by #issuing a penalty of < -10000, however LaTeX's output routine is a #wonderous beast, and may be called many times for any given page. #in particular floats and marginpars cause the output routine to be #called, but usually the page is not shipped out at that point, the #whole page is put back for future consideration. This is how Latex #figures out whether to take up a p t h or b option for float #positioning. #also the twocolumn option calls the output routine on each column, #unlike the multicol.sty, which calls it once per page. #You may want to ban the use of floats and marginpars inside your #environment, either by documenting the fact, or just locally #redefining the output routine to ignore them. #David Thanks David for the useful information regarding LaTeX's use of the output routine. I'm hoping that I can have the style file (output routine) pass the LaTeX specific calls to the LaTeX output routine without invoking the line numbering logic. I'll have to see what penalties latex.tex invokes. If different penalties are used it will be easy to bypass the line numbering logic. If not I'll have to try to catch exceptions indirectly. I'll have to decide how to handle floats and margin pars if they mess up the line number positions though. I'll take a look at multicol.sty also. -- James Fortune - Internet: Thousands of people mostly unaware Oakland University - of the sight and sound of each other, linked jafortun@vela.acs.oakland.edu - together by the bits of our souls that can Disclaimer: Not O.U. opinions - fit through computer keyboards.
Technical Details
Message-ID:
<1992Nov3.190452.4947@vela.acs.oakland.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!gumby!destroyer!wsu-cs!vela!jafortunShow Full Headers
Complete Article Headers
Newsgroups: comp.text.tex Path: arc1-ca.pugleaf.net!sparky!uunet!gumby!destroyer!wsu-cs!vela!jafortun From: jafortun@vela.acs.oakland.edu (James Fortune) Subject: Answers to Questions about how LaTeX calls output. Message-ID: <1992Nov3.190452.4947@vela.acs.oakland.edu> Summary: This might work. Keywords: altnline.sty, output routine Organization: Oakland University, Rochester MI. Date: Tue, 3 Nov 1992 19:04:52 GMT Lines: 62