aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/regress/roff/nr/incr.in
blob: a03493ff04c87263bd711ec9fc588026b640f6e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.\" $OpenBSD: undef.in,v 1.1 2018/04/09 22:26:25 schwarze Exp $
.TH NR-INCR 1 "April 10, 2018"
.SH NAME
nr-incr \- increment a number register by accessing it
.SH DESCRIPTION
.nr myr 0 1
Roff can count by merely accessing a number register:
\n+[myr]
\n+[myr]
\n+[myr]
.PP
.nr myr +0 1+1
It can also change the step size:
\n+[myr]
\n+[myr]
\n+[myr]
.PP
.nr myr +0 3
It can also count down:
\n-[myr]
\n-[myr]
\n-[myr]
\n-[myr]
.PP
.nr myr -0 -2
Down in negative steps is up:
\n-[myr]
\n-[myr]
\n-[myr]
\n-[myr]