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
inserting br requests in between each line. Displays can be
kept on a single page, or allowed to break across pages.
Left-justified display. The ‘.DS L’ call generates a page break, if necessary, to keep the entire display on one page. The
LDmacro allows the display to break across pages. TheDEmacro ends the display.
Indents the display as defined by the
DIregister. The ‘.DS I’ call generates a page break, if necessary, to keep the entire display on one page. TheIDmacro allows the display to break across pages. TheDEmacro ends the display.
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. TheDEmacro ends the display.
Sets a centered display: each line in the display is centered. The ‘.DS C’ call generates a page break, if necessary, to keep the entire display on one page. The
CDmacro allows the display to break across pages. TheDEmacro ends the display.
Right-justifies each line in the display. The ‘.DS R’ call generates a page break, if necessary, to keep the entire display on one page. The
RDmacro allows the display to break across pages. TheDEmacro ends the display.
These two macros were formerly provided as aliases for
DSandDE, respectively. They have been removed, and should no longer be used. The original implementations ofDSandDEare retained, and should be used instead. X11 documents which actually useDsandDealways 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 KS and KE
macros for this purpose.
The
KSmacro begins a block of text to be kept on a single page, and theKEmacro ends the block.
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 explicitbprequest 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).