Closed deffi closed 8 months ago
Related: #48
Thanks for the detailed report. This seems to be related to our usage of measure
to determine the width of "auto" columns. Additionally, Typst currently considers words_joined_by_underlines as a thing, and doesn't linebreak at the underlines, generating some unexpected behavior at times. So these are things to consider.
In the meantime, I'd suggest trying to manually set the column sizes to some fixed value. Additionally, to allow line breaks at underlines, you may have to resort to a workaround such as
#show "_": [#sym.zws;\_#sym.zws]
Which adds zero-width spaces before and after underlines. The downside is that those invisible characters are copiable in the PDF by the end user.
Anyway, if I find something out, I'll keep you posted. Thanks again for opening the issue.
Hello, sorry for the delay. The issue is now fixed for the next release (0.0.8). Thanks for reporting!
The table should now make good use of all available page width.
In the meantime, you can use tablex.typ
from the 0.0.x
branch - just download the file, place it in your project and import it.
Input:
Result:![Result](https://github.com/PgBiel/typst-tablex/assets/470243/68cdf723-e126-42fd-8726-44bfa4600a61)
Observations:
The second observation can be demonstrated by shortening the first cell to![Result](https://github.com/PgBiel/typst-tablex/assets/470243/590d371b-eee4-4ad3-90a5-c752865f7567)
lorem_ipsum_dolor_sit_am
; now, the table renders correctly. Note that the third cell is no longer overflowing and the first cell contains more text than in the example above:Typst 0.9, tablex 0.0.6