changeset 39:22ae3981a76b

style: New RN macro to reset page numbers and change their style.
author markus schnalke <meillo@marmaro.de>
date Tue, 15 May 2012 22:11:16 +0200
parents ea11888c8a97
children 7b620f6b1e97
files ch01.roff preface.roff refs.roff style
diffstat 4 files changed, 17 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- 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
-.\}
--- 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
 
 .[
--- 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