vincentarelbundock / tinytable

Simple and Customizable Tables in `R`
https://vincentarelbundock.github.io/tinytable
GNU General Public License v3.0
196 stars 16 forks source link

typst: asterisk escape #246

Closed gerhardriener closed 4 months ago

gerhardriener commented 4 months ago

when creating tables with asterisks (like significance stars) they are not escaped leading to following error message in typst rendering

[typst]: Compiling asterisk-escape.typ to asterisk-escape.pdf...error: unclosed delimiter

Reprex

---
title: "asterisk escape"
format: typst
---

## Quarto to typst
Error message

```{r}
library(modelsummary)
reg <- lm(mpg ~ wt, data = mtcars)
modelsummary(reg, stars = TRUE, output = "tinytable")
marcboschmatas commented 4 months ago

I'm not this package's developer, but I added typst escape characters a few weeks back. This issue is already fixed in the development version, see here.

vincentarelbundock commented 4 months ago

Thanks again for that nice contribution, @marcboschmatas .

I'll close this issue now, as it should be resolved, but feel free to comment again if you can't get it to work using the github development version.

FYI, I plan to release a new version to CRAN in the coming weeks, but I have completely re-written the Typst tables code to use the default #table() rather than tablex$(). I still need to test it a bit more to make sure everything works as expected. (Feel free to give it a try!)