Skip to content
Prev 156574 / 398506 Next

getting line breaks with xtable

Try placing your text in a parbox:

x<-as.table(cbind(1:3,rep("\\parbox{5cm}{this is an example for a long
character string that I want break into several lines}")))
print(xtable(x), sanitize.text = force)

You may need to fix up the vertical spacing as well.

On Fri, Sep 19, 2008 at 10:11 AM, Erich Studerus
<erich.studerus at bli.uzh.ch> wrote: