[英]How to stabilize my table with width and lines in LaTeX?
我在这个非常简单的表中有一些问题
\begin{table}[h!]
\centering
\caption{I trial}
\begin{tabu}{*{18}{X}[c]}
V(mL) & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18\\
pH & 1.68 & 1.74 & 1.93 & 2.04 & 2.18 & 2.36 & 2.64 & 2.95 & 3.35 & 3.80 & 3.95 & 4.16 & 4.45 & 4.96 & 5.55 & 11.32 & 11.75 & 11.95 & 12.14 & 12.28 & 12.39//
\end{tabu}
\label{tab:part1}
\end{table}
坏消息是您的列不是 18... 好的一个是修复它并使用landscape
分页您可以做到。 这里有一个建议:
\documentclass[a4paper]{article}
\usepackage[landscape,top=20mm,left=10mm,bottom=20mm,right=10mm]{geometry}
\usepackage{booktabs}
\begin{document}
\begin{table}[ht]
\centering
\caption{I trial}
\begin{tabular}{p{15mm}*{21}{@{}p{10mm}}}
\toprule
V(mL) & 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & & \\
\midrule
pH & 1.68 & 1.74 & 1.93 & 2.04 & 2.18 & 2.36 & 2.64 & 2.95 & 3.35 & 3.80 & 3.95 & 4.16 & 4.45 & 4.96 & 5.55 & 11.32 & 11.75 & 11.95 & 12.14 & 12.28 & 12.39\\
\bottomrule
\end{tabular}
\label{tab:part1}
\end{table}
\end{document}
请注意,如果您的列超过声明,则会在超出的列之前自动添加换行符(如您的图像中所示)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.