Useful Escape Sequences
This partial list of troff escape sequences provides those that are most useful.
|
Sequence |
Effect |
|
|
Prevent or delay the interpretation of \. |
|
|
Printable version of the current
escape character (usually |
|
|
- (minus sign in the current font). |
|
|
Period (dot). |
|
|
Unpaddable space-size space character. |
|
|
Concealed (ignored) newline. |
|
|
1/6-em narrow space character (zero width in nroff). |
|
|
1/12-em half-narrow space character (zero width in nroff). |
|
|
Nonprinting, zero-width character. |
|
|
Beginning of comment. |
|
|
Interpolate macro argument 1 ≤ n ≤ 9. |
|
|
Character named xx. See the following section “Special Characters.” |
|
|
Interpolate string x or xx. |
|
|
Change to font named
x or xx or to
position n. If x
is |
|
|
Interpolate number register x or xx. |
|
|
Interpolate number register x or xx, applying auto-increment. |
|
|
Interpolate number register x or xx, applying auto-decrement. |
|
|
Change point size to
n or increment by
n. For example, |
|
|
Just like |
|
|
Interpolate width of string in basic units. |
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