xtable大表的每一页上的页眉? [英] header on each page of big table of xtable?

查看:106
本文介绍了xtable大表的每一页上的页眉?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您如何在每页的表头上放置一个xtable大表?,这样更易​​于读取表之间的表.

How do you put on a big table of xtable the table header on each page?, So that is easier to read the table the table between pages.

我在Sweave中使用以下内容:

I use the following in Sweave:

test.big<- xtable(test,label="table",caption='test')
align(test.big) <- "|c|c|c|c|l|c|c|c|"
print(test.big,tabular.environment='longtable',include.colnames = TRUE,floating=FALSE)

感谢您的回答

推荐答案

longtable(LaTeX)软件包规范.示例的代码部分的输出显示在第2页和第3页上的代码部分在第8部分中,我在下面复制了其中的一部分:

The longtable (LaTeX) package specification can be found at that URL. The section of code in the examples whose output appears on pages 2 and 3 is in section 8 and I have reproduced bit of it below:

\caption[]{(continued)}\\ 
\hline\hline 
\multicolumn{2}{@{*}c@{*}}% 
{This part appears at the top of every other page}\\ 
\textbf{First}&\textbf{Second}\\ 
\hline\hline 
\endhead 

当他们在其他页面"上说时,是指除首页之外的其他所有页面,页面的标题不同.如果xtable调用在没有任何编辑的情况下无法立即使用,则应首先检查是否已在LaTeX序言中指定了longtable软件包:

When they say on "every other page", they mean every page other than the first, which had a different header. If the xtable call is not working out of the box without any editing, then you should first check that you have the longtable package specified in your LaTeX preamble:

\usepackage{longtable}

这篇关于xtable大表的每一页上的页眉?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