Next: Auto-increment, Previous: Setting Registers, Up: Registers [Contents][Index]
The
\n
escape sequence interpolates register contents.
Interpolate register with name
ident
(one-character
name i,
two-character name
id).
If the register is undefined,
the formatter creates it and assigns it a value
of ‘0’,
and interpolates that value.75
\n is interpreted even in copy mode (see Copy Mode).
.nr a 5
.nr as \na+\na
\n(as
⇒ 10
.nr a1 5
.nr ab 6
.ds str b
.ds num 1
\n[a\n[num]]
⇒ 5
\n[a\*[str]]
⇒ 6