Latex中表格过长如何实现跨页表格——跨页表格宏包longtable的使用?
先看效果图如下所示:
latex中表格跨页,需要用到超级表格,常用的超级表格有 supertabular 和 longtable 宏包。下面介绍longtable 的使用。
直接附上可在texlive使用的代码:
\documentclass{article}\usepackage{longtable}
\usepackage{geometry}
\geometry{a4paper,left=2cm,right=2cm,top=2.5cm,bottom=2.5cm}\title{A longtable example}\begin{document}\begin{center}\begin{longtable}{lll}\caption{A sample long table.} \label{tab:long} \\\hline \multicolumn{1}{c}{\textbf{First column}} & \multicolumn{1}{c}{\textbf{Second column}} & \multicolumn{1}{c}{\textbf{Third column}} \\ \hline \endfirsthead\multicolumn{3}{c}%{{\bfseries \tablename\ \thetable{} -- continued from previous page}} \\\hline \multicolumn{1}{c}{\textbf{First column}} & \multicolumn{1}{c}{\textbf{Second column}} & \multicolumn{1}{c}{\textbf{Third column}} \\ \hline \endhead\hline \multicolumn{3}{l}{{Continued on next page}} \\ \endfoot\hline\endlastfoot\multicolumn{2}{l}{Motor and premotor cortex} & 123.456778 \\A6M & Area 6, medial (supplementary motor) part & 123.456778 \\A6Va & Area 6, ventral, part a & 123.456778 \\A6DC & Area 6, dorsocaudal part & 123.456778 \\A4ab & Area 4, parts a and b (primary motor) & 123.456778 \\A4c & Area 4, part c (primary motor, representation of head musculature) & 123.456778\\\multicolumn{2}{l}{Motor and premotor cortex} & 123.456778 \\A6M & Area 6, medial (supplementary motor) part & 123.456778 \\A6Va & Area 6, ventral, part a & 123.456778 \\A6DC & Area 6, dorsocaudal part & 123.456778 \\A4ab & Area 4, parts a and b (primary motor) & 123.456778 \\A4c & Area 4, part c (primary motor, representation of head musculature) & 123.456778\\\multicolumn{2}{l}{Motor and premotor cortex} & 123.456778 \\A6M & Area 6, medial (supplementary motor) part & 123.456778 \\A6Va & Area 6, ventral, part a & 123.456778 \\A6DC & Area 6, dorsocaudal part & 123.456778 \\A4ab & Area 4, parts a and b (primary motor) & 123.456778 \\A4c & Area 4, part c (primary motor, representation of head musculature) & 123.456778\\\multicolumn{2}{l}{Motor and premotor cortex} & 123.456778 \\A6M & Area 6, medial (supplementary motor) part & 123.456778 \\A6Va & Area 6, ventral, part a & 123.456778 \\A6DC & Area 6, dorsocaudal part & 123.456778 \\A4ab & Area 4, parts a and b (primary motor) & 123.456778 \\A4c & Area 4, part c (primary motor, representation of head musculature) & 123.456778\\\multicolumn{2}{l}{Motor and premotor cortex} & 123.456778 \\A6M & Area 6, medial (supplementary motor) part & 123.456778 \\A6Va & Area 6, ventral, part a & 123.456778 \\A6DC & Area 6, dorsocaudal part & 123.456778 \\A4ab & Area 4, parts a and b (primary motor) & 123.456778 \\A4c & Area 4, part c (primary motor, representation of head musculature) & 123.456778\\\multicolumn{2}{l}{Motor and premotor cortex} & 123.456778 \\A6M & Area 6, medial (supplementary motor) part & 123.456778 \\A6Va & Area 6, ventral, part a & 123.456778 \\A6DC & Area 6, dorsocaudal part & 123.456778 \\A4ab & Area 4, parts a and b (primary motor) & 123.456778 \\A4c & Area 4, part c (primary motor, representation of head musculature) & 123.456778\\\multicolumn{2}{l}{Motor and premotor cortex} & 123.456778 \\A6M & Area 6, medial (supplementary motor) part & 123.456778 \\A6Va & Area 6, ventral, part a & 123.456778 \\A6DC & Area 6, dorsocaudal part & 123.456778 \\A4ab & Area 4, parts a and b (primary motor) & 123.456778 \\A4c & Area 4, part c (primary motor, representation of head musculature) & 123.456778\\\multicolumn{2}{l}{Motor and premotor cortex} & 123.456778 \\A6M & Area 6, medial (supplementary motor) part & 123.456778 \\A6Va & Area 6, ventral, part a & 123.456778 \\A6DC & Area 6, dorsocaudal part & 123.456778 \\A4ab & Area 4, parts a and b (primary motor) & 123.456778 \\A4c & Area 4, part c (primary motor, representation of head musculature) & 123.456778\\\multicolumn{2}{l}{Motor and premotor cortex} & 123.456778 \\A6M & Area 6, medial (supplementary motor) part & 123.456778 \\A6Va & Area 6, ventral, part a & 123.456778 \\A6DC & Area 6, dorsocaudal part & 123.456778 \\A4ab & Area 4, parts a and b (primary motor) & 123.456778 \\A4c & Area 4, part c (primary motor, representation of head musculature) & 123.456778\\\multicolumn{2}{l}{Motor and premotor cortex} & 123.456778 \\A6M & Area 6, medial (supplementary motor) part & 123.456778 \\A6Va & Area 6, ventral, part a & 123.456778 \\A6DC & Area 6, dorsocaudal part & 123.456778 \\A4ab & Area 4, parts a and b (primary motor) & 123.456778 \\A4c & Area 4, part c (primary motor, representation of head musculature) & 123.456778\\ \end{longtable}\end{center}\end{document}
效果图如下:
Latex中表格过长如何实现跨页表格——跨页表格宏包longtable的使用?相关推荐
- latex设置页面边距,页面大小,页边距,geometry宏包
很多latex模板都将页面边距设置好了,自己不用怎么修改.但有时候也需要自己来设置页边距,查阅了相关资料,发现使用 geometry 宏包可以方便地调整页边距. \usepackage{geometr ...
- Latex中宏包总结
文章目录 基本: 字体包 样式定制 特定领域 特定需求 浮动体专题 表格专题 PDF 专题 辅助工具专题 命令定义.宏包编写专题 个人推荐 兴趣类 主要参考: https://zhuanlan.zhi ...
- LATEX教程第三讲——那些不得不说的宏包(中)
LATEX教程第三讲-- 那些不得不说的宏包(中) 3.1 表格与列表 array longtable supertabular tabularx multirow hhline slashbox b ...
- TeX/LaTeX 常用宏包简介
geometry 利用 geometry 可以很方便的设置页面的大小.由于可以自动居中排放页面,自动计算并平衡页面各部分如页眉.页脚.左右边空等的大小,因此只需给出很少的信息就能得到满意的页面. ...
- LaTeX 常用宏包(转载)
latex常用宏包 (2014-08-01 19:45:30) 转载▼ 转载于http://blog.sina.com.cn/s/blog_628dd2bc0102uyih.html 页面与标 ...
- TeX/LaTeX 常用宏包
页面与标题式样 geometry 利用 geometry 可以很方便的设置页面的大小.由于可以自动居中排放页面,自动计算并平衡页面各部分如页眉.页脚.左右边空等的大小,因此只需给出很少的信息就能得到满 ...
- Latex中多行公式换行及设置编号位置
1. 公式换行 公式换行的方式有很多种,介绍三种 (1)用equation结合aligned: \begin{equation}\label{eqn:1} \begin{aligned} & ...
- Latex中Beamer幻灯片技巧(一)——幻灯片theme设置
相信大部分人做PPT应该都是用Office或者WPS等软件制作,这些工具制作PPT非常方便,功能非常多,但是我在用office PPT做的时候出现了些bug,于是我尝试了用Latex来做幻灯片. La ...
- 转:Latex数学宏包集锦
<div style="width: 656px; margin: 0; padding: 0; height: 0;"></div><center& ...
最新文章
- Milvus Windows
- 视图的概念以及使用视图的好处
- 关于range方法,如果你觉得python很简单就错了
- P4323-[JSOI2016]独特的树叶【换根dp,树哈希】
- 字符缓冲输入流,高效读取整行数据
- docker重启后容器消失_docker设置固定ip地址
- java 页面级缓存_用CashFilter实现页面级缓存实践
- 机器学习模型实战!如何从 900 万张图片中对 600 类照片进行分类? | 技术头条...
- delphi接口带上请求头是什么意思_Gin框架中使用JWT进行接口验证
- SVN统计一段时间的日志
- matlab中arma,ARMA模型构建及MATLAB实现.pdf
- 可以下载solidworks2007 完整版的连接
- 地图下面的标尺是什么意思_【一点资讯】地图的主要类型有哪些? 何谓地图比例尺? 什么是地图注记? www.yidianzixun.com...
- 2020 03 15 蚂蚁金服实习电话一面
- 彻底删除的视频怎么恢复?找回丢失的视频有3种方式
- python英语词汇量测试_非常适合新手的一个Python爬虫项目: 打造一个英文词汇量测试脚本!...
- 单核CPU与多核CPU的区别
- 中国电信向小米释放善意,高度认可它的5G性能领先而不是华为
- 从事计算机科学的要求,申请康奈尔大学计算机科学专业有什么要求?
- 安装VC,NTVDM CPU 遇到无效指令 --绝对能用的解决方法
热门文章
- Intel oneAPI Base Toolkit 安装教程(Linux)
- 计算机考试完后去哪领证,税务师考试全科通过后去哪领证?
- 办公室小姐姐的福利!用Python批量提取word文档中的表格和图片内容
- uniapp--动态背景特效1
- 【愚公系列】2023年06月 网络安全(交通银行杯)-木册木兰
- 三星2022款 The Frame 画壁电视 评测
- 在线英文打字测试(php)
- Google确认Chrome存在严重漏洞,向20亿用户发出警告:你们需立即更新浏览器
- 华硕电脑键盘背光灯一直闪的很快,怎么解决?
- 大班线描机器人_大班美术lbrack;漂亮的机器人rsqb;活动设计