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