[R] quick xtable questions

Henrik Bengtsson hb at maths.lth.se
Fri Aug 23 11:26:59 CEST 2002


I believe this is a LaTeX related problem and not a problem with
[R]/xtable. The reason is that LaTeX tries to place the floats (tables and 
images) where they best fit and if they not fit very well they are placed
at the end of the document. This is often happens if the images/tables
are big. If there are too many of badly placed floats you will the kind
of error message you are reporting.

First, try to add the options h - here, t - top, b - bottom, i.e. 
\begin{table}[htb]. It might help. Secondly, you can specify the
page region where floats are allowed to be placed. Here is an example that
I once used:

% Define where floats (figures, tables etc) can be place.
% For more information see:
%
%   http://www.cs.ruu.nl/~piet/floats/node1.html
%
% Max fraction of page for floats at top (default 0.7)
\renewcommand{\topfraction}{0.95}
% Max fraction of page for floats at top (default 0.7)
\renewcommand{\bottomfraction}{0.95}
% Min fraction of page for text (default 0.2)
\renewcommand{\textfraction}{0.05}
% Min fraction of floatpage that should have floats (default 0.5)
\renewcommand{\floatpagefraction}{0.35}
% Max number of floats at top of page (default 2)
\setcounter{topnumber}{3}
% Max number of floats at bottom of page (default 1)
\setcounter{bottomnumber}{3}
% Max number of floats on a page (default 3)
\setcounter{totalnumber}{6}

Finally, you can alway use brute force and add \newpage between some
of the tables to help LaTeX. Not very nice, but it often works.


Henrik Bengtsson

Dept. of Mathematical Statistics @ Centre for Mathematical Sciences 
Lund Institute of Technology/Lund University, Sweden (+2h UTC)
+46 46 2229611 (off), +46 708 909208 (cell), +46 46 2224623 (fax)
h b @ m a t h s . l t h . s e, http://www.maths.lth.se/~hb/

On Fri, 23 Aug 2002, Brian Scholl wrote:

> Hi, I'm creating a lot of tables in a file for inclusion in a Latex
> document.  When I try to compile that document there is an error "too many
> unprocessed floats."  Is there a way to correct this?
> 
> Also, in a Latex table I want R to put in a $\beta$ in the caption, but it
> puts a weird system character instead of the \b
> 
> 
> Brian
> 
> -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
> r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
> Send "info", "help", or "[un]subscribe"
> (in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
> _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
> 

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list