docs/master

changeset 6:2136d3e29f12

style: added H2, added BU, rework in NH.
author markus schnalke <meillo@marmaro.de>
date Wed, 07 Mar 2012 14:34:39 +0100
parents 8cc0af0724c2
children 7497062adc82
files style
diffstat 1 files changed, 31 insertions(+), 19 deletions(-) [+]
line diff
     1.1 --- a/style	Wed Mar 07 14:33:53 2012 +0100
     1.2 +++ b/style	Wed Mar 07 14:34:39 2012 +0100
     1.3 @@ -91,24 +91,11 @@
     1.4  .if !\\n(.$ .nr NS 1
     1.5  .if !\\n(NS .nr NS 1
     1.6  .nr H\\n(NS +1
     1.7 -.if !\\n(NS-4 .nr H5 0
     1.8 -.if !\\n(NS-3 .nr H4 0
     1.9 -.if !\\n(NS-2 .nr H3 0
    1.10 -.if !\\n(NS-1 .nr H2 0
    1.11 -.if !\\$1 .if \\n(.$ .nr H1 1
    1.12 -.if ,\\$1,S, \{\
    1.13 -.       nr NS \\n(.$-1
    1.14 -.       nr H1 \\$2 0
    1.15 -.       nr H2 \\$3 0
    1.16 -.       nr H3 \\$4 0
    1.17 -.       nr H4 \\$5 0
    1.18 -.       nr H5 \\$6 0
    1.19 -.\}
    1.20 +.if \\n(NS<2 .nr H2 0
    1.21 +.if \\n(NS<3 .nr H3 0
    1.22  .ds SN \\n(H1
    1.23 -.if \\n(NS-1 .as SN \&.\\n(H2
    1.24 -.if \\n(NS-2 .as SN \&.\\n(H3
    1.25 -.if \\n(NS-3 .as SN \&.\\n(H4
    1.26 -.if \\n(NS-4 .as SN \&.\\n(H5
    1.27 +.if \\n(NS>1 .as SN \&.\\n(H2
    1.28 +.if \\n(NS>2 .as SN \&.\\n(H3
    1.29  ..
    1.30  
    1.31  .de H0
    1.32 @@ -158,20 +145,41 @@
    1.33  .sp
    1.34  .	nr PS +2
    1.35  .	nr VS +2
    1.36 -.	NH 2
    1.37 +.if '\\$2'no' .SH
    1.38 +.if \\n(.$=1 .NH 2
    1.39  .	lg 0
    1.40  .	tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
    1.41 -\&\\*(SN \\$1
    1.42 +.if !'\\$2'no' \&\\*(SN
    1.43 +\\$1
    1.44  .	br
    1.45  .	tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
    1.46  .	nr PS -2
    1.47  .	nr VS -2
    1.48  .	lg
    1.49  .	RT
    1.50 +.if !'\\$2'no' \{\
    1.51  .ds _S "\\$1
    1.52  .	XS
    1.53  	\\*(SN \\$1
    1.54  .	XE
    1.55 +.\}
    1.56 +.nr PP 0
    1.57 +..
    1.58 +
    1.59 +.de H2
    1.60 +.br
    1.61 +.ne 5
    1.62 +.if '\\$2'no' .SH
    1.63 +.if \\n(.$=1 .NH 3
    1.64 +.if !'\\$2'no' \&\\*(SN
    1.65 +\\$1
    1.66 +.	RT
    1.67 +.if !'\\$2'no' \{\
    1.68 +.ds _S "\\$1
    1.69 +.	XS
    1.70 +	\\*(SN \\$1
    1.71 +.	XE
    1.72 +.\}
    1.73  .nr PP 0
    1.74  ..
    1.75  
    1.76 @@ -185,6 +193,10 @@
    1.77  .nr PP 0
    1.78  ..
    1.79  
    1.80 +.de BU
    1.81 +.IP \(bu
    1.82 +..
    1.83 +
    1.84  .am QP
    1.85  .ps -1
    1.86  ..