LaTeX 中使两张表格并排
2024-08-21 10:26:25
在使用 LaTeX写论文或者画海报的时候,希望两张较小的表格可以并排,(一般情况的LaTeX插入两张图片是上下布局的)
查找了一下,相关的例子如下:
\begin{minipage}{\textwidth}
\begin{minipage}[t]{0.45\textwidth}
\centering
\makeatletter\def\@captype{table}\makeatother\caption{表格标题1}
\begin{tabular}{cccc}
表格内容
\end{tabular}
\end{minipage}
\begin{minipage}[t]{0.45\textwidth}
\centering
\makeatletter\def\@captype{table}\makeatother\caption{表格标题2}
\begin{tabular}{cccc}
表格内容
\end{tabular}
\end{minipage}
\end{minipage}
\begin{minipage}{\textwidth}
\begin{minipage}[t]{0.45\textwidth}
\centering
\makeatletter\def\@captype{table}\makeatother\caption{title1}
\begin{tabular}{ccc}
\hline
n & L & $L+n$ \\ \hline
0 & 1 & 1 \\
1 & 3 & 4 \\
2 & 5 & 7 \\
3 & 7 & 10\\
4 & 9 & 13 \\
5 & 11 & 16 \\
6 & 13 & 19\\
7 & 15 & 22 \\
8 & 17 & 25 \\
9 & 19 & 28\\
10 & 21 & 31 \\
11 & 23 & 34\\
12 & 25 & 37 \\
13 & 27 & 40 \\
14 & 29 & 43 \\
15 & 31 & 46 \\
16 & 33 & 49 \\
17 & 35 & 52\\
\hline
\end{tabular}
\end{minipage}
\begin{minipage}[t]{0.45\textwidth}
\centering
\makeatletter\def\@captype{table}\makeatother\caption{title2}
\begin{tabular}{ccc}
\hline
n & L & $L+n$ \\ \hline
0 & 1 & 1 \\
1 & 3 & 4 \\
2 & 5 & 7 \\
3 & 7 & 10\\
4 & 9 & 13 \\
5 & 11 & 16 \\
6 & 13 & 19\\
7 & 15 & 22 \\
8 & 17 & 25 \\
9 & 19 & 28\\
10 & 21 & 31 \\
11 & 23 & 34\\
12 & 25 & 37 \\
13 & 27 & 40 \\
14 & 29 & 43 \\
15 & 31 & 46 \\
16 & 33 & 49 \\
17 & 35 & 52\\
\hline
\end{tabular}
\end{minipage}
\end{minipage}
【Reference】
最新文章
- eclipse中启动调试maven构建的javaweb项目
- php工作笔记7-摇动手机,发出请求响应
- 封装WebAPI客户端,附赠Nuget打包上传VS拓展工具
- DWR的Reverse Ajax技术实现
- AngularJs-MVC之路由、模块以及依赖注入
- xampp改到phpmyadmin的root密碼無法登錄
- Windows启动系统程序命令
- 最短路 dijkstra and floyd
- Eclipse 中使用Genymotion 作为模拟器的步骤
- C++ 全排列函数 nyoj 366
- RestService中的 get post put delete
- Windows配置Python编程环境
- C#下的两种加密方式MD5和DEC
- sql语句如何查询一个表中某两个字段的相同数据?
- Marriage Match IV HDU - 3416
- ThinkPHP5从零基础搭建CMS系统(二)
- thinkphp5 model 模型
- [openjudge-搜索]城堡问题(The Castle)
- BZOJ1901 Zju2112 Dynamic Rankings 主席树
- Spqrk笔记
热门文章
- 解决在使用pip list时出现DEPRECATION
- 网络流24题 第五题 - PowerOJ1740 CodeVS1905 圆桌问题 二分图多重匹配 网络最大流
- 【noip模拟赛4】找啊找啊找BF 拓扑排序
- In Action HDU3339
- HDU-2087-剪花布条 【KMP】(求模式串的匹配个数——与已匹配的字串不交)
- Alpha冲刺随笔五:第五天
- Python3练习题系列(03)
- Need help with git commit - Error : ";error: cannot run gpg: No such file or directory error: could not run gpg. fatal: failed to write commit object";support (self.git)
- BZOJ4460 : [Jsoi2013]广告计划
- BZOJ2759一个动态树好题 LCT