ms - text formatting macros
nroff -ms [options] filename...
troff -ms [options] filename...
This package of nroff(1) and troff(1) macro definitions provides a formatting facility for various styles of articles, theses, and books. When producing 2-column output on a terminal or lineprinter, or when reverse line motions are needed, filter the output through col(1). All external -ms macros are defined below.
Note: this -ms macro package is an extended version written at Berkeley and is a superset of the standard -ms macro packages as supplied by Bell Labs. Some of the Bell Labs macros have been removed; for instance, it is assumed that the user has little interest in producing headers stating that the memo was generated at Whippany Labs.
Many nroff and troff requests are unsafe in conjunction with this package. However, the first four requests below may be used with impunity after initialization, and the last two may be used even before initialization:
.bp
.br
.sp n
.ce n
.ls n
.na
Font and point size changes with \f and \s are also allowed; for example, \fIword\fR will italicize word. Output of the tbl(1), eqn(1) and refer(1) preprocessors for equations, tables, and references is acceptable as input.
Macro Name | Initial Value | Break? Reset? | Explanation |
.AB x | - | y |
begin abstract; if x=no do not label abstract
|
.AE | |||
.AI | |||
.AM | |||
.AU | |||
.B x | |||
.B1 | |||
.B2 | |||
.BT | |||
.BX x | |||
.CM | |||
.CT | |||
.DA x | |||
.DE | |||
.DS x y | |||
.ID y | |||
.LD | |||
.CD | |||
.BD | |||
.EF x | |||
.EH x | |||
.EN | |||
.EQ x y | |||
.FE | |||
.FP | |||
.FS x | |||
.HD | |||
.I x | |||
.IP x y | |||
.IX x y | |||
.KE | |||
.KF | |||
.KS | |||
.LG | |||
.LP | |||
.MC x | |||
.ND x | |||
.NH x y | |||
.NL | |||
.OF x | |||
.OH x | |||
.P1 | |||
.PP | |||
.PT | |||
.PX x | |||
.QP | |||
.R | |||
.RE | |||
.RP x | |||
.RS | |||
.SH | |||
.SM | |||
.TA | |||
.TC x | |||
.TE | |||
.TH | |||
.TL | |||
.TM | |||
.TS x | |||
.UL x | |||
.UX x | |||
.XA x y | |||
.XE | |||
.XP | |||
.XS x y | |||
.1C | |||
.2C | |||
.]- | |||
.[0 | |||
.[N |
Formatting distances can be controlled in -ms by means of built-in number registers. For example, this sets the line length to 6.5 inches:
.nr LL 6.5i
Here is a table of number registers and their default values:
Name | Register Controls | Takes Effect | Default |
PS | point size | paragraph | 10 |
VS | |||
LL | |||
LT | |||
FL | |||
PD | |||
DD | |||
PI | |||
QI | |||
FI | |||
PO | |||
HM | |||
FM | |||
FF |
When resetting these values, make sure to specify the appropriate units. Setting the line length to 7, for example, will result in output with one character per line. Setting FF to 1 suppresses footnote superscripting; setting it to 2 also suppresses indentation of the first line; and setting it to 3 produces an .IP-like footnote paragraph.
Here is a list of string registers available in -ms; they may be used anywhere in the text:
Name | String's Function |
\*Q | quote (" in nroff, " in troff ) |
\*U | |
\*- | |
\*(MO | |
\*(DY | |
\** | |
\*' | |
\*` | |
\*^ | |
\*, | |
\*: | |
\*~ |
When using the extended accent mark definitions available with .AM, these strings should come after, rather than before, the letter to be accented.
/usr/share/lib/tmac/s
/usr/share/lib/tmac/ms.???
col(1), eqn(1), nroff(1), refer(1), tbl(1), troff(1)
Floating keeps and regular keeps are diverted to the same space, so they cannot be mixed together with predictable results.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |