JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
man pages section 5: Standards, Environments, and Macros     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Introduction

Standards, Environments, and Macros

acl(5)

ad(5)

advance(5)

adv_cap_1000fdx(5)

adv_cap_1000hdx(5)

adv_cap_100fdx(5)

adv_cap_100hdx(5)

adv_cap_10fdx(5)

adv_cap_10hdx(5)

adv_cap_asym_pause(5)

adv_cap_autoneg(5)

adv_cap_pause(5)

adv_rem_fault(5)

ANSI(5)

architecture(5)

ars(5)

ascii(5)

attributes(5)

audit_binfile(5)

audit_flags(5)

audit_remote(5)

audit_syslog(5)

availability(5)

brands(5)

C++(5)

C(5)

cancellation(5)

cap_1000fdx(5)

cap_1000hdx(5)

cap_100fdx(5)

cap_100hdx(5)

cap_10fdx(5)

cap_10hdx(5)

cap_asym_pause(5)

cap_autoneg(5)

cap_pause(5)

cap_rem_fault(5)

charmap(5)

compile(5)

condition(5)

crypt_bsdbf(5)

crypt_bsdmd5(5)

crypt_sha256(5)

crypt_sha512(5)

crypt_sunmd5(5)

crypt_unix(5)

CSI(5)

datasets(5)

device_clean(5)

dhcp(5)

dhcp_modules(5)

environ(5)

eqnchar(5)

extendedFILE(5)

extensions(5)

fedfs(5)

filesystem(5)

fmri(5)

fnmatch(5)

formats(5)

fsattr(5)

grub(5)

gss_auth_rules(5)

hal(5)

iconv_1250(5)

iconv_1251(5)

iconv(5)

iconv_646(5)

iconv_852(5)

iconv_8859-1(5)

iconv_8859-2(5)

iconv_8859-5(5)

iconv_dhn(5)

iconv_koi8-r(5)

iconv_mac_cyr(5)

iconv_maz(5)

iconv_pc_cyr(5)

iconv_unicode(5)

ieee802.11(5)

ieee802.3(5)

ipfilter(5)

ipkg(5)

isalist(5)

ISO(5)

kerberos(5)

krb5_auth_rules(5)

krb5envvar(5)

KSSL(5)

kssl(5)

labels(5)

largefile(5)

ldap(5)

lf64(5)

lfcompile(5)

lfcompile64(5)

link_duplex(5)

link_rx_pause(5)

link_tx_pause(5)

link_up(5)

locale(5)

locale_alias(5)

lp_cap_1000fdx(5)

lp_cap_1000hdx(5)

lp_cap_100fdx(5)

lp_cap_100hdx(5)

lp_cap_10fdx(5)

lp_cap_10hdx(5)

lp_cap_asym_pause(5)

lp_cap_autoneg(5)

lp_cap_pause(5)

lp_rem_fault(5)

man(5)

mansun(5)

me(5)

mech_spnego(5)

mm(5)

ms(5)

MT-Level(5)

mutex(5)

MWAC(5)

mwac(5)

nfssec(5)

NIS+(5)

NIS(5)

nis(5)

nwam(5)

openssl(5)

pam_allow(5)

pam_authtok_check(5)

pam_authtok_get(5)

pam_authtok_store(5)

pam_deny(5)

pam_dhkeys(5)

pam_dial_auth(5)

pam_krb5(5)

pam_krb5_migrate(5)

pam_ldap(5)

pam_list(5)

pam_passwd_auth(5)

pam_pkcs11(5)

pam_rhosts_auth(5)

pam_roles(5)

pam_sample(5)

pam_smbfs_login(5)

pam_smb_passwd(5)

pam_tsol_account(5)

pam_tty_tickets(5)

pam_unix_account(5)

pam_unix_auth(5)

pam_unix_cred(5)

pam_unix_session(5)

pam_user_policy(5)

pam_zfs_key(5)

pkcs11_kernel(5)

pkcs11_kms(5)

pkcs11_softtoken(5)

pkcs11_tpm(5)

pkg(5)

POSIX.1(5)

POSIX.2(5)

POSIX(5)

privileges(5)

prof(5)

pthreads(5)

RBAC(5)

rbac(5)

regex(5)

regexp(5)

resource_controls(5)

sgml(5)

smf(5)

smf_bootstrap(5)

smf_method(5)

smf_restarter(5)

smf_security(5)

smf_template(5)

solaris10(5)

solaris(5)

solbook(5)

stability(5)

standard(5)

standards(5)

step(5)

sticky(5)

suri(5)

SUS(5)

SUSv2(5)

SUSv3(5)

SVID3(5)

SVID(5)

tecla(5)

teclarc(5)

term(5)

threads(5)

trusted_extensions(5)

vgrindefs(5)

wbem(5)

xcvr_addr(5)

xcvr_id(5)

xcvr_inuse(5)

XNS4(5)

XNS(5)

XNS5(5)

XPG3(5)

XPG4(5)

XPG4v2(5)

XPG(5)

zones(5)

ms

- text formatting macros

Synopsis

nroff  -ms [options] filename...
troff  -ms [options] filename...

Description

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

begin new page

.br

break output line

.sp n

insert n spacing lines

.ce n

center next n lines

.ls n

