Closed nstanger closed 11 years ago
Investigate \AfterLastShipOut (I think that’s what it’s called). See the lastpage package documentation for details.
Is Stephen using the endfloat package?
The current solution definitely fails if multiple float pages need to be generated. One possible solution might be to inspect the contents of \@deferlist
inside \ps@plain
. If not empty, then more float pages need to be generated, so output “TURN OVER”. Otherwise, output “END”.
It’s also unclear whether this will work with documents that specify twocolumn
and have double-width floats that span both columns, given that there’s a separate \@dbldeferlist
. However, one could argue that people shouldn’t be using twocolumn
in an exam paper in the first place. (Disabling the option would probably make sense.)
Turns out this is still broken in markingschedule
mode; see the output of example2.pdf
. However, this isn’t as pressing an issue as it was with the actual exam paper, and can probably wait. Opened as new issue #23.
If the last page contains nothing but a full page float, the value of
num.pages
isn’t incremented correctly. The main side-effect of this is that the END that should appear on the last page instead appears on the second-last page.As reported by Stephen Cranefield: