Given the source file bad.ms:
========== bad-hdtbl.ms =======================================================
.LP
Groff 1.24.1 has a problem with the hdtbl macro package.
.br
.TBL cols=3
. TR .TD 1*1 ".TD rowspan=2" 1+2*2 .TD 1*3
. TR .TD 2*1 .TD 2*3
.ETB
.br
.LP
Did it work?
========== End of bad-hdtbl.ms ================================================

groff 1.24.1 does not work, failing with the following error:

$ groff -Tpdf -ms -mhdtbl bad-hdtbl.ms >bad-hdtbl.ms.pdf
hdtbl.tmac: cannot load package; macro 'TH' is already defined
s.tmac:bad-hdtbl.ms:5: error: sorry, .TR not implemented

groff 1.23.0 works fine, no error and produces a working PDF file:

$ /usr/local/sw/versions/groff/1.23.0/bin/groff -Tpdf -ms -mhdtbl bad-hdtbl.ms 
>bad-hdtbl.ms.pdf

groff 1.24.1 fails trying to load -mhdtbl before -ms:

$ groff -Tpdf -mhdtbl -ms bad-hdtbl.ms >bad-hdtbl.ms.pdf
s.tmac:bad-hdtbl.ms:5: error: sorry, .TR not implemented
hdtbl.tmac:bad-hdtbl.ms:7: Each table (.TBL) should contain at least one table 
row (.TR)!
hdtbl.tmac:bad-hdtbl.ms:7: There is only 1 column
 in the 0th row but 3 are expected.

groff 1.23.0 also fails trying to load -mhdtbl before -ms:
$ /usr/local/sw/versions/groff/1.23.0/bin/groff -Tpdf -mhdtbl -ms bad-hdtbl.ms 
>bad-hdtbl.ms.pdf
s.tmac:bad-hdtbl.ms:5: error: sorry, .TR not implemented
bad-hdtbl.ms:7: Each table (.TBL) should contain at least one table row (.TR)!
bad-hdtbl.ms:7: There is only 1 column in the 0th row but 3 are expected.

-- 
T. Kurt Bond, [email protected]

  • ... T . Kurt Bond
    • ... Deri via discussion of the GNU roff typesetting system and related software

Reply via email to