Skip to content

typst table overflowing with gt and row names #10228

@olivroy

Description

@olivroy

Bug description

A table doesn't wrap its output

Steps to reproduce

---
title: "Sortable Tables Test"
format: typst
editor: source
---


```{r}
mtcars |> head() |> gt::gt(rownames_to_stub = TRUE)
```

Expected behavior

I would expect the text to be wrapped.

Actual behavior

The text overflows (see Hornet Sport).
image

Your environment

Windows, RStudio 2024.07.0

Quarto check output

Quarto 1.5.53
[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.2.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.41.0: OK
      Typst version 0.11.1: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.5.49
      Path: C:\Users\name\AppData\Local\Programs\RStudio\resources\app\bin\quarto\bin
      CodePage: 1252

[>] Checking tools....................OK
      TinyTeX: (external install)
      Chromium: (not installed)

[>] Checking LaTeX....................OK
      Using: TinyTex
      Path: C:\Users\name\AppData\Roaming\TinyTeX\bin\windows\
      Version: 2024

[>] Checking basic markdown render....OK

[>] Checking Python 3 installation....OK
      Version: 3.12.4
      Path: C:/Users/name/AppData/Local/Programs/Python/Python312/python.exe
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with py -m pip install jupyter

[>] Checking R installation...........OK
      Version: 4.3.2
      Path: C:/PROGRA~1/R/R-43~1.2
      LibPaths:
        - C:/Users/name/AppData/Local/R/win-library/4.3
        - C:/Program Files/R/R-4.3.2/library
      knitr: 1.47
      rmarkdown: 2.27

[>] Checking Knitr engine render......OK

Mentioned in rstudio/gt#1584

Metadata

Metadata

Labels

bugSomething isn't workingtablesIssues with Tables including the gt integrationthird-partyIssues involving interaction with a third-party librarytriaged-toIssues that were not self-assigned, signals that an issue was assigned to someone.typst

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions