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

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: .nn Chapter 12
Nroff and Troff
Next: Reference: .ns
 

.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 sqtroff, 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 Navigation The UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System










??????????????@Mail.ru