
Drawing Pictures
If you are one of those who can’t draw a straight line, let alone a decent picture or graph, you probably replace pictures with verbal descriptions. Perhaps you know what it is like to describe a drawing to a person who knows how to draw. The pic preprocessor requires you to follow the process of using “words” to describe something pictorial.
The pic preprocessor has a dual purpose. The first is to provide a “natural language” method of describing simple pictures and graphs in your documents. The second is to offer a “programming language” for generating pictures and graphs with minimal user input. Learning pic is an iterative process: describe what you want and then look at what you get. We have included many examples that show both the description and the resulting picture or graph. Take the time to create variations of these descriptions, making modifications and improvements.
The pic preprocessor was designed to produce output on a typesetter, which makes pic expensive and difficult to learn. Fortunately, some graphics terminals and most laser printers can be set up to display or print pic drawings. Access to one or the other is essential if you are going to get enough practice to know how pic responds.
As a preprocessor, pic is a program that processes a specific portion of an input file before the whole document goes to the troff formatter. (The nroff formatter ...