Skip to Content
UNIX° TEXT PROCESSING
book

UNIX° TEXT PROCESSING

by Dale Dougherty, Tim O'Reilly
May 1987
Intermediate to advanced
680 pages
17h 3m
English
O'Reilly Media, Inc.
Content preview from UNIX° TEXT PROCESSING

images

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
How to Become a Game-Changing Leader

How to Become a Game-Changing Leader

Douglas A. Ready, Alan Mulally
Journey from Natural Numbers to Complex Numbers

Journey from Natural Numbers to Complex Numbers

Nita H. Shah, Vishnuprasad D. Thakkar

Publisher Resources

ISBN: 9780810462915