[英]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.