summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorjhaegg <jhaegg>2003-11-04 04:53:31 +0000
committerjhaegg <jhaegg>2003-11-04 04:53:31 +0000
commitb06658877b1d61e9afb6344b9a15dc5cb3925096 (patch)
tree97e90292309fcbbb897ddb6234f78c2e135e0b26 /contrib
parentbac6fd747f8792d3cc728d113c4c8f7945509efe (diff)
downloadgroff-b06658877b1d61e9afb6344b9a15dc5cb3925096.tar.gz
* another patch from ulrich lauther to fix the
TOC up to 14 heading levels.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/mm/ChangeLog5
-rw-r--r--contrib/mm/groff_mm.man22
-rw-r--r--contrib/mm/m.tmac31
3 files changed, 35 insertions, 23 deletions
diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 71e825f2..90ad2346 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 05:14:45 2003 Joergen Haegg <jh@axis.com>
+
+ * another patch from ulrich lauther to fix the
+ TOC up to 14 heading levels.
+
Mon Oct 13:48:25 2003 Joergen Haegg <jh@axis.com>
* problem with more than 7 levels of headings fixed with
diff --git a/contrib/mm/groff_mm.man b/contrib/mm/groff_mm.man
index 8229f23c..3186ecc0 100644
--- a/contrib/mm/groff_mm.man
+++ b/contrib/mm/groff_mm.man
@@ -1,5 +1,5 @@
.\"
-.\" $Id: groff_mm.man,v 2.9 2003/03/19 22:05:11 wlemb Exp $
+.\" $Id: groff_mm.man,v 2.10 2003/11/04 04:53:31 jhaegg Exp $
.\"
.de T2
.if t .ne 2v
@@ -612,7 +612,7 @@ See \fBINITR\fP.
.TP
.B "H level [heading-text [heading-suffix]]"
Numbered section heading.
-Section headers can have a level between 1 and 7, level 1 is the
+Section headers can have a level between 1 and 14, level 1 is the
top level.
The text is given in \fIheading-text\fP, and must be
surrounded by double quotes if it contains spaces.
@@ -679,8 +679,8 @@ is centerered.
The font of each heading level is controlled by string \fBHF\fP.
It contains a fontnumber or fontname for each level.
Default
-is \fB2\ 2\ 2\ 2\ 2\ 2\ 2\fP (all headings in italic).
-Could also be written as \fBI\ I\ I\ I\ I\ I\ I\fP.
+is \fB2\ 2\ 2\ 2\ 2\ 2\ 2\ 2\ 2\ 2\ 2\ 2\ 2\ 2\fP (all headings in italic).
+Could also be written as \fBI\ I\ I\ I\ I\ I\ I\ I\ I\ I\ I\ I\ I\ I\fP.
Note that some other implementations use \fB3\ 3\ 2\ 2\ 2\ 2\ 2\fP as the
default value.
All omitted values are presumed to be a 1.
@@ -690,7 +690,7 @@ All omitted values are presumed to be a 1.
String \fBHP\fP controls the pointsize of each heading, in the
same way as \fBHF\fP controls the font.
A value of 0 selects the default point size.
-Default value is \fB0\ 0\ 0\ 0\ 0\ 0\ 0\fP.
+Default value is \fB0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\fP.
Beware that only the
point size changes, not the vertical size.
That can be controlled by the user specified macro \fBHX\fP and/or
@@ -698,7 +698,7 @@ That can be controlled by the user specified macro \fBHX\fP and/or
.sp
\fBHeading counters\fP
.br
-Seven number registers, named \fBH1\fP thru \fBH7\fP contains
+Fourteen number registers, named \fBH1\fP thru \fBH14\fP contains
the counter for each heading level.
The values are printed using arabic numerals, this can be changed
with the macro \fBHM\fP (see below).
@@ -771,7 +771,7 @@ Resets to the default if called without argument.
Hyphenation can be turned off by setting number
register \fBHy\fP to 0 in the beginning of the file.
.TP
-.B "HM [arg1 [arg2 [... [arg7]]]]"
+.B "HM [arg1 [arg2 [... [arg14]]]]"
Heading mark style.
Controls the type of marking for printing of the heading counters.
Default is 1 for all levels.
@@ -1803,7 +1803,7 @@ No output will occur if \fBAph\fP is zero, but there will always
be an appendix-entry in the 'List of contents'.
.TP
.B Cl
-Contents level [0:7], contents saved if heading level <= Cl, default 2.
+Contents level [0:14], contents saved if heading level <= Cl, default 2.
.TP
.B Cp
Eject page between LIST OF XXXX if Cp == 0, default 0.
@@ -1850,10 +1850,10 @@ just before the page break.
Useful in user defined header macros.
.TP
.B Hb
-Heading break level [0:7], default\ 2.
+Heading break level [0:14], default\ 2.
.TP
.B Hc
-Heading centering level, [0:7].
+Heading centering level, [0:14].
Default\ 0.
.TP
.B Hi
@@ -1885,7 +1885,7 @@ is less than or equal to \fBHps\fP.
Value is in units, normally\ 1.
.TP
.B Hs
-Heading space level [0:7], default\ 2.
+Heading space level [0:14], default\ 2.
.TP
.B Hss
This is the number of lines that follows \fB.H\fP when the heading-level
diff --git a/contrib/mm/m.tmac b/contrib/mm/m.tmac
index 1b453870..197f78d3 100644
--- a/contrib/mm/m.tmac
+++ b/contrib/mm/m.tmac
@@ -3,8 +3,8 @@
.ds RE \\$2
..
.\"
-.\" $Id: m.tmac,v 2.19 2003/10/20 11:50:50 jhaegg Exp $
-.@revision $Revision: 2.19 $
+.\" $Id: m.tmac,v 2.20 2003/11/04 04:53:31 jhaegg Exp $
+.@revision $Revision: 2.20 $
.ig
Copyright (C) 1991-2000 Free Software Foundation, Inc.
@@ -37,7 +37,7 @@ Index array!index
.if \n(.C .ab The groff mm macros do not work in compatibility mode.
.if (\n[.warn] == 65543) .warn
.\" ######## init #######
-.\" Contents level [0:7], contents saved if heading level <= Cl
+.\" Contents level [0:14], contents saved if heading level <= Cl
.nr Cl 2
.\" Eject page between LIST OF XXXX if Cp == 0
.nr Cp 0
@@ -66,20 +66,27 @@ Index array!index
.nr H5 0 1
.nr H6 0 1
.nr H7 0 1
-.\" Heading break level [0:7]
+.nr H8 0 1
+.nr H9 0 1
+.nr H10 0 1
+.nr H11 0 1
+.nr H12 0 1
+.nr H13 0 1
+.nr H14 0 1
+.\" Heading break level [0:14]
.nr Hb 2
-.\" heading centering level, [0:7]
+.\" heading centering level, [0:14]
.nr Hc 0
.\" header format
-.ds HF 2 2 2 2 2 2 2
+.ds HF 2 2 2 2 2 2 2 2 2 2 2 2 2 2
.\" heading temp. indent [0:2]
.\" 0 -> 0 indent, left margin
.\" 1 -> indent to right , like .P 1
.\" 2 -> indent to line up with text part of preceding heading
.nr Hi 1
.\" header pointsize
-.ds HP 0 0 0 0 0 0 0
-.\" heading space level [0:7]
+.ds HP 0 0 0 0 0 0 0 0 0 0 0 0 0 0
+.\" heading space level [0:14]
.nr Hs 2
.\" heading numbering type
.\" 0 -> multiple (1.1.1 ...)
@@ -930,7 +937,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
.\"
.\" clear lower counters
.nr hd*i 1 1
-.while \\n+[hd*i]<8 .if \\n[hd*level]<\\n[hd*i] .nr H\\n[hd*i] 0 1
+.while \\n+[hd*i]<15 .if \\n[hd*level]<\\n[hd*i] .nr H\\n[hd*i] 0 1
.\"
.\" save last text for use in TP
.if \\n[hd*level]=1 .ds H1txt \\$2\\$3
@@ -962,7 +969,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
.if \\n[hd*level]>1 .as hd*mark \\n[H2]
.\"
.nr hd*i 2 1
-.while \\n+[hd*i]<8 .if \\n[hd*level]>(\\n[hd*i]-1) .as hd*mark .\\n[H\\n[hd*i]]
+.while \\n+[hd*i]<15 .if \\n[hd*level]>(\\n[hd*i]-1) .as hd*mark .\\n[H\\n[hd*i]]
.if \\n[Ht] .ds hd*mark \\n[H\\n[hd*level]].
.\"
.\" special case, no dot after level one heading if not H1dot true
@@ -1076,7 +1083,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
.\"--------
.de HM
.nr hd*i 0 1
-.while \\n+[hd*i]<8 .af H\\n[hd*i] \\$[\\n[hd*i]] 1
+.while \\n+[hd*i]<15 .af H\\n[hd*i] \\$[\\n[hd*i]] 1
..
.\"----------------------
.\" set page-nr, called from header
@@ -2883,7 +2890,7 @@ in=\\n[.i] fi=\\n[.u] .d=\\n[.d] nl=\\n[nl] pg=\\n[%]
.\}
.\" clear lower counters
.nr app*i 1 1
-.while \\n+[app*i]<8 .nr H\\n[app*i] 0 1
+.while \\n+[app*i]<15 .nr H\\n[app*i] 0 1
..
.\"------------
.de app@index