changeset 11:9a313c929a2a

style: Introduced .U2 for unnumbered .H2.
author markus schnalke <meillo@marmaro.de>
date Fri, 20 Apr 2012 19:14:30 +0200
parents e99200313514
children 7ca384d68edc
files ch01.roff style
diffstat 2 files changed, 16 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ch01.roff	Fri Apr 20 17:06:58 2012 +0200
+++ b/ch01.roff	Fri Apr 20 19:14:30 2012 +0200
@@ -22,7 +22,7 @@
 had in spirit remained so. This is similar to Unix, which much less
 is a specific software product, as it is a style of system design.
 
-.H2 "History" no
+.U2 "History
 .P
 MH is an electronic mail system, originating in the RAND Corporation.
 In 1977, Norman Shapiro and Stockton Gaines had proposed the design
@@ -64,7 +64,7 @@
 principle concepts in a more modern way. This version of MH is the
 subject of this thesis.
 
-.H2 "Concepts" no
+.U2 "Concepts
 .P
 MH is a toolchest, modelled after the Unix toolchest. It consists of a
 bunch of tools, each covering one task of email handling. These programs
--- a/style	Fri Apr 20 17:06:58 2012 +0200
+++ b/style	Fri Apr 20 19:14:30 2012 +0200
@@ -169,17 +169,24 @@
 .de H2
 .br
 .ne 4
-.if '\\$2'no' .SH
 .if \\n(.$=1 .NH 3
-.if !'\\$2'no' \&\\*(SN
+\&\\*(SN
 \\$1
-.	RT
-.if !'\\$2'no' \{\
+.RT
 .ds _S "\\$1
-.	XS
+.XS
 	\\*(SN \\$1
-.	XE
-.\}
+.XE
+.nr PP 0
+..
+
+.de U2
+.br
+.ne 4
+.SH
+.if \\n(.$=1 .NH 3
+\\$1
+.RT
 .nr PP 0
 ..