-
-
Notifications
You must be signed in to change notification settings - Fork 14
Closed
Labels
bugSomething isn't workingSomething isn't workingheadersIssue related to table headers and their repetitionIssue related to table headers and their repetitionrendererRelated to the final rendering (drawing) step of the table.Related to the final rendering (drawing) step of the table.
Milestone
Description
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:
#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 workingSomething isn't workingheadersIssue related to table headers and their repetitionIssue related to table headers and their repetitionrendererRelated to the final rendering (drawing) step of the table.Related to the final rendering (drawing) step of the table.