Go to the previous, next section.

Making labelled lists

Troff allows you to make paragraphs that have a label in the left margin by including only one command, .IP. To use .IP, include it in your file as follows:

.IP label

Replace label with the label that is to go in the margin. For example, if you wanted to create a paragraph and give it a label called "Weather," your file would look like this:

.IP Weather
This is a nice day.  We could have been outside
having a fun time.  But probably by the time
we get outside it will be raining.

This file produces the following output:

Weather
This is a nice day. We could have been outside having a fun time. But probably by the time we get outside it will be raining.

Go to the previous, next section.