Column names on each page with xtable in Sweave

前端 未结 1 1558
灰色年华
灰色年华 2021-02-06 06:32

I want to have column names on each page of the xtable.

\\documentclass{article}
\\usepackage{graphicx}   
\\usepackage{longtable}

\\begin{document}

<<&         


        
相关标签:
1条回答
  • 2021-02-06 07:09

    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):

    print(x.big,tabular.environment='longtable',
            floating=FALSE,
            hline.after = c(-1,nrow(x.big)),
            add.to.row = list(pos = list(0),command = "\\hline \\endhead "))
    
    0 讨论(0)
提交回复
热议问题