Closed maibennett closed 4 months ago
Thanks for taking the time to craft an example. I'll look into it when I get back home to my computer.
With the latest from GitHub, it looks like things are working OK. The only thing to be careful about is that we should not escape the \\$
manually in the creation of the data frame if we're going to use format_tt(escape=TRUE)
. Typst does not play well with double escapes, apparently. So you need:
df = data.frame(Meas = rep(c("meas1 ($)", "meas2 (pts)", "meas3"), 2),
y1 = c(1:3, 6:8),
y2 = c(1:3, 6:8) + 1,
y3 = c(1:3, 6:8) + 2,
y4 = c(1:3, 6:8) + 5)
Also, I noted two limitations of Typst that came up in my tests: lack of indentation and row-specific alignment. I'll look into those in separate issues:
https://github.com/vincentarelbundock/tinytable/issues/280 https://github.com/vincentarelbundock/tinytable/issues/279
Thanks for the quick response! I'll update appropriately :) (I double escaped because typst was complaining before)
Hi! I'm working on a document using Quarto + typst, and for some reason the tables are not rendering as they do in the console. Here's a short example (the .qmd file) that is similar to what I'm trying to do:
@tbl-tab1 is the table I want, but when rendering the document, the groups do not appear (they do appear on the console if I print the table there.)
Same thing with @tbl-tab2 and notes.