2019-08-19 18:19发布
[图]这是需要生成的并排表格:这是我做出来的:代码如下:
这是需要生成的并排表格:
这是我做出来的:
代码如下:
给你个例子你照猫画虎吧~
\documentclass{article} \usepackage{subcaption} \DeclareCaptionSubType*[Alph]{table} \DeclareCaptionLabelFormat{mystyle}{Table~\bothIfFirst{#1}{ ̃}#2} \captionsetup[subtable]{labelformat=mystyle} \begin{document} \begin{table}[hbp!] \centering \label{TestTable} \begin{subtable}{\textwidth} \centering \caption{Describe contents of Table 1.A} \begin{tabular}{|c|c|c|c|c|c|} \hline Recom Strength & Highest Idos Risk & 2nd Highest & Middle & 2nd Lowest & Lowest \\ \hline 1 & -0.41 & -0.07 & 1.27 & -0.78 & 0.73 \\ \hline 2 & -0.85 & -1.88 & 0.01 & 0.75 & 2.32 \\ \hline 3 & -0.48 & -1.0 & -0.56 & 0.47 & 1.01 \\ \hline 4 & 0.04 & 0.76 & 1.34 & 1.78 & -1.27 \\ \hline 5 & -1.35 & -1.52 & 0.04 & 1.23 & 0.51 \\ \hline \end{tabular} \end{subtable} \begin{subtable}{\textwidth} \centering \caption{Describe contents of Table 1.B} \begin{tabular}{|c|c|c|c|c|c|} \hline Recom Strength & Highest Idos Risk & 2nd Highest & Middle & 2nd Lowest & Lowest \\ \hline 1 & -0.41 & -0.07 & 1.27 & -0.78 & 0.73 \\ \hline 2 & -0.85 & -1.88 & 0.01 & 0.75 & 2.32 \\ \hline 3 & -0.48 & -1.0 & -0.56 & 0.47 & 1.01 \\ \hline 4 & 0.04 & 0.76 & 1.34 & 1.78 & -1.27 \\ \hline 5 & -1.35 & -1.52 & 0.04 & 1.23 & 0.51 \\ \hline \end{tabular} \end{subtable}% \end{table} \end {document}
其实,你打开个搜索引擎,然后搜索:`how to set table title such as TABLE 1.A TABLE.B in latex`,自行忽略我的垃圾英语,然后第一个里面就有。(英语配合搜索引擎,能解决绝大多数问题)
参考网址:https://tex.stackexchange.com/questions/82222/change-caption-in-table-from-table-2-to-table-1a
最多设置5个标签!
给你个例子你照猫画虎吧~
其实,你打开个搜索引擎,然后搜索:`how to set table title such as TABLE 1.A TABLE.B in latex`,自行忽略我的垃圾英语,然后第一个里面就有。(英语配合搜索引擎,能解决绝大多数问题)
参考网址:https://tex.stackexchange.com/questions/82222/change-caption-in-table-from-table-2-to-table-1a
一周热门 更多>