2

I want to find possible page break problems automatically. I've read the TeXBook on the page breaking algorithm and think what I want to do is output to the log the pagegoal-pagetotal and the cost. I see the equation to compute the cost but is it already available in a counter or dimen?

My hope is that I can output these parameters for every page and use a script to find problematic pages that need to be dealt with by a human.

I see that there are dimens for pagegoal and pagetotal, but I can't find where the value for cost is kept.

Hoping to use the everypage or everyshi package to write the parameters to the log. I can imagine that the timing of knowing the page cost at shipout time may be impossible.

Anyone know how I can find the cost and print it out for each page?

  • 1
    if you put \tracingpages=1 the page break costs are logged (might take a bit of parsing to fish out the information you need but it should all be there) – David Carlisle Nov 7 '16 at 19:09
  • You're right I think--I'll start working on the parsing now. Thanks. – Tim A Nov 7 '16 at 21:26
1

If you put \tracingpages=1 the page break costs are logged (might take a bit of parsing to fish out the information you need but it should all be there)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.