A version of fmt for troff files

Last-Updated: 2023-05-17


The different flavours of fmt

fmt is a simple program aimed at formatting text according to certain rules, mainly respecting an optimal width (measured in number of characters). As a UNIX utility, fmt was rewritten many times with different versions having different features. The main fmt versions are:

The version presented here (roquesor/fmtroff.c) was written by Walter Alejandro Iglesias for his own uses, which are formatting his novels typeset with groff (2023-02/msg00081).

This program:

As such it is much more interesting to use this version of fmt instead of the GNU or BSD version when one needs to format a *roff file.


The source file for Mr. Iglesias' fmt program is mirrored here:

← Go back