Thank you for the example @Vincent. However, when I run the code (a year later after the example was posted), the table float environment ist back (see below). Has something changed, is there something I need to change?
> m1 <- lm(mpg ~ hp, data = mtcars)
> m2 <- lm(mpg ~ drat, data = mtcars)
> m3 <- lm(mpg ~ wt, data = mtcars)
> modelsummary(list(
+ "(A)"=m1,
+ "(B)"=m2,
+ "(C)"=m3)) |>
+ group_tt(j = list("Text" = 1, "More Text" = 2, "Some Other Text" = 3:4)) |>
+ theme_tt("tabular") |>
+ print("latex")
\begin{table}
\centering
\begin{tblr}[ %% tabularray outer open
] %% tabularray outer close
{ %% tabularray inner open
colspec={Q[]Q[]Q[]Q[]},
column{4}={}{halign=c,},
cell{1}{1}={}{halign=l, halign=c,},
cell{1}{2}={}{halign=c, halign=c,},
cell{1}{3}={c=2,}{halign=c, halign=c,},