Closed etiennebacher closed 5 months ago
Thanks for the report.
The root of the issue is that we use the standalone
LaTeX package to save a cropped table to file, but that package does not easily seem to accommodate floats with captions.
I need to do an overhaul of captions for all formats (see https://github.com/vincentarelbundock/tinytable/issues/208), but it might take me a little while.
Thanks again for the report. Should be fixed on Github. This code:
library(tinytable)
x <- mtcars[1:5, 1:5]
tt(x, caption = "A simple table with caption.", width = .6) |>
save_tt("example.pdf", overwrite = TRUE)
Generates this file: