Questions tagged [output-routine]

{output-routine} is about questions regarding the output routine, a basic element of TeX processing which is automatically called at different occasions (e.g., at insertions like footnotes or floats) and finally makes up the contents of a page for shipout after a page break has occurred. Headers and footers as well as floats, margin paragraphs and footnotes are added here.

The output routine is a basic element of TeX processing which is automatically called at different occasions (e.g., at insertions like footnotes or floats) and finally makes up the contents of a page for shipout after a page break has occurred. Headers and footers as well as floats, margin paragraphs and footnotes are added here.

Technically, \output is a token register which is executed automatically at every page break. It gets the contents of the main vertical list (that is, the type area) in box \@cclv (that is, 255) and adds all the stuff which goes outside of it on the page (plus floats which are inserted) before calling \shipout for really producing a page in the dvi or pdf file.

The output routine is defined by the basic format used (for instance, plain TeX, LaTeX or ConTeXt) and has a large influence on the "flavour" of this format and its page building capabilities. Only very few packages manipulate the output routine (like longtable or multicol), and this has to be done with great care to avoid conflicts.

Questions with this tag are concerned with basic considerations of page building, page breaking, headers, floating items (including \marginpar) or footnotes.

59 questions
11
votes
1 answer

Execute a command at the start of every page

Is there any way I can execute a command (\ifthenelse actually) at the start of every page? I tried \AtBeginShipout (atbegshi) but that seem to get executed when the page is about to be rendered (shipped out). I want something different, as soon as…
Masroor
  • 17,842
1
vote
1 answer

Interrupt Document with Ancillary Material

Suppose I want to create an in-class text. Suppose further that as a lecturer I want my copy of the text to have copious amounts of ancillary material (notes, solutions to exercises, blackboard examples, etc.) included. The mass of additional…
Jon
  • 189
0
votes
1 answer

Go back to "mark" in LaTeX to update something

Say you have some command in a part of the code. I want to execute that command at a later point, so that it can be set at a later point. E.g. a header, and you want to set the margin after some other stuff have been processed. Maybe this example…