删除标题和表格之间的线

删除标题和表格之间的线

我怎样才能删除标题和表格之间的线?

我的代码是:

\begin{table}[h]
\tables{360pt}{1.875pt}
\caption{EG unit Characteristics for TPC and 201 bus distribution systems}
\label{tab1} 
\begin{tabular}{@{}ccccccccccccccccc@{}}
\tchrule
System & EGparameters &EG1 & EG2 & EG3 & EG4 & EG5 & EG6 & EG7 & EG8 & EG9 & EG10 & EG11 & EG12 & EG13 & EG14 & EG15\\ 
\tbrule
 & Type & 1 & 1 & 1 & 1 & 1 & 2 & 2 & 2 & 2 & 2 & 3 & 3 & 3 & 3 & 3\\
TPC & Location & 4 & 65 & 25 & 35 & 84 & 55 & 12 & 72 & 20 & 47 & 11 & 60 & 41 &    30 & 76\\ 
 & Capacity & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1\\ 
\tbrule
 & Type & 1 & 1 & 1 & 1 & 1 & 2 & 2 & 2 & 2 & 2 & 3 & 3 & 3 & 3 & 3\\
201 & Location & 3 & 26 & 177 & 18 & 64 & 74 & 144 & 98 & 200 & 137 & 135 & 57 & 16 &   128 & 113\\ 
 & Capacity & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2\\ 
\tbrule
Type & \multicolumn{16}{c}{1:Combined Cycle Gas Turbine 2:Combined Cycle Gas Turbine 3:Combined Cycle Gas Turbine}\\
\tbrule
\end{tabular}
\end{table}

我用过\nocaptionrule但是它给出了错误:!未定义的控制序列。\caption 规则。

答案1

\documentclass{article}
\usepackage{rotating}
\usepackage{booktabs}
\begin{document}
\begin{sidewaystable}
\centering
\begin{tabular}{@{}clccccccccccccccc@{}}
\toprule
System & EGparameters &EG1 & EG2 & EG3 & EG4 & EG5 & EG6 & EG7 & EG8 & EG9 & EG10 & EG11 & EG12 & EG13 & EG14 & EG15\\ 
\midrule
& Type & 1 & 1 & 1 & 1 & 1 & 2 & 2 & 2 & 2 & 2 & 3 & 3 & 3 & 3 & 3\\
TPC & Location & 4 & 65 & 25 & 35 & 84 & 55 & 12 & 72 & 20 & 47 & 11 & 60 & 41 &    30 & 76\\ 
& Capacity & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1\\ 
\midrule
& Type & 1 & 1 & 1 & 1 & 1 & 2 & 2 & 2 & 2 & 2 & 3 & 3 & 3 & 3 & 3\\
201 & Location & 3 & 26 & 177 & 18 & 64 & 74 & 144 & 98 & 200 & 137 & 135 & 57 & 16 &   128 & 113\\ 
& Capacity & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2 & 2\\ 
\midrule
Type & \multicolumn{16}{c}{1:Combined Cycle Gas Turbine 2:Combined Cycle Gas Turbine 3:Combined Cycle Gas Turbine}\\
\bottomrule
\end{tabular}
\caption{EG unit Characteristics for TPC and 201 bus distribution systems}
\label{tab1}
\end{sidewaystable}
\end{document}

相关内容