R Under development (unstable) (2026-02-18 r89435 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > ### Test of feature request #2168 implementation > ### Enables use of margintable floating environment > ### DJS, 17/08/2012 > library(xtable) > x <- matrix(rnorm(6), ncol = 2) > x.small <- xtable(x, label='tabsmall', caption = 'A margin table') > print(x.small, floating.environment = 'margintable', + table.environments = "", + table.placement = NULL) % latex table generated in R 4.6.0 by xtable 1.8-8 package % Sun Feb 22 11:26:22 2026 \begin{margintable} \centering \begin{tabular}{rrr} \hline & 1 & 2 \\ \hline 1 & -1.72 & -0.77 \\ 2 & -0.38 & 0.73 \\ 3 & -0.08 & 0.28 \\ \hline \end{tabular} \caption{A margin table} \label{tabsmall} \end{margintable} > ## % latex table generated in R 2.15.0 by xtable 1.7-1 package > ## % Fri Aug 17 01:42:42 2012 > ## \begin{margintable} > ## \centering > ## \begin{tabular}{rrr} > ## \hline > ## & 1 & 2 \\ > ## \hline > ## 1 & 1.42 & -1.11 \\ > ## 2 & -0.57 & 0.23 \\ > ## 3 & -0.67 & -0.60 \\ > ## \hline > ## \end{tabular} > ## \caption{A margin table} > ## \label{tabsmall} > ## \end{margintable} > print(x.small, floating.environment = 'margintable', + table.environments = "") % latex table generated in R 4.6.0 by xtable 1.8-8 package % Sun Feb 22 11:26:22 2026 \begin{margintable} \centering \begin{tabular}{rrr} \hline & 1 & 2 \\ \hline 1 & -1.72 & -0.77 \\ 2 & -0.38 & 0.73 \\ 3 & -0.08 & 0.28 \\ \hline \end{tabular} \caption{A margin table} \label{tabsmall} \end{margintable} Warning message: In print.xtable(x.small, floating.environment = "margintable", table.environments = "") : margintable does not allow for table placement; setting table.placement to NULL > ## % latex table generated in R 2.15.0 by xtable 1.7-1 package > ## % Fri Aug 17 01:42:46 2012 > ## \begin{margintable} > ## \centering > ## \begin{tabular}{rrr} > ## \hline > ## & 1 & 2 \\ > ## \hline > ## 1 & 1.42 & -1.11 \\ > ## 2 & -0.57 & 0.23 \\ > ## 3 & -0.67 & -0.60 \\ > ## \hline > ## \end{tabular} > ## \caption{A margin table} > ## \label{tabsmall} > ## \end{margintable} > ## Warning message: > ## In print.xtable(x.small, floating.environment = "margintable", table.environments = "") : > ## margintable does not allow for table placement; setting table.placement to NULL > > > proc.time() user system elapsed 0.14 0.10 0.23