docs/master

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 diff
     1.1 --- a/ch01.roff	Tue May 15 21:44:34 2012 +0200
     1.2 +++ b/ch01.roff	Tue May 15 22:11:16 2012 +0200
     1.3 @@ -1,3 +1,5 @@
     1.4 +.RN 1
     1.5 +
     1.6  .H0 "Introduction
     1.7  .P
     1.8  This chapter introduces MH, its history, concepts and how it is used.
     2.1 --- a/preface.roff	Tue May 15 21:44:34 2012 +0200
     2.2 +++ b/preface.roff	Tue May 15 22:11:16 2012 +0200
     2.3 @@ -222,17 +222,3 @@
     2.4  .U2 "Acknowledgments
     2.5  .P
     2.6  To be written at the very end.
     2.7 -
     2.8 -
     2.9 -.\" End or Preface. Start of the normal text.
    2.10 -.\" Switch to arabic page numbers and start on a right page.
    2.11 -.
    2.12 -.if e \{
    2.13 -.	pn 1
    2.14 -.	af PN 1
    2.15 -.\}
    2.16 -.if o \{
    2.17 -.	pn 0
    2.18 -.	af PN 0
    2.19 -.	bp
    2.20 -.\}
     3.1 --- a/refs.roff	Tue May 15 21:44:34 2012 +0200
     3.2 +++ b/refs.roff	Tue May 15 22:11:16 2012 +0200
     3.3 @@ -1,3 +1,5 @@
     3.4 +.RN a
     3.5 +
     3.6  .H0 References no
     3.7  
     3.8  .[
     4.1 --- a/style	Tue May 15 21:44:34 2012 +0200
     4.2 +++ b/style	Tue May 15 22:11:16 2012 +0200
     4.3 @@ -166,6 +166,19 @@
     4.4  .nr PP 0
     4.5  ..
     4.6  
     4.7 +
     4.8 +.\" Reset page Numbers, set page number format ($1) and move to a right page.
     4.9 +.de RN
    4.10 +.ie e .pn 1
    4.11 +.el \{
    4.12 +.       pn 0
    4.13 +.       bp
    4.14 +.\}
    4.15 +.ie \\n(.$=1 .af PN \\$1
    4.16 +.el .af PN 1
    4.17 +..
    4.18 +
    4.19 +
    4.20  .de H1
    4.21  .br
    4.22  .ne 7