groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Odd problem escaping `.'


From: Joerg van den Hoff
Subject: Re: [Groff] Odd problem escaping `.'
Date: Tue, 02 May 2006 15:08:16 +0200
User-agent: Thunderbird 1.5.0.2 (Macintosh/20060308)

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
address@hidden
http://lists.gnu.org/mailman/listinfo/groff





reply via email to

[Prev in Thread] Current Thread [Next in Thread]