Closed aghaynes closed 4 months ago
I just fount the format_tt(escape = TRUE) argument. It doesnt help in this instance...
Thanks for the report. And good catch. Yes, this escape
is the right option to use, but you're right that square brackets should also be escaped.
I just merged a change to do this automatically.
In the case where pvalues are less than a given value, or where ranges are indicated using [, typst fails unless the < or [ are followed by a space. E.g., the following fails
[typst]: Compiling tmp.typ to tmp.pdf...error: unclosed delimiter ┌─ \?\E:\sandbox\tinytable\tmp.typ:573:1 │ 573 │ #[ │ ^
error: unclosed delimiter ┌─ \?\E:\sandbox\tinytable\tmp.typ:601:8 │ 601 │ #table( // tinytable table start │ ^
error: unclosed label ┌─ \?\E:\sandbox\tinytable\tmp.typ:624:6 │ 624 │ [3], [<0.001], │ ^^^^^^
body
body <- apply(x@table_dataframe, 2, function(k) paste0("[", k, "]"))