TeX tiene la «galley» (columna ininterrumpida de párrafos y espaciado) toda preparada antes de decidir cómo la cortará en páginas. Siempre termina un párrafo antes de probar si todo en la galley suma para formar una página, y mientras intenta hacer una suposición razonable sobre cuándo activar el corte de página, esas suposiciones no son totalmente precisas: para obtener el equilibrio de columnas, notas al pie, referencias cruzadas, figuras y barras laterales y finales de página consistentes, a menudo tenemos que intentar longitudes de corte más cortas de la galley. Así, una nueva página podría tener bastante texto, figuras y notas al pie esperando en su galley al comenzar.
Cuando se inicia un párrafo (el punto en el que habría que añadir espacio extra), se conocen \pagegoal y \pagetotal, pero, en realidad, son solo suposiciones, y el programa no sabe, p. ej., qué imágenes podrían añadirse sobre la página, o si habrá alguna llamada para estirar algo flexible.
Sí, debería ser posible hacer que cierre la página parcial, pero probablemente no manualmente. También hay algunos efectos secundarios que podrían ser un dolor de cabeza total.
Acabo de ocurrírseme que otra opción sería usar espaciado estirable, un poco así:
Stretch to page height{
{figures}
Stretch to 35 normal lines{
{Intro paragraph (13.4 normal lines)}
{stretchy bit}
{main text (21 lines)}
}
{stretchy bit}
{footnotes}
}
(La parte nueva sería «Stretch to 35 lines» para la sección intermedia, y por supuesto las «35 lines» tendrían que calcularse en función de la longitud no estirada de la secuencia de texto.)
@Martin_Hosken podría querer comentar por qué esta es una idea absurda, aunque.
TeX has the ‘galley’ (uninterrupted column of paragraphs and spacing) all prepared before it decides how it will chop it into pages. It always finishes a paragraph before it tests to see if everything in the galley adds up to make a page, and while it tries to make a reasonable guess about when to trigger the page-chopping, those guesses aren’t fully accurate: to get column balancing, footnotes, cross-references, figures and sidebars and consistent end-of pages, we often have to try shorter cut-lengths of galley. Thus a new page might have quite a pile of text, figures and footnotes waiting in it’s galley as it starts.
When a paragraph is started (the point in which you’d have to add extra space) the \pagegoal and \pagetotal are known, but really, they are only guesses, and the program doesn’t know e.g. what pictures might be added on top of the page, or if there will be any call to stretch anything that’s flexible.
Yes, it should be possible to make it close out the partial page, but probably not manually. There are also some side effects that might be a complete pain.
It has just occurred to me that one other option would be to use stretchable spacing, a bit like this:
Stretch to page height{
{figures}
Stretch to 35 normal lines{
{Intro paragraph (13.4 normal lines)}
{stretchy bit}
{main text (21 lines)}
}
{stretchy bit}
{footnotes}
}
(The new bit being the ‘Stretch to 35 lines’ for the middle section, and of course the ‘35 lines’ would need to be calculated based on what the un-stretched length of the text run is.)
@Martin_Hosken might want to comment about why this is a silly idea, though.
Traducción automática desde English