[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #62182] [man] automatically prevent page break between (sub)section
From: |
G. Branden Robinson |
Subject: |
[bug #62182] [man] automatically prevent page break between (sub)section heading and tagged paragraph |
Date: |
Mon, 14 Mar 2022 02:22:19 -0400 (EDT) |
Follow-up Comment #1, bug #62182 (project groff):
There are a couple of workarounds.
1. Manually manage dead-tree pagination in man page sources.
Here's an example of how we do that in our own pages.
src/devices/grops/grops.1.man-\&.\|.\|.
src/devices/grops/grops.1.man-.RE
src/devices/grops/grops.1.man-.EE
src/devices/grops/grops.1.man-.RE
src/devices/grops/grops.1.man-.
src/devices/grops/grops.1.man-when the command runs.
src/devices/grops/grops.1.man-.
src/devices/grops/grops.1.man-.
src/devices/grops/grops.1.man:.br
src/devices/grops/grops.1.man-.ne 3v
src/devices/grops/grops.1.man-.\"
====================================================================
src/devices/grops/grops.1.man-.SH Environment
src/devices/grops/grops.1.man-.\"
====================================================================
src/devices/grops/grops.1.man-.
src/devices/grops/grops.1.man-.TP
src/devices/grops/grops.1.man-.I GROFF_FONT_PATH
src/devices/grops/grops.1.man-A list of directories in which to seek the
selected output device's
In other words, you put a `br` and `ne` request before the (sub)section
heading macro call.
This resort to requests is unfortunate.
2. Write something, like a sentence of regular prose establishing context,
between your section heading and (most likely) list of tagged paragraphs.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?62182>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/