Louis Guillaume wrote:
Hi,

I'm looking for a way to get my section numbers in the table of
contents. This is with -ms.

This is what I've been trying:

.NH 1
OVERVIEW
.XS
\n[H1]
\.\n[H2]
\.\n[H3]
OVERVIEW
.XE


The above produces...

1 OVERVIEW . . . . . . . . . . . . . . . . . . . . . . . . . . . .  1

... in the table of contents. Why does it not produce:

1.0.0.0 OVERVIEW . . . . . .

???

If I try to escape the `.' at the beginning of the line further like...

\\.\n[H2]

... I get `1\.0\.0\.0' which is just strange.


Any help would be great, thanks!

Louis



some of the smarter guys will tell you how to escape the `.' at the beginning of a line correctly (I don't know...). but I'd use simply:

.NH 1
OVERVIEW
.XS
\n[H1].\n[H2].\n[H3] OVERVIEW
.XE
.PX


which would work fine. actually, I probably would prefer something like

.NH 1
OVERVIEW
.XS
\*[SN] OVERVIEW
.XE
.NH 2
Introduction
.XS
\*[SN] Introduction
.XE
.PX

to make the enumeration in the text body and the table of content consistent.


joerg
_______________________________________________
Groff mailing list
Groff@gnu.org
http://lists.gnu.org/mailman/listinfo/groff



_______________________________________________
Groff mailing list
Groff@gnu.org
http://lists.gnu.org/mailman/listinfo/groff

Reply via email to