LaTeX 分页表格示例
2012-08-23 13:46
363 查看
在标准 LaTeX 中的tabular是当做一个“盒子”来处理的,不能分割,表格只能在一页,如果表格太大,超过了bottom margin,就会报Overfull vbox错误.
所以无法跨页显示。
宏包supertabular是一个tabular environment的扩展,supertabular接到\\后,会重新计算可以使用的空间,如果到了页面高度,就会自动插入tabeltail,开始新的一页,新的一页以tablehead连接.
主要用到的命令有以下几个(需要注意的是,一定要加\\)
\tablefirsthead 用来显示第一行.
\tablelasttail 用来显示最后第一行.
\tablehead 当分页时,会显示在下页的第一行.
\tabletail 当分页时,会显示在该页最后一行,但是最后一页不会显示.
具体的使用参考:
所以无法跨页显示。
宏包supertabular是一个tabular environment的扩展,supertabular接到\\后,会重新计算可以使用的空间,如果到了页面高度,就会自动插入tabeltail,开始新的一页,新的一页以tablehead连接.
主要用到的命令有以下几个(需要注意的是,一定要加\\)
\tablefirsthead 用来显示第一行.
\tablelasttail 用来显示最后第一行.
\tablehead 当分页时,会显示在下页的第一行.
\tabletail 当分页时,会显示在该页最后一行,但是最后一页不会显示.
具体的使用参考:
\usepackage{supertabular}
\begin{center} \bottomcaption{最流行的通用Linux发行版本\label{最流行的通用Linux发行版本}} % \tablefirsthead{\hline\multicolumn{1}{|c|}{发行版本}&\multicolumn{1}{|c|}{说 明}\\\hline} \tablelasttail{\hline} % \tablehead{\hline\multicolumn{2}{|c|} {\small\sl continued from previous page}\\\hline \multicolumn{1}{|c|}{发行版本}&\multicolumn{1}{|c|}{说 明}\\\hline} \tabletail{\hline\multicolumn{2}{|c|}{\small\sl continued on next page}\\\hline} \begin{supertabular}{|p{0.3\textwidth}|p{0.6\textwidth}|} \href{www.centos.org}{CentOS}& 模仿Red Hat Enterprise Linux的免费发行版本\\ \href{www.debian.org}{Debian}&一种流行的非商业性质的发行版本\\ \href{fedora.redhat.com}{Fedora}&从Red Hat Linux分出的非商业动作的发行版本\\ \href{www.gentoo.org}{Gentoo}&基于源代码的发行版本\\ \href{www.mandriva.com}{Mandrivaa}&对用户最友好的发行版本之一\\ \href{www.opensuse.org}{openSUSE}&模仿SUSE Linux Enterprise的免费发行版本\\ \href{www.redhat.com}{Red Hat Enterprise}&Red Hat Linux的公司商业化动作的发行版本\\ \href{www.slackware.com}{Slackware}&稳定、基础而原始的发行版本\\ \href{www.novell.com/linux}{SUSE Linux Enterprise}&在欧亚洲流行的多语言发行版本\\ \href{www.turbolinux.com}{TurboLinux}&在亚洲流行的多语言发行版本\\ \href{www.ubuntu.com}{Ubuntu}& Cleaned-up version of Debian\\\hline \end{supertabular} \end{center}
相关文章推荐
- Latex 嵌套 表格 示例
- Vue+element-ui 实现表格的分页功能示例
- JS基于封装函数实现的表格分页完整示例
- Latex的分页表格与longtable宏包
- php实现的后台表格分页功能示例
- Latex表格重新编号
- ASPNET与存储过程进行分页示例
- ADF实现表格分页效果
- MSSQL分页存储过程完整示例(支持多表分页存储)
- angularjs实现的前端分页控件示例
- AngularJS与BootStrap模仿百度分页的示例代码
- DOM(二)-08-(示例-创建表格-使用表格对象)
- css ul dl dt 表格分页 文本框样式
- php分页函数示例代码(转)
- Latex表格
- jquery之表格分页
- DHTML技术综合演示---示例:表格创建2
- javascript操作表格 示例源码
- 完全讲解PHP+MySQL的分页显示示例分析
- LaTeX表格tabular背景色添加技巧