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

Fractional columns within #block #44

@maxcrees

Description

@maxcrees

The upgrade to Typst 0.7.0 has revealed one regression and one longstanding issue.

Consider the following:

#table(columns: 1fr, [1A. table])
#tablex(columns: 1fr, [1B. tablex])

#block(table(columns: 1fr, [2A. table plain block]))
#block(tablex(columns: 1fr, [2B. tablex plain block]))

#block(breakable: true, table(columns: 1fr, [3A. table breakable: true]))
#block(breakable: true, tablex(columns: 1fr, [3B. tablex breakable: true]))

#block(breakable: false, table(columns: 1fr, [4A. table breakable: false]))
#block(breakable: false, tablex(columns: 1fr, [4B. tablex breakable: false]))

The behavior of these examples was unchanged from at least Typst 0.0.3 to 0.0.6 and tablex 0.0.2 to 0.0.4:

image

Note how 2B and 3B are not drawn correctly.


Then, in Typst 0.0.7 and tablex 0.0.4, example 4B changed (to become incorrect like 2B and 3B). Note that only 4B changed; all other examples appear identical to the above:

image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions