Latex三个表格并列排版
2017-12-03 21:30
459 查看
LaTex实现三个表格并列排版
刚接触LaTeX排版不久,表格排版一直在摸索中前进,代码中可能还存在冗余或者其他问题,欢迎大家指正我的错误.代码:
\begin{table*}[!htp] \floatsetup{floatrowsep=qquad,captionskip=10pt} \tabcolsep=8pt \begin{floatrow} \begin{minipage}{0.3\linewidth} \centering \renewcommand\arraystretch{1.112} \ttabbox{\caption{Basic feature}}{% \begin{tabular}[t]{|c|c|c|c|} \hline % \begin{minipage}{1cm}\vspace{1mm} \centering Type\vspace{1mm} \end{minipage} Type & Kenel & stride & Output \\ \hline * & * & * & * \\ * & * & * & * \\ \hline * & * & * & * \\ * & * & * & * \\ \hline * & * & * & * \\ * & * & * & * \\ * & * & * & * \\ \hline * & * & * & * \\ * & * & * & * \\ * & * & * & * \\ \hline \end{tabular}} \end{minipage} \begin{minipage}{0.33\linewidth} \centering \renewcommand\arraystretch{1.53} \floatsetup{floatrowsep=qquad,captionskip=8pt} \begin{floatrow} \ttabbox{\caption{Rough Classifier}}{% \begin{tabular}[t]{|c|c|c|c|} \hline Type & Kenel & stride & Output \\ \hline * & * & * & * \\ * & * & * & * \\ * & * & * & * \\ \hline * & * & * & * \\ * & * & * & * \\ \hline * & * & * & * \\ * & * & * & * \\ \hline \end{tabular}} \end{floatrow} \end{minipage} \begin{minipage}{0.33\linewidth} \centering \renewcommand\arraystretch{2.03} \ttabbox{\caption{Decolorization Network}}{% \begin{tabular}[t]{|c|c|c|c|} \hline Type & Kenel & stride & Output \\ \hline * & * & * & * \\ \hline * & * & * & * \\ \hline * & * & * & * \\ \hline * & * & * & * \\ \hline * & * & * & * \\ \hline \end{tabular}} \end{minipage} \end{floatrow} \end{table*}
效果如下:
说明:
\begin{table*}[!htp]*代表表格要占整个版面
\floatsetup{floatrowsep=qquad,captionskip=10pt} \tabcolsep=8pt
\begin{floatrow}
设置浮动格式,captionskip:表头与表格间距 tabcolsep:整体表格列的宽度
\begin{minipage}{0.3\linewidth}
设置第一个表格,使用minipage格式,{ }内为表格宽度设置
\centering
居中
\renewcommand\arraystretch{1.112}
第一个表格中每个单元格的高度设置(需要根据三个表格的整体高度和每个表格的行数计算每行的高度)
\ttabbox{\caption{Basic feature}}{%
第一个表格的表头
\begin{tabular}[t]{|c|c|c|c|}
第一个表格表格体
\hline
显示横线
此条注释掉了,这条语句的作用是单独设置每行的高度
Type & Kenel & stride & Output \\
第一行的内容,后面的语句作用都同此条
\hline
* & * & * & * \\
* & * & * & * \\
\hline
* & * & * & * \\
* & * & * & * \\
\hline
* & * & * & * \\
* & * & * & * \\
* & * & * & * \\
\hline
* & * & * & * \\
* & * & * & * \\
* & * & * & * \\
\hline
\end{tabular}}
\end{minipage}
第一个表格的设置完成
第二三个表格的设置同上
\end{floatrow}
\end{table*}
scalebox{0.9}{} 设置表格的大小,但是不能实现很好的对齐
相关文章推荐
- LaTeX表格和图片排版(设置宽度和高度)
- 【转】latex两栏排版时如何插入跨栏的表格或图形{汇总}
- Latex生成并列表格
- 用shell为有点混乱的表格排序并更加符合latex排版要求
- Latex表格与排版
- bootstrap排版、代码、表格
- Latex 排版技巧 1——数学公式对齐
- LaTeX技巧心得255:用laTeX排版大括号的三种方法
- latex 处理表格/复杂表格
- 分录表格三个按钮的事件
- Windows下LATEX排版论文攻略—CTeX、JabRef使用心得
- Excel 转Latex 及tex表格的处理 总结
- 难忘的latex表格
- 关于Latex并排两张表格的解决方案
- 一次用latex排版的经历
- Latex中修改表格的整体大小
- LaTeX 分页表格示例
- Windows下LATEX排版论文攻略—CTeX、JabRef使用介绍
- latex 让表格中的单元格换
- 双栏下表格和图片在LaTeX下的使用