home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


.nr

.nr r n [m ]

Assign value n to number register r and optionally set auto-increment to m .

Examples

Set the "box width" register to line length minus indent:

.nr BW \n(.l-\n(.i

Set page layout values for ms macros:

.nr LL 6i                         Line length

.nr PO ((8.25i-\n(LLu)/2u)        Page offset

.nr VS \n(PS+2                    Vertical spacing

In groff , auto-increment a footnote-counter register:

.nr footcount 0 1                  Reset to zero on each page

Note: inside a macro definition, \n should be \\n .


Previous: Reference: .nn UNIX in a Nutshell: System V Edition Next: Reference: .ns
Reference: .nn Book Index Reference: .ns

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System