1. 经常会看到Table或者Figure后面加上[htb],其中h表示here, t –top, b-bottom,即表格在文中的位置。那么[htb]是按照其顺序排列进行选择,即h, t ,b顺序。
/begin{figure}[htb!]2.调整表格列高、行高及大小。可以使用:
/begin{table} /renewcommand{/arraystretch}{1.5} //调整行高到原来1.5倍/begin{table} /addtolength{/tabcolsep}{-2pt} //减少列宽-2pt/begin{table} /small //缩小表格尺寸到最小3. 表格的对齐及边框
/begin{tabular}{|l||r|r|r|c|} 此处,l表示left, r表示right, c表示center。上面表示表共有5列,列中文字分别是左、右、右、右、中对齐。
Tex 表格注释实例
/documentclass[10pt]{article}
/usepackage{threeparttable}
/usepackage{amsmath}
/usepackage{dcolumn}
/usepackage{multirow}
/usepackage{booktabs}
/newcolumntype{d}[1]{D{.}{.}{#1}}% or D{.}{,}{#1} or D{.}{/cdot}{#1}
/begin{document}
/begin{table}[htpb]
/centering
/begin{threeparttable}[b]
/caption{A case of table}
/begin{tabular}{ccd{4}cccc}
/toprule
/multirow{2}{6mm}{total}&/multicolumn{2}{c}{20/tnote{1}} & /multicolumn{2}{c}{40} & /multicolumn{2}{c}{60}//
/cmidrule(lr){2-3}/cmidrule(lr){4-5}/cmidrule(lr){6-7}
&www & k & www & k & www & k //
/midrule
&$/underset{(2.12)}{4.22}$ & 120.0140/tnote{2} & 333.15 & 0.0411 & 444.99 & 0.1387 //
&168.6123 & 10.86 & 255.37 & 0.0353 & 376.14 & 0.1058 //
&6.761 & 0.007 & 235.37 & 0.0267 & 348.66 & 0.1010 //
/bottomrule
/end{tabular}
/begin{tablenotes}
/item [1] the first note.% or /item [a]
/item [2] the second note.% or /item [b]
/end{tablenotes}
/end{threeparttable}
/end{table}
/end{document}
%/begin{document}
%/begin{table}[htbp] /centering/small
%/begin{threeparttable}
%/begin{tablenotes}
%/item[*] significant at 5/% level
%/item[**] significant at 10/% level
%/end{tablenotes}
%/end{threeparttable}
%/end{table}
%/end{document}