line spacing: n=1 single, n=2 double space

.na

no alignment of right margin

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.

REQUESTS

Macro Name
Initial Value
Break? Reset?
Explanation
.AB x
y
begin abstract; if x=no do not label abstract
.AE
y
end abstract
.AI
y
author's institution
.AM
n
better accent mark definitions
.AU
y
author's name
.B x
n
embolden x; if no x, switch to boldface
.B1
y
begin text to be enclosed in a box
.B2
y
end boxed text and print it
.BT
date
n
bottom title, printed at foot of page
.BX x
n
print word x in a box
.CM
if t
n
cut mark between pages
.CT
y,y
chapter title: page number moved to CF (TM only)
.DA x
if n
n
force date x at bottom of page; today if no x
.DE
y
end display (unfilled text) of any kind
.DS x y
I
y
begin display with keep; x=I, L, C, B; y=indent
.ID y
8n,.5i
y
indented display with no keep; y=indent
.LD
y
left display with no keep
.CD
y
centered display with no keep
.BD
y
block display; center entire block
.EF x
n
even page footer x (3 part as for .tl)
.EH x
n
even page header x (3 part as for .tl)
.EN
y
end displayed equation produced by eqn
.EQ x y
y
break out equation; x=L,I,C; y=equation number
.FE
n
end footnote to be placed at bottom of page
.FP
n
numbered footnote paragraph; may be redefined
.FS x
n
start footnote; x is optional footnote label
.HD
undef
n
optional page header below header margin
.I x
n
italicize x; if no x, switch to italics
.IP x y
y,y
indented paragraph, with hanging tag x; y=indent
.IX x y
y
index words x y and so on (up to 5 levels)
.KE
n
end keep of any kind
.KF
n
begin floating keep; text fills remainder of page
.KS
y
begin keep; unit kept together on a single page
.LG
n
larger; increase point size by 2
.LP
y,y
left (block) paragraph.
.MC x
y,y
multiple columns; x=column width
.ND x
if t
n
no date in page footer; x is date on cover
.NH x y
y,y
numbered header; x=level, x=0 resets, x=S sets to y
.NL
10p
n
set point size back to normal
.OF x
n
odd page footer x (3 part as for .tl)
.OH x
n
odd page header x (3 part as for .tl)
.P1
if TM
n
print header on first page
.PP
y,y
paragraph with first line indented
.PT
- % -
n
page title, printed at head of page
.PX x
y
print index (table of contents); x=no suppresses title
.QP
y,y
quote paragraph (indented and shorter)
.R
on
n
return to Roman font
.RE
5n
y,y
retreat: end level of relative indentation
.RP x
n
released paper format; x=no stops title on first page
.RS
5n
y,y
right shift: start level of relative indentation
.SH
y,y
section header, in boldface
.SM
n
smaller; decrease point size by 2
.TA
8n,5n
n
set TAB characters to 8n 16n . . . (nroff) or 5n 10n . . . (troff)
.TC x
y
print table of contents at end; x=no suppresses title
.TE
y
end of table processed by tbl
.TH
y
end multi-page header of table
.TL
y
title in boldface and two points larger
.TM
off
n
UC Berkeley thesis mode
.TS x
y,y
begin table; if x=H table has multi-page header
.UL x
n
underline x, even in troff
.UX x
n
UNIX; trademark message first time; x appended
.XA x y
y
another index entry; x=page or no for none; y=indent
.XE
y
end index entry (or series of .IX entries)
.XP
y,y
paragraph with first line indented, others indented
.XS x y
y
begin index entry; x=page or no for none; y=indent
.1C
on
y,y
one column format, on a new page
.2C
y,y
begin two column format
.] –
n
beginning of refer reference
.[ 0
n
end of unclassifiable type of reference
.[ N
n
N= 1:journal-article, 2:book, 3:book-article, 4:report

REGISTERS

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
vertical spacing
paragraph
12
LL
line length
paragraph
6i
LT
title length
next page
same as LL
FL
footnote length
next .FS
5.5i
PD
paragraph distance
paragraph
1v (if n), .3v (if t)
DD
display distance
displays
1v (if n), .5v (if t)
PI
paragraph indent
paragraph
5n
QI
quote indent
next .QP
5n
FI
footnote indent
next .FS
2n
PO
page offset
next page
0 (if n), ≃1i (if t)
HM
header margin
next page
1i
FM
footer margin
next page
1i
FF
footnote format
next .FS
0 (1, 2, 3 available)

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
unquote (" in nroff, in troff )
\*–
dash (-- in nroff, in troff )
\*(MO
month (month of the year)
\*(DY
day (current date)
\**
automatically numbered footnote
\*'
acute accent (before letter)
\*`
grave accent (before letter)
\*^
circumflex (before letter)
\*,
cedilla (before letter)
\*:
umlaut (before letter)
\*~
tilde (before letter)

When using the extended accent mark definitions available with .AM, these strings should come after, rather than before, the letter to be accented.

Files

/usr/share/lib/tmac/s

/usr/share/lib/tmac/ms.???

See Also

col(1), eqn(1), nroff(1), refer(1), tbl(1), troff(1)

Bugs

Floating keeps and regular keeps are diverted to the same space, so they cannot be mixed together with predictable results.