PgBiel / typst-tablex

More powerful and customizable tables in Typst
MIT License
370 stars 12 forks source link

Slight white line shown between cells without vlines specified #120

Closed ntjess closed 7 months ago

ntjess commented 7 months ago

With auto-vlines: false, there's a small white gap showing between cells in svg and pdf formats:

image

Is there a solution other than passing vlines that match cell fills?

PgBiel commented 7 months ago

Hello, I'm failing to reproduce this with the following setup:

#import "@preview/tablex:0.0.8": tablex
#table(fill: red, stroke: none, columns: 2)[a][b]
#tablex(fill: red, stroke: none, columns: 2)[a][b]

#tablex(fill: red, auto-vlines: false, columns: 2)[a][b]

This sounds like it's something specific to each PDF reader, and so it's likely not something we can solve. However, do you have a sample document I could test this with?

ntjess commented 7 months ago

image Oh interesting, your MWE PDF shows the effects on sumatra and the vscode live preview, but not in chrome. The MWE as an SVG shows the effects in chrome as well. For the record, I tested on 1920x1080 and 1920x1280 displays.

Feel free to close the issue if indeed this is application-specific

ntjess commented 7 months ago

I think this isn't localized to typst. I tried with an M$ Word PDF and see the same problems. But the line is quite a bit smaller and only appears at some zoom levels image

PgBiel commented 7 months ago

Yeah I guess there isn't much we can do then... I think I'll close this issue for now, but if we have any further insights in the future, we can reopen it. Thanks!