在使用 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】

1、关于Latex并排两张表格的解决方案

最新文章

  1. eclipse中启动调试maven构建的javaweb项目
  2. php工作笔记7-摇动手机,发出请求响应
  3. 封装WebAPI客户端,附赠Nuget打包上传VS拓展工具
  4. DWR的Reverse Ajax技术实现
  5. AngularJs-MVC之路由、模块以及依赖注入
  6. xampp改到phpmyadmin的root密碼無法登錄
  7. Windows启动系统程序命令
  8. 最短路 dijkstra and floyd
  9. Eclipse 中使用Genymotion 作为模拟器的步骤
  10. C++ 全排列函数 nyoj 366
  11. RestService中的 get post put delete
  12. Windows配置Python编程环境
  13. C#下的两种加密方式MD5和DEC
  14. sql语句如何查询一个表中某两个字段的相同数据?
  15. Marriage Match IV HDU - 3416
  16. ThinkPHP5从零基础搭建CMS系统(二)
  17. thinkphp5 model 模型
  18. [openjudge-搜索]城堡问题(The Castle)
  19. BZOJ1901 Zju2112 Dynamic Rankings 主席树
  20. Spqrk笔记

热门文章

  1. 解决在使用pip list时出现DEPRECATION
  2. 网络流24题 第五题 - PowerOJ1740 CodeVS1905 圆桌问题 二分图多重匹配 网络最大流
  3. 【noip模拟赛4】找啊找啊找BF 拓扑排序
  4. In Action HDU3339
  5. HDU-2087-剪花布条 【KMP】(求模式串的匹配个数——与已匹配的字串不交)
  6. Alpha冲刺随笔五:第五天
  7. Python3练习题系列(03)
  8. 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)
  9. BZOJ4460 : [Jsoi2013]广告计划
  10. BZOJ2759一个动态树好题 LCT