You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add options for specialized environments before and after LaTeX table code #157
This new issue is based on a comment from @kuriwaki from the closed issue #114.
xtable::print.xtable has an argument floating that either generates .tex with a float environment with captions \begin{table}... (the default), or without the floating environment and starts directly with \begin{tabular} (if set to FALSE). Both options would be great to have with the file export argument.
It would be great to control the floating of a table (as in LaTeX like \begin{table}[htbp]) and not just automatically break it. Or at least control the floating environment (table instead of lontable).
Reacted by Jan Romann, Robert Nuske and Pablo Garriga
I want to second this suggestion. I am in the process of switching over to gt from kableExtra and this is the one thing making that transition difficult. IMO, a floating environment should be the default for any latex output.
With {gt} tables, though, it isn't possible yet, leading to tables that span multiple pages and the general inability to position tables as floats, like this issue/discussion here: quarto-dev/quarto-cli#7171
Activity
benediktschfr commentedon Jun 17, 2020
It would be great to control the floating of a table (as in LaTeX like
\begin{table}[htbp]) and not just automatically break it. Or at least control the floating environment (tableinstead oflontable).AaronGullickson commentedon Mar 11, 2023
I want to second this suggestion. I am in the process of switching over to
gtfromkableExtraand this is the one thing making that transition difficult. IMO, a floating environment should be the default for any latex output.andrewheiss commentedon Nov 1, 2023
Hi! Just checking in on this, given advancements in Quarto. With Quarto it's possible to control figure position in PDF/LaTeX documents (see https://quarto.org/docs/authoring/figures.html#figure-position), with options like
b,h,t, etc.With {gt} tables, though, it isn't possible yet, leading to tables that span multiple pages and the general inability to position tables as floats, like this issue/discussion here: quarto-dev/quarto-cli#7171