Mercurial > 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 wrap: on
line diff
--- a/colophon.roff Wed Jul 11 11:04:43 2012 +0200 +++ b/colophon.roff Wed Jul 11 11:05:22 2012 +0200 @@ -1,4 +1,4 @@ -.H- Colophon no +.H- Colophon .P This document was typeset with the .I troff
--- a/official.roff Wed Jul 11 11:04:43 2012 +0200 +++ b/official.roff Wed Jul 11 11:05:22 2012 +0200 @@ -1,4 +1,4 @@ -.H- Confirmation no +.H- Confirmation .P I hereby declare that this thesis is the result of my own work, except where otherwise indicated.
--- a/style Wed Jul 11 11:04:43 2012 +0200 +++ b/style Wed Jul 11 11:05:22 2012 +0200 @@ -43,6 +43,7 @@ .af PN i .ds _E '\\\\n(PN''\f(SCMarkus Schnalke: The Modern Mail Handler\fP' \" left +.ds _a '\f(SCAppendix \\\\n(H1\ \ \\\\*(_C\fP''\\\\n(PN' \" right .ds _O '\f(SCChapter \\\\n(H1\ \ \\\\*(_C\fP''\\\\n(PN' \" right .ds _o '\f(SC\\\\*(_C\fP''\\\\n(PN' \" right .ds CH " @@ -131,7 +132,7 @@ .if \\n(NS>2 .as SN \&.\\n(H3 .. -. \" H- - Chapter unnumbered and not in TOC ($2=="no" -> no page hdrs) +. \" H- - Chapter not numbered and not in TOC .de H- .EH " .OH " @@ -150,17 +151,21 @@ .nr PS -6 .nr VS -6 .lg -.if !,\\$2,no, \{ -. EH "\\\\*(_E -. ie \\n(H1 .OH "\\\\*(_O -. el .OH "\\\\*(_o -. ds CF \\n(PN -.\} +.EH "\\\\*(_E +.OH "\\\\*(_o +.ds CF \\n(PN .RT .sp 4 .nr PP 0 .. +. \" AP - Start the Appendix +.de AP +.nr _A 1 +.nr H1 0 +.af H1 A +.. + . \" H0 - Chapter ($2=="no" -> not numbered) .de H0 .EH " @@ -175,7 +180,8 @@ .el \{\ . NH 1 . ce 1 -Chapter \\*(SN +.ie \\n(_A Appendix \\*(SN +.el Chapter \\*(SN . sp .5 .\} .ce 1 @@ -193,8 +199,9 @@ .\" set page headers and footers .EH "\\\\*(_E .ds _C "\\$1 -.ie \\n(H1 .OH "\\\\*(_O -.el .OH "\\\\*(_o +.ie ,\\$2,no, .OH "\\\\*(_o +.el .ie \\n(_A .OH "\\\\*(_a +.el .OH "\\\\*(_O .ds CF \\n(PN .RT .sp 4