PDF verssion of D manuals
Frits van Bommel
fvbommel at REMwOVExCAPSs.nl
Fri Dec 15 04:56:53 PST 2006
Christian Kamm wrote:
>> Does anyone know how to get HTML-like auto-wrapping cells in latex,
>> without having to explicitly specify their width? Or is this not
>> possible?
>
> The tabularx package might do what you want:
> http://www.cs.ualberta.ca/~c603/latex/tabularx.pdf
>
> It requires specifying the width of the table on creation, but adds the
> column-type 'X' that automatically expands to the maximum width.
Unfortunately, it seems to default[1] to all 'X' columns having the same
width. This looks kind of bad with the table in types.d, where the first
column contains things like 'void', 'int' and 'float', and the other two
columns contain somewhat longer texts...
Another problem is that this doesn't play nice with your other
suggestion: a \replicate in the second argument of tabularx yields the
message "! Package array Error: Illegal pream-token (\replicate): `c'
used." and no output file :(.
Is there any way to expand this before it's seen by the tabularx
environment?
[1]: It's seems that it's possible to specify the relative widths, but
that's also problematic as DDoc doesn't know what they should be, so
using that would probably require yet another extra parameter to the macro.
More information about the Digitalmars-d-announce
mailing list