Hi all,
I'm drawing a table and want to add spanning column labels with a "partial" rule under. What I need is similar to what \cmidrule does in LaTeX: lines under the spanning column label, with gaps between the lines to keep them distinct.
When I use two table.hline() side by side, they connect into a continuous line. Is there a way to insert a small gap between them so they show up as distinct? Using #tablex, I would use the expand argument with a negative value, but I need to use the built-in table functionality in Typst rather than an external package.
Any ideas would be much appreciated!
Here's a minimal example, a screenshot of the result, and an example of what I'm trying to replicate in LaTeX:
#table(
columns: 5,
stroke: none,
[], table.cell(colspan: 2, align: center)[bc], table.cell(colspan: 2, align: center)[de],
[a], [b], [c], [d], [e],
[1], [2], [3], [4], [5],
table.hline(y: 1, start: 1, end: 3),
table.hline(y: 1, start: 3, end: 6),
)