docs/master

changeset 185:6f8adf7d190c

style: Extended the system to handle appendices and fixed the page hdrs.
author markus schnalke <meillo@marmaro.de>
date Wed, 11 Jul 2012 11:05:22 +0200
parents 1d28ed59de8a
children 5d6dca258633
files colophon.roff official.roff style
diffstat 3 files changed, 19 insertions(+), 12 deletions(-) [+]
line diff
     1.1 --- a/colophon.roff	Wed Jul 11 11:04:43 2012 +0200
     1.2 +++ b/colophon.roff	Wed Jul 11 11:05:22 2012 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -.H- Colophon no
     1.5 +.H- Colophon
     1.6  .P
     1.7  This document was typeset with the
     1.8  .I troff
     2.1 --- a/official.roff	Wed Jul 11 11:04:43 2012 +0200
     2.2 +++ b/official.roff	Wed Jul 11 11:05:22 2012 +0200
     2.3 @@ -1,4 +1,4 @@
     2.4 -.H- Confirmation no
     2.5 +.H- Confirmation
     2.6  .P
     2.7  I hereby declare that this thesis is the result of my own work,
     2.8  except where otherwise indicated.
     3.1 --- a/style	Wed Jul 11 11:04:43 2012 +0200
     3.2 +++ b/style	Wed Jul 11 11:05:22 2012 +0200
     3.3 @@ -43,6 +43,7 @@
     3.4  .af PN i
     3.5  
     3.6  .ds _E '\\\\n(PN''\f(SCMarkus Schnalke: The Modern Mail Handler\fP'  \" left
     3.7 +.ds _a '\f(SCAppendix \\\\n(H1\ \ \\\\*(_C\fP''\\\\n(PN'  \" right
     3.8  .ds _O '\f(SCChapter \\\\n(H1\ \ \\\\*(_C\fP''\\\\n(PN'  \" right
     3.9  .ds _o '\f(SC\\\\*(_C\fP''\\\\n(PN'  \" right
    3.10  .ds CH "
    3.11 @@ -131,7 +132,7 @@
    3.12  .if \\n(NS>2 .as SN \&.\\n(H3
    3.13  ..
    3.14  
    3.15 -.	\" H- - Chapter unnumbered and not in TOC ($2=="no" -> no page hdrs)
    3.16 +.	\" H- - Chapter not numbered and not in TOC
    3.17  .de H-
    3.18  .EH "
    3.19  .OH "
    3.20 @@ -150,17 +151,21 @@
    3.21  .nr PS -6
    3.22  .nr VS -6
    3.23  .lg
    3.24 -.if !,\\$2,no, \{
    3.25 -.	EH "\\\\*(_E
    3.26 -.	ie \\n(H1 .OH "\\\\*(_O
    3.27 -.	el .OH "\\\\*(_o
    3.28 -.	ds CF \\n(PN
    3.29 -.\}
    3.30 +.EH "\\\\*(_E
    3.31 +.OH "\\\\*(_o
    3.32 +.ds CF \\n(PN
    3.33  .RT
    3.34  .sp 4
    3.35  .nr PP 0
    3.36  ..
    3.37  
    3.38 +.	\" AP - Start the Appendix
    3.39 +.de AP
    3.40 +.nr _A 1
    3.41 +.nr H1 0
    3.42 +.af H1 A
    3.43 +..
    3.44 +
    3.45  .	\" H0 - Chapter ($2=="no" -> not numbered)
    3.46  .de H0
    3.47  .EH "
    3.48 @@ -175,7 +180,8 @@
    3.49  .el \{\
    3.50  .	NH 1
    3.51  .	ce 1
    3.52 -Chapter \\*(SN
    3.53 +.ie \\n(_A Appendix \\*(SN
    3.54 +.el Chapter \\*(SN
    3.55  .	sp .5
    3.56  .\}
    3.57  .ce 1
    3.58 @@ -193,8 +199,9 @@
    3.59  .\" set page headers and footers
    3.60  .EH "\\\\*(_E
    3.61  .ds _C "\\$1
    3.62 -.ie \\n(H1 .OH "\\\\*(_O
    3.63 -.el .OH "\\\\*(_o
    3.64 +.ie ,\\$2,no, .OH "\\\\*(_o
    3.65 +.el .ie \\n(_A .OH "\\\\*(_a
    3.66 +.el .OH "\\\\*(_O
    3.67  .ds CF \\n(PN
    3.68  .RT
    3.69  .sp 4