5

I think I remember Stephan Lehmke writing here somewhere in a comment about outputting a spread at a time instead of page.

That got me thinking; does that mean something like:

\output={\shipout\vbox to 2\vsize{\vsplit255 to\vsize\vfil}}

(Does that even make any sense?) What benefits does it have compared to page at a time?

3
  • 1
    What I was thinking about at that time was really calling \shipout twice, producing two physical pages. The point in question was how to make margin notes on a left page depend on a float placed on the right page. In other contexts, the pattern sketched by you may make more sense. It really depends on the context. In my own system DocScape you can create any number of pages in memory and distribute material on them in any order, destroying and recreating pages as you go, until finally some pages are shipped out. That gives a lot of freedom for optimisation. Commented Jun 1, 2012 at 6:58
  • @StephanLehmke: how do you \shipout twice \box255? Isn't the box empty after the first shipout? (I tried \output={\shipout\vbox{\unvbox255}\shipout\vbox{\unvbox255}}; I think I'm missing something here :-))
    – morbusg
    Commented Jun 1, 2012 at 14:10
  • I didn't have a concrete layout for a macro (otherwise I'd have posted an answer to Yiannis' question right away :). I was thinking along the lines of \@outputdblcol where the first column (coming from box255) is saved in the box \@leftcolumn and combined with the second column at the next output. Only this would be pages instead of columns and instead of constructing a single page with two columns, two pages would be shipped out. Commented Jun 1, 2012 at 14:29

1 Answer 1

6

Stephan made the comment on one of my questions, which is still without an answer.

The advantage in the above case, was that you could examine the two logical pages in a single operation and then place the caption on the left or right page, depending on the position of the oversized image.

An alternative approach to modifying the output routine is used by pgfpages. The package intercepts the page output at \shipout and store its contents, until a condition is met. This way one can place two or more logical pages on a single page. (See for example \twopagepicture package refining with long caption spanning across the two pages) from where the image below has been linked.

enter image description here

2
  • Ah yes, that was the question, thanks! I'm inclined to believe the expert TeXies when they say that LaTeX OTR isn't for the faint of heart, so maybe that's what holding a OTR-based answer to your question. :-)
    – morbusg
    Commented Jun 1, 2012 at 14:16
  • @morbusg The OTR is fairly simple to understand and use for Plain TeX. The LaTeX one has been complexified to the extend that you probably need 1-2 month to study it thoroughly in order to understand it before you do anything with it.
    – yannisl
    Commented Jun 1, 2012 at 15:11

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .