Use displays to show text-based examples or figures (such as code listings).
Displays turn off filling, so lines of code are displayed as-is without
br requests in between each line. Displays can be
kept on a single page, or allowed to break across pages.
Sets a block-centered display: the entire display is left-justified, but indented so that the longest line in the display is centered on the page. The ‘.DS B’ call generates a page break, if necessary, to keep the entire display on one page. The
BDmacro allows the display to break across pages. The
DEmacro ends the display.
These two macros were formerly provided as aliases for
DE, respectively. They have been removed, and should no longer be used. The original implementations of
DEare retained, and should be used instead. X11 documents which actually use
Dealways load a specific macro file from the X11 distribution (macros.t) which provides proper definitions for the two macros.
On occasion, you may want to keep other text together on a page.
For example, you may want to keep two paragraphs together, or a
paragraph that refers to a table (or list, or other item) immediately
following. The ms macros provide the
macros for this purpose.
Specifies a floating keep; if the keep cannot fit on the current page,
groffholds the contents of the keep and allows text following the keep (in the source file) to fill in the remainder of the current page. When the page breaks, whether by an explicit
bprequest or by reaching the end of the page,
groffprints the floating keep at the top of the new page. This is useful for printing large graphics or tables that do not need to appear exactly where specified.
You can also use the
ne request to force a page break if there is
not enough vertical space remaining on the page.
Use the following macros to draw a box around a section of text (such as a display).