Latex基于longtable环境设置跨页表格,且固定表格宽度、支持跨页标题显示
生活随笔
收集整理的這篇文章主要介紹了
Latex基于longtable环境设置跨页表格,且固定表格宽度、支持跨页标题显示
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
文章目錄
- 引入
- 1 完整latex代碼
- 2 效果展示
- 3 參考文獻(xiàn)
引入
??最近寫畢業(yè)大論文,需要用到跨頁表格,以下展示成功測試后的結(jié)果。
1 完整latex代碼
??說明:
??1)設(shè)置表格寬度:
??2)設(shè)置首頁表頭樣式 (先樣式后命令):
\endfirsthead??3)設(shè)置余下頁表頭樣式:
\endhead??4)設(shè)置首頁表尾樣式:
\endfoot??5)設(shè)置余下頁表尾樣式:
\endlastfoot??6)完成代碼:
\documentclass{article}\usepackage{booktabs} \usepackage{longtable} \usepackage{tabularx} \usepackage{hyperref}\begin{document}Table \ref{table: test} show the test.\setlength\LTleft{0pt} \setlength\LTright{0pt} \begin{longtable}{@{\extracolsep{\fill}}ccc@{}} \caption {Test} \label{table: test}\\\toprule \endfirsthead Table \ref{table: test} continued\\\toprule \endhead \bottomrule \endfoot \bottomrule \endlastfoot a & b & c\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b & d\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b & $1$\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b & f\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ a & b\\ \end{longtable}\end{document}2 效果展示
3 參考文獻(xiàn)
【1】跨頁表格
【2】設(shè)置longtable寬度
總結(jié)
以上是生活随笔為你收集整理的Latex基于longtable环境设置跨页表格,且固定表格宽度、支持跨页标题显示的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Grizzly快速入门
- 下一篇: NRF51822---驱动0.96寸OL