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

Repeat-headers breaks inner tables' vlinexs on following pages #34

@lf-

Description

@lf-

This is kind of a strange bug I ran into while doing a homework, so please excuse the messy code that has been sanitized.

Built with tablex main 2f80d86, and typst 0.6.0.

Problem: the vlinex of the inner table in the first row of a new page gets vertically shifted:

image

#import "./tablex/tablex.typ": tablex, vlinex, hlinex

#lorem(500)

#let preflist(..args) = {
    let args = args.pos()
    let maxlength = 6
    let parts = args.map(a => a + range(maxlength - a.len()).map(_ => [])).flatten()
    tablex(
        columns: 6,
        auto-lines: false,
        (), vlinex(),
        ..parts
    )
}

#tablex(
    columns: (40pt, 18pt, 18pt, 120pt, 120pt),
    auto-vlines: false,
    header-rows: 1,
    repeat-header: true,
    (), vlinex(), vlinex(), vlinex(), vlinex(), (),
    hlinex(stroke: none),
    [Aaaaa], [$a$], [$a$], [aaaaaaaaaaaaaaaaaa], [aaaaaaaaaaaaaaaaaaaaaaaa],
    [1], [1], [1], [1 blah 1], preflist(
        (1, 1, 1, 1, 1, 1),
        (1, 1, 1, 1, 1),
        (1, 1, 1, 1, 1),
        (1, 1, 1, 1, 1),
        (1, 1, 1, 1, 1, 1),
        (1, 1, 1),
    ),

    [1], [1], [1], [1 blah 1], preflist(
        (1, 1, 1, 1, 1),
        (1, 1, 1, 1, 1),
        (1, 1, 1, 1, 1),
        (1, 1, 1),
        (1, 1, 1, 1, 1),
        (1, 1, 1),
    ),

    [1], [1], [1], [1 blah 1, blah 1], preflist(
        (1, 1, 1, 1, 1),
        (1, 1, 1, 1),
        (1, 1, 1, 1, 1),
        (1, 1),
        (1, 1, 1, 1, 1),
        (1, 1, 1),
    ),

    [1], [1], [1], [1 blah 1], preflist(
        (1, 1, 1, 1, 1),
        (1, 1, 1, 1),
        (1, 1, 1, 1),
        (1, 1),
        (1, 1, 1, 1),
        (1, 1, 1),
    ),

    [1], [1], [1], [1 blah 1], preflist(
        (1, 1, 1, 1),
        (1, 1, 1),
        (1, 1),
        (1, 1),
        (1, 1, 1, 1),
        (1, 1, 1),
    ),

    [1], [1], [1], [1 blah 1, blah 1], preflist(
        (1, 1, 1),
        (1, 1, 1),
        (1, 1),
        (1, 1),
        (1, 1, 1, 1),
        (1, 1),
    ),

    [1], [1], [1], [1 blah 1], preflist(
        (1, 1, 1),
        (1, 1, 1),
        (1, 1),
        (1, 1),
        (1, 1, 1, 1),
        (1, 1),
    ),

    [1], [1], [1], [1 blah 1, blah 1], preflist(
        (1, 1),
        (1, 1),
        (1, 1),
        (1, 1),
        (1, 1),
        (1, 1),
    ),

    [1], [1], [1], [1 blah 1], preflist(
        (1, 1),
        (1, 1),
        (1, 1),
        (1, 1),
        (1, 1),
        (1, 1),
    ),
    hlinex(stroke: none),
)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingheadersIssue related to table headers and their repetitionrendererRelated to the final rendering (drawing) step of the table.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions