
The ms Macros
The UNIX shell is a user interface for the kernel, the actual heart of the operating system. You can choose the C shell or Korn shell instead of the Bourne shell, without worrying about its effects on the low-level operations of the kernel. Likewise, a macro package is a user interface for accessing the capabilities of the nroff/troff formatter. Users can select either the ms or mm macro packages (as well as other packages that are available on some systems) to use with nroff/troff.
The ms package was the original Bell Labs macro package, and is available on many UNIX systems, but it is no longer officially supported by AT&T. Our main reason for giving ms equal time is that many Berkeley UNIX systems ship ms instead of mm. In addition, it is a less complex package, so it is much easier to learn the principles of macro design by studying ms than by studying mm.
A third general-purpose package, called me, is also distributed with Berkeley UNIX systems. It was written by Eric Allman and is comparable to ms and mm. (Mark Horton writes us: I think of ms as the FORTRAN of nroff, mm as the PL/I, and me as the Pascal.) The me package is not described in this book.
In addition, there are specialized packages—mv, for formatting viewgraphs, mptx, for formatting the permuted index found in the UNIX Reference Manual, and man, for formatting the reference pages in that same manual. ...
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.
Read now
Unlock full access