[BACK]Return to incr.in CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc / regress / roff / nr

File: [cvsweb.bsd.lv] / mandoc / regress / roff / nr / incr.in (download)

Revision 1.2, Fri Dec 21 17:47:01 2018 UTC (5 years, 5 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_6, VERSION_1_14_5, HEAD
Changes since 1.1: +8 -1 lines

merge a test update from OpenBSD that was forgotten in April

.\" $OpenBSD: incr.in,v 1.1 2018/04/10 00:52:21 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]
.PP
.nr myr 42
Go to some other value,
then continue incrementing with an unchanged (negative) step size:
\n+[myr]
\n+[myr]
\n+[myr]