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

image

Comparing mm and ms

If you have both ms and mm on your system, you may be interested in looking at both packages, perhaps evaluating features. In general, ms has many of the same capabilities as mm. However, it lacks some essential features, such as automatically numbered lists and table of contents generation. On the other hand, it is much easier to learn the internals of ms, and therefore easier to extend it with your own macros.

▪   Paragraphs   ▪

The basic paragraph types are block and indented.

ms mm Description
.P .LP Begin a block paragraph.
.P 1 .PP Begin a paragraph with indented first line.

In mm, the default paragraph type can be changed from block to indented by setting the number register Pt to 1 or 2. The ms macros lack this generalizing mechanism.

▪   Justification   ▪

When using the nroff formatter, mm does not justify the right margin. .SA 1 turns on justification for both formatters. .SA 0 turns it off.

The ms macros do not provide a macro for inhibiting the normal justification of paragraphs. However, the .na request can be used to do this.

▪   Displays   ▪

Displays are produced in a very similar way in both macro packages, using the DS/DE pair of macros. In mm, display are left justified; in ms, displays are indented. The options that allow you to change the placement of the display are basically the same.

The mm macros provide for static and ...

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