man pages are formatted using troff/groff. You should do a
man troff and a
man groff.
You can try this agains your txt file, to view it.
groff -Tascii -mm your_file | less
Look at the source from any of the man pages installed.
After formatting the text you can view it in many ways, such as issuing the command against your txt file
nroff -man your_file | less
and even
groff -Tascii -man your_file |less
You can also create various output from your formatted document.
Such as txt, ps, dvi.
groff -Tascii -mm your_file > newfile.txt
groff -Tps -mm your_file > newfile.ps
groff -Tdvi -mm your_file > newfile.dvi
a quick idea you can use to format your text to work with groff.
Quote:
.TH Addressbook 2 Office 9/27/2004 Linux
.SH Addressbook
Something about the address book written here!
.SH Synopsis
.PP
.SH DESCRIPTION
.PP
How to use the address book
.PP
.SH FILES
/usr/local/bin
.PP
$HOME/.contacts
.SH BUGS
None filed
you can then process this, saving the file to address.2 and issuing;
groff -Tascii -man address.2 | less