大家好,我非常需要有人帮我处理这张表格。这是我在 LaTeX 中的第一张表格,我花了一天时间处理它,但现在我无法在短时间内处理它。以下是我尝试做的
\begin{table}
\centering\tlstyle
\begin{threeparttable}
\begin{tabular}{ |l|cc|cc|cc|cc|r| }
\hline
Metal&\multicolumn{4}{|c|}{Voltage, experiment (V)} & Voltage, calculated (V)\\ \hline
Cu & 0.64-0.68 & (1,5,f) & 0.44 & (1,6,f) & 0.8 & (2,4,b) & 0.8 & (1,4,7,d) & 0.81\\ \hline
\end{tabular}
\begin{tablenotes}
\item\label{tnote:bridge-1}That is, $360^\circ$ vision, as proposed by Noddy Norris.
\item\label{tnote:bridge-2}As recommended by \emph{Robot Review}.
\item\label{tnote:bridge-3}That is, X-Ray vision, as proposed by \emph{Mechanical Maniacs}.
\end{tablenotes}
\end{threeparttable}
\caption{\label{tab:bridge}Total values of Jim's technological options for robot projects he thinks possible.}
\end{table}
\begin{tabular}{ |l|l|l| }
答案1
虽然不是最好看的表格,但改变\multicolumn{4}{|c|}{Voltage, experiment (V)}
后可以\multicolumn{8}{|c|}{Voltage, experiment (V)}
解决代码中的大多数问题。
此外,为了获得换行符Voltage, calculated (V)
,您可以使用固定的列。
如果你有时间,请看一下https://www.inf.ethz.ch/personal/markusp/teaching/guides/guide-tables.pdf
\documentclass{article}
\usepackage{threeparttable}
\begin{document}
\begin{table}
\caption{\label{tab:bridge}Total values of Jim's technological options for robot projects he thinks possible.}
\centering
\begin{threeparttable}
\begin{tabular}{ |l|cc|cc|cc|cc|p{1.6cm}| }
\hline
Metal&\multicolumn{8}{|c|}{Voltage, experiment (V)} & Voltage, calculated (V)\\ \hline
Cu & 0.64-0.68 & (1,5,f) & 0.44 & (1,6,f) & 0.8 & (2,4,b) & 0.8 & (1,4,7,d) & 0.81\\
& 1.0-1.5 & (1,4,8,d) & 1.0-1.5 & (1,4,f) &&&&&\\
\hline
Cu & 0.64-0.68 & (1,5,f) & 0.44 & (1,6,f) & 0.8 & (2,4,b) & 0.8 & (1,4,7,d) & 0.81\\
& 1.0-1.5 & (1,4,8,d) & 1.0-1.5 & (1,4,f) &&&&&\\
\hline
\end{tabular}
\begin{tablenotes}
\item[1] That is, $360^\circ$ vision, as proposed by Noddy Norris.
\item[2] As recommended by \emph{Robot Review}.
\item[3] That is, X-Ray vision, as proposed by \emph{Mechanical Maniacs}.
\end{tablenotes}
\end{threeparttable}
\end{table}
\end{document}