docs/master

diff style @ 79:f3c95ee96cc4

Moved TOC from end to beginning; extended makefile. The TOC generation concept and idea was inspired by the book ``UNIX Text Processing''.
author markus schnalke <meillo@marmaro.de>
date Wed, 06 Jun 2012 10:56:14 +0200
parents 0947c24dd4c6
children 5fb821ed6f3c
line diff
     1.1 --- a/style	Tue Jun 05 22:24:10 2012 +0200
     1.2 +++ b/style	Wed Jun 06 10:56:14 2012 +0200
     1.3 @@ -88,6 +88,11 @@
     1.4  .	rs
     1.5  ..
     1.6  
     1.7 +.de T_  \" add entry to TOC: .T_ pre-space indent-level text
     1.8 +.tm TOC____.sp \\$1
     1.9 +.tm TOC____\&\\h'\\$2u*2u*\\n(PIu'\\$3\0\0\a\t\\n(PN\fR
    1.10 +..
    1.11 +
    1.12  .rm NH
    1.13  .de NH
    1.14  .SH
    1.15 @@ -157,14 +162,9 @@
    1.16  .	lg
    1.17  .ds _C "\\$1
    1.18  .	RT
    1.19 -.	XS
    1.20 -.	sp .5v
    1.21 -.	B
    1.22 -.ie \\n(.$=1 \{\
    1.23 -\\*(SN \\$1
    1.24 -.\}
    1.25 -.el .if ,\\$2,no, \&\\$1
    1.26 -.	XE
    1.27 +.rm t_
    1.28 +.if !,\\$2,no, .ds t_ \\*(SN\0\0
    1.29 +.T_ .5v 0 "\fB\\*(t_\\$1
    1.30  .EH "\\\\*(_E
    1.31  .ie \\n(H1 .OH "\\\\*(_O
    1.32  .el .OH "\\\\*(_o
    1.33 @@ -205,11 +205,8 @@
    1.34  .	lg
    1.35  .	RT
    1.36  .if !'\\$2'no' \{\
    1.37 -.ds _S "\\$1
    1.38 -.	XS
    1.39 -.	sp .3v
    1.40 -	\\*(SN \\$1
    1.41 -.	XE
    1.42 +.	ds _S "\\$1
    1.43 +.	T_ .3v 1 "\\*(SN\0\0\\$1
    1.44  .\}
    1.45  .nr PP 0
    1.46  ..
    1.47 @@ -222,9 +219,7 @@
    1.48  \\$1
    1.49  .RT
    1.50  .ds _S "\\$1
    1.51 -.XS
    1.52 -		\\*(SN \\$1
    1.53 -.XE
    1.54 +.T_ 0 2 "\\*(SN\0\0\\$1
    1.55  .nr PP 0
    1.56  ..
    1.57