使用乳胶在knitr的页面文本流血

时间:2014-08-18 06:55:24

标签: latex knitr sweave xtable rnw

我使用以下代码片段将一些文本数据框写为表格。

temp<-c("A white paper is a document that describes a given problem and proposes a specific solution to the problem.", "Originally used to describe government policy, white papers are most common today in corporate settings.", "A typical white paper might list ways to meet a client's marketing needs, suggest the use of a certain product for a technical process, or identify ways to streamline internal communication.")
myTable<-as.data.frame(temp)

myTable<-print.xtable(xtable(textData,caption="Some Text Data"),caption.placement="top",print.results="F", tabular.environment="tabularx", width="\\textwidth")

表格边框仅限于页面,但文字仍然会流出。如何让文本符合表格限制?

0 个答案:

没有答案