[Top][All Lists]

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

Small bug in groff 1.19.2 footnote number control?

From: Luke Kendall
Subject: Small bug in groff 1.19.2 footnote number control?
Date: Sun, 16 Sep 2007 20:10:42 +1000
User-agent: Thunderbird (X11/20070604)

Hi.  The last few days, I've been dusting off my wife's doctoral thesis,
done in 1988 with the original troff and mm macro package, and making it
work in groff.  groff/tbl/pic and the new mm package stood up remarkably
well to the tough challenge!

One small problem is that it seems that either groff is no longer using
the number register called ":p" for storing the footnote numbers, or
else the instruction ".nr :p 0" isn't taking effect.  So we can't reset
the footnote number to 0 at the start of each new chapter.

Here's a small example that shows the problem (the footnotes in this
example are numbered 1, 2, 3 - they should be 1, 2, 1).

test.mm, format with groff -t -p -mm test.mm -Tps > test.ps:

Some text
Test footnote number resetting.
First, this should be number 1\*F
I hope this is one.
So this should be number 2\*F
I hope this is two.
So let's reset the footnote number register to 0 and make a fresh footnote.
.nr :p 0
Okay, this footnote should also be number 1\*F
Is it?  It isn't, in my wife's thesis when we do this.

Oh, I also get a segmentation fault in grohtml if I try to convert my
wife's thesis to html with -Thtml (in contrast to -Tps).

If you're interested, I can provide you with the data files.  grohtml
works well for me in other uses, but I can believe that my wife's thesis
would trigger bugs (it uses tbl in stressful ways, one footnote is so
long that I had to add a .vs -4 to avoid a bug in groff overprinting the
following page over the footnote body, and it even uses pic to overdraw
a line over a table on one page, via the use of diversions).



reply via email to

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