# HG changeset patch # User markus schnalke # Date 1337112676 -7200 # Node ID 22ae3981a76b35920c260cbd72a6f6ef279fbb34 # Parent ea11888c8a97374b44ca428b857a0a2ed91c4fe3 style: New RN macro to reset page numbers and change their style. diff -r ea11888c8a97 -r 22ae3981a76b ch01.roff --- a/ch01.roff Tue May 15 21:44:34 2012 +0200 +++ b/ch01.roff Tue May 15 22:11:16 2012 +0200 @@ -1,3 +1,5 @@ +.RN 1 + .H0 "Introduction .P This chapter introduces MH, its history, concepts and how it is used. diff -r ea11888c8a97 -r 22ae3981a76b preface.roff --- a/preface.roff Tue May 15 21:44:34 2012 +0200 +++ b/preface.roff Tue May 15 22:11:16 2012 +0200 @@ -222,17 +222,3 @@ .U2 "Acknowledgments .P To be written at the very end. - - -.\" End or Preface. Start of the normal text. -.\" Switch to arabic page numbers and start on a right page. -. -.if e \{ -. pn 1 -. af PN 1 -.\} -.if o \{ -. pn 0 -. af PN 0 -. bp -.\} diff -r ea11888c8a97 -r 22ae3981a76b refs.roff --- a/refs.roff Tue May 15 21:44:34 2012 +0200 +++ b/refs.roff Tue May 15 22:11:16 2012 +0200 @@ -1,3 +1,5 @@ +.RN a + .H0 References no .[ diff -r ea11888c8a97 -r 22ae3981a76b style --- a/style Tue May 15 21:44:34 2012 +0200 +++ b/style Tue May 15 22:11:16 2012 +0200 @@ -166,6 +166,19 @@ .nr PP 0 .. + +.\" Reset page Numbers, set page number format ($1) and move to a right page. +.de RN +.ie e .pn 1 +.el \{ +. pn 0 +. bp +.\} +.ie \\n(.$=1 .af PN \\$1 +.el .af PN 1 +.. + + .de H1 .br .ne 7