Am 03.02.2013 22:47, schrieb Bernd Warken:
The following table

.TBL cols=3
.TR ".TD 1*2 .TD 2+3*2 colspan=2"
.ETB

wrongly gets:

|                                          |                     |
+1*2---------------------------------------+2+3*2----------------+

while

.TBL cols=3
.TR
.TD 1*2
.TD 2+3*2 colspan=2
.ETB

gets it right:

|                    |                                           |
+1*2-----------------+-2+3*2-------------------------------------+
                      |
Bernd Warken


hdtbl behaves right in both  of your examples. The hdtbl-manpage says:
"If a macro has one or more arguments, and it is not starting a line, it
must be enclosed in double quotes." So you must write the second line of the first example
        .TR .TD 1*2 ".TD 2+3*2 colspan=2"
to get the expected result.

Jochim Walsdorff
--
Dr. Joachim Walsdorff • Hauptstraße 225 • D 69117 Heidelberg •
Tel. 06221-28680


Reply via email to