Latex表格设计(未完待续)

% 	\begin{table}
%    \centering
%    \caption{Composition of Training Dataset and Independent Validation Dataset for the Three Databases}\label{datainfo}
%    \begin{tabular}{|c|c|c|c|c|c|c|}
%    	\hline
%      	\multirow{2}{*}{Dataset Index} &\multicolumn{3}{|c|}{Training Dataset} &\multicolumn{3}{|c|}{Independent Validation Dataset}\\ 
%      	\cline{2-7}
%	      			& Name  	& Nseq   		& (Nposi, Nnega)\footnote{A footnote}		& Name	& Nseq			&(Nposi, Nnega)  \\ 
%      	\hline 
%      	1    		& & 168   		& (3104, 59226)  		& - 	& -				& - \\ 
%      	\hline 
%      	2	  		& ATP227    & 227   		& (3393, 80409)  		& ATP17	& 17     		& (248, 6974)  \\ 
%	  	\hline 
%	  	3 			& ATP221    & 221   		& (3021, 72334)  		& ATP59	& 50     		& (647, 16639) \\
%      	\hline
%	\end{tabular}
%    \end{table}
	
%\usepackage{threeparttable}</span> % 注意引入这个包
	\begin{table}
	\centering
	\begin{threeparttable}
		\centering
	    \caption{Composition of Training Dataset and Independent Validation Dataset for the Three Databases}\label{datainfo}
	    \begin{tabular}{|c|c|c|c|c|c|c|}
	    	\hline
	      	\multirow{2}{*}{Dataset Index} &\multicolumn{3}{|c|}{Training Dataset} &\multicolumn{3}{|c|}{Independent Validation Dataset}\\ 
	      	\cline{2-7}
		      			& Name  	& \textit{Nseq}\tnote{a}	& \textit{(Nposi, Nnega)}\tnote{b}	& Name	& \textit{Nseq}\tnote{a}	& \textit{(Nposi, Nnega)}\tnote{b}  \\ 
	      	\hline 
	      	1    		& ATP168    & 168   		& (3104, 59226)  			& - 	& -				& - \\ 
	      	\hline 
	      	2	  		& ATP227    & 227   		& (3393, 80409)  			& ATP17	& 17     		& (248, 6974)  \\ 
		  	\hline 
		  	3 			& ATP221    & 221   		& (3021, 72334)  			& ATP59	& 50     		& (647, 16639) \\
	      	\hline
		\end{tabular}
		\begin{tablenotes}\footnotesize
		\item[a] \textit{Nseq} represents the number of protein sequences.
		\item[b] \textit{Nposi} and \textit{Nnega} in 2-tuple \textit{(Nposi, Nnega)} represent the numbers of positive (binding residues) and negative (non-binding residues) samples, respectively.
		\end{tablenotes}
		\end{threeparttable}
	\end{table}

% 文档双排,需要表格单排,将\begin{table} 替换为 \begin{table*}
\begin{table*}
\centering
\begin{threeparttable}
\centering
   \caption{Composition of Training Dataset and Independent Validation Dataset for the Three Databases}\label{datainfo}
   \begin{tabular}{|c|c|c|c|c|c|c|c|}
    \hline
      \multirow{2}{*}{Dataset Index} &\multicolumn{3}{|c|}{Training Dataset} &\multicolumn{3}{|c|}{Independent Validation Dataset} & \multirow{2}{*}{Total No. of Sequences}\\ 
      \cline{2-7}
      & Name  & No. of Sequences& \textit{(Nposi, Nnega)}\tnote{a}& Name& No. of Sequences& \textit{(Nposi, Nnega)}\tnote{a} &  \\ 
      \hline 
      1    & ATP168    & 168  & (3104, 59226)  & -& -& - & 168\\ 
      \hline 
      2 & ATP227    & 227   & (3393, 80409)  & ATP17& 17     & (248, 6974) & 244  \\ 
  \hline 
  3 & ATP221    & 221   & (3021, 72334)  & ATP59& 50     & (647, 16639) & 271 \\
      \hline
\end{tabular}
\begin{tablenotes}\footnotesize
\item[a] \textit{Nposi} and \textit{Nnega} in 2-tuple \textit{(Nposi, Nnega)} represent the numbers of positive (binding residues) and negative (non-binding residues) samples, respectively.
\end{tablenotes}
\end{threeparttable}
\end{table*}


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Jun-H

你的鼓励是我创作的动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值