Tal Galili
2012-Feb-03 19:54 UTC
[R] Using {tabularx} latex package with the {xtable} package?
I am trying to solve the problem of having a latex table (produced using the xtable <http://cran.r-project.org/web/packages/xtable/index.html>, then inserted to a latex file using Sweave), exceeding the margins of my LaTeX document. I found that one such solution can be based on the tabularx<http://ctan.org/pkg/tabularx> package, and I am wondering what would be the best way to implement it (or if there is a better solution I am overlooking). Right now the only way I am thinking of is to edit print.xtable so it would work with the tabularx LaTeX package. Any other suggestions would be most welcomed. Thanks. ----------------Contact Details:------------------------------------------------------- Contact me: Tal.Galili@gmail.com | 972-52-7275845 Read me: www.talgalili.com (Hebrew) | www.biostatistics.co.il (Hebrew) | www.r-statistics.com (English) ---------------------------------------------------------------------------------------------- [[alternative HTML version deleted]]
David Winsemius
2012-Feb-03 20:36 UTC
[R] Using {tabularx} latex package with the {xtable} package?
On Feb 3, 2012, at 2:54 PM, Tal Galili wrote:> I am trying to solve the problem of having a latex table (produced > using > the xtable <http://cran.r-project.org/web/packages/xtable/ > index.html>, then > inserted to a latex file using Sweave), exceeding the margins of my > LaTeX > document. > > I found that one such solution can be based on the > tabularx<http://ctan.org/pkg/tabularx> package, > and I am wondering what would be the best way to implement it (or if > there > is a better solution I am overlooking). > > Right now the only way I am thinking of is to edit print.xtable so > it would > work with the tabularx LaTeX package. Any other suggestions would be > most > welcomed.It would be more courteous to the rhelp readers if you let them know you cross-posted this question on SO: http://tex.stackexchange.com/questions/43328/using-tabularx-latex-package-with-the-xtable-package-in-r> [[alternative HTML version deleted]]-- David Winsemius, MD West Hartford, CT
Apparently Analagous Threads
- LaTeX output for summary.lm object - while displaying the information outside the table
- latex() etc.: How to nicely format a matrix for a LaTeX document?
- Sweave, xtable plus/minus sign
- alternatives to latex() or xtable() ?
- getting names of dimnames of xtabs into xtable latex output