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

Figures and Special Effects

This chapter discusses a variety of formatter requests that you can use to draw figures and achieve special effects like overstriking and vertically stacked text. It also dissects some of the most complex macros we’ve seen so far, so it should advance your knowledge of how to write macros as well as your knowledge of its explicit subject matter.

▪   Formatter Escape Sequences   ▪

Preprocessors like tbl and pic draw boxes, lines, and simple figures using an underlying library of formatter escape sequences that you can also use directly. The eqn preprocessor also uses many of these escape sequences, as well as others that are more appropriate for creating special effects with text characters.

The escape sequences are listed in Table 15-1. As you can see, there are quite a few! Fortunately, many of these need not be learned by the average user. The various preprocessors often allow a user to achieve the same effect more easily. Although tbl or eqn might seem difficult to learn, they are far simpler than the formatter commands they replace. For example, an eqn construct like 10% sup 5% is easier to learn and type than an equivalent troff construct like:

10\s-3\v'-3p'5\v'3p'\s0

When it comes to drawing lines and figures, things get even more complex.

For this reason, many of the escape sequences we are about to discuss are not often used by the average ...

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