Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typst writer: support Typst 0.11 table features. #9593

Merged
merged 4 commits into from
Mar 20, 2024
Merged

Typst writer: support Typst 0.11 table features. #9593

merged 4 commits into from
Mar 20, 2024

Conversation

jgm
Copy link
Owner

@jgm jgm commented Mar 20, 2024

  • colspans
  • rowspans
  • cell alignment overrides
  • relative column widths
  • header and footer
  • multiple table bodies with intermediate headers

Row heads are not yet supported.

The default typst template has been modified so that tables don't have lines by default. As is standard with pandoc, we only add a line under a header or over a footer. However, a different default stroke pattern can easily be added in a template.

Closes #9588.

- colspans
- rowspans
- cell alignment overrides
- relative column widths
- header and footer
- multiple table bodies with intermediate headers

Row heads are not yet supported.

The default typst template has been modified so that tables
don't have lines by default. As is standard with pandoc, we only
add a line under a header or over a footer. However, a different
default stroke pattern can easily be added in a template.

Closes #9588.
@gordonwoodhull
Copy link
Contributor

Nice! I did basic testing of colspans, rowspans, cell alignment, header and footer via Quarto, mostly by including HTML.

Couldn't figure out how to test intermediate headers - guess I am not familiar with this.

We should remove the table lines and keep only the header/footer lines in Quarto as well.

@jgm
Copy link
Owner Author

jgm commented Mar 20, 2024

I think the main question I have at this point is whether there's any natural way to support "row heads" in typst. I don't see one, so maybe I'll leave this unimplemented?

@jgm jgm merged commit 604f541 into main Mar 20, 2024
18 of 21 checks passed
@jgm jgm deleted the issue9588 branch March 20, 2024 21:25
@gordonwoodhull
Copy link
Contributor

I haven’t heard of “row heads” nor am I finding anything in a brief search

@jgm
Copy link
Owner Author

jgm commented Mar 20, 2024

https://stackoverflow.com/questions/28047264/tables-with-row-and-column-headers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support new typst table features (Typst 0.11)
2 participants