Sweave 中带有 xtable 的每个页面上的列名称
我想在 xtable 的每一页上都有列名称。
\documentclass{article}
\usepackage{graphicx}
\usepackage{longtable}
\begin{document}
<<>>=
x <- matrix(rnorm(1000), ncol = 10)
x.big <- xtable(x,label='tabbig',caption='Example of longtable spanning several pages')
@
<<label = tabSEM.S, echo = FALSE, results = tex >>=
print(x.big,tabular.environment='longtable',floating=FALSE)
@
\end{document}
任何帮助将不胜感激。谢谢
I want to have column names on each page of the xtable.
\documentclass{article}
\usepackage{graphicx}
\usepackage{longtable}
\begin{document}
<<>>=
x <- matrix(rnorm(1000), ncol = 10)
x.big <- xtable(x,label='tabbig',caption='Example of longtable spanning several pages')
@
<<label = tabSEM.S, echo = FALSE, results = tex >>=
print(x.big,tabular.environment='longtable',floating=FALSE)
@
\end{document}
Any help will be highly appreciated. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为这确实是一个 LaTeX 问题,我只是在 Google 上搜索了一下,最终得到了来自 tex.stackexchange.com 的简单答案 此处。
试试这个(未在 LaTeX 中测试;如果它按照您想要的方式编译,我们会很好奇):
I think this is really a LaTeX question, which I simply Googled and ended up with a simple answer from tex.stackexchange.com here.
Try this (untested in LaTeX; will be curious if this compiles the way you want):