Table of Contents

Groff: Vertical Positioning and Two-Column Layout

Back to Index

1. Absolute vertical positioning

The conversation focused on precise vertical positioning in groff, particularly when laying out content in a two-column page format.

The following options are available for vertical movement:

The last option was exactly what was needed.

2. The page layout

The example uses the following page dimensions:

The example content consists of six character attributes:

The first three appear in the first column, and the remaining three in the second.

3. Understanding the two-column layout

The important groff directives are:

The two occurrences of \v'|3i' allow the content to begin at a controlled vertical position in the respective columns.

The .ne 7i directive helps control page breaking by ensuring sufficient vertical space is available before proceeding.

4. Closing the two-column section

The original excerpt was missing its closing directive. The appropriate addition is:

.1C

This restores single-column formatting for subsequent material.

5. Key takeaway

The most useful discovery was:

\v'|3i'

This provides absolute vertical positioning, making it particularly useful for carefully arranged page layouts.

Combined with .2C, .ne, and .1C, it provides the necessary tools for controlling this particular two-column composition.