vincentdoerig / latex-css

LaTeX.css is a CSS library that makes your website look like a LaTeX document
https://latex.vercel.app
MIT License
2.74k stars 125 forks source link

Multiline table headers borders drawn at every line of the header rows #58

Closed barslmn closed 8 months ago

barslmn commented 1 year ago

Hi, Thanks for the nice style.

I think it should just draw the border at the end of the table header instead of the every line. I think these lines draw the border in the table header: https://github.com/vincentdoerig/latex-css/blob/34d7276af6d33cde2ad787216518537ae5daa333/style.css#L312-L314

tbody already has a top border so I think these can be omitted. Or maybe just made the border be drawn on the last header line.

image

Best, B

vihuna commented 8 months ago

Hi @barslmn, another LaTeX.css user here.

I think it should just draw the border at the end of the table header instead of the every line

This is probably intended by design, as you can see in Table 2 from documentation. LaTeX.css default style for tables is inspired by LaTeX booktabs package guidelines.

Since LaTeX.css version v1.10.0, some custom table borders are allowed (see release notes and documentation), so you can begin with a borderless table and add the borders you want.

Regards.

barslmn commented 8 months ago

Thanks for letting me know about the update @vihuna . Looking back at that table, I just made it a single line header. image