这是indexloc提供的服务,不要输入任何密码
Skip to content

Easily disable hlines and vlines at the edge of the table? #33

@lf-

Description

@lf-

I have tried writing something like the following, but it seems clumsy. Is there a better way to turn off vlines and hlines inside a table? One issue I have is that I can't tell the dimensions of the table from inside map-hlines, so I can't automatically know the end of the table.

#tablex(
    columns: (auto, auto, auto, auto, auto),
    auto-vlines: false,
    map-hlines: h => if (h.y == 0 or h.y == 2) { hlinex(stroke: none) } else { h },
    (), vlinex(), vlinex(), vlinex(), vlinex(), (),
    [a], [$u$], [$v$], [c], [d]
)

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions