Hi Walter, On Tue Jan 28, 2025 at 9:02 PM CET, Walter Alejandro Iglesias wrote: > [...] After a week of > struggling, I got the code below, it's to automatically get rid of the > last line of the last paragraph of a page end hanging alone on the next > page (just to avoid arguments about whether she was abandoned by her > parents or her husband died ;-)). > > As far as I've tested it works, but it only works if you avoid using > vertical spaces without rounded values in 'v' units, like ".sp .3v" or > equivalents. If, for example, you want to give unequal spaces above and > below in titles or subtitles, at least the sum must be a rounded value > in 'v' units (for example 1.3v above and .7v below will be counted as > two lines), otherwise the translation from the vertical space in \n[nl] > to lines won't tell the truth and problems will appear. :-) > > I'd appreciate if anyone could give me some clues on how to get a more > solid solution or a better approach. > [...]
You might find the following useful: https://lists.gnu.org/r/groff/2003-01/msg00024.html ~ onf