\documentclass[journal]{IEEEtran}
\usepackage[classicReIm]{kpfonts}
\usepackage{booktabs,tabularx,lipsum}
\usepackage{float}
\usepackage{graphicx}
\usepackage{subfigure}
\begin{document}
\begin{table}[H]
%\caption{Smart home appliances classification and parameters.}
\centering
\tablesize{\small}
\label{appliance_parameters}
%\begin{center}
\begin{tabular}{cccccc}
\toprule
\multirow{2}{*}{\textbf{Categories }}&\multirow{2}{*}{\textbf{Type}}& \textbf{Power rating (kW) }&\textbf{Start time (hours)}& \textbf{End time (hours) }& \multirow{2}{*}{\textbf{LOT (hours)}}\\
& &\textbf{Rating (kWh)}&\textbf{Time (h)}&\textbf{Time (h)}\\
\midrule
%1.14\\0.083\\1.666\\0.1\\1.4\\1.32\\2.4\\0.225\\2.4\\0.8\\2\\0.15\\0.011\\0.005\\0.055\\1.8\\1.2
\multirow{13}{*}{Shiftable Appliances}
&Washing Machine & 1.4 & 6 & 10 & 1--3\\
%\hhline{~-----}
&Dish Washer & 1.32 & 15 & 20 & 1--3\\
&Hair Straightener & 0.055 & 18 & 8 & 1--2\\
%\hhline{~-----}
&Hair Dryer & 1.8 & 18 & 8 & 1--2\\
\bottomrule
\end{tabular}
%\end{center}
\end{table}
\end{document}
答案1
你得到
! Undefined control sequence.
l.13 \tablesize
{\small}
只需使用\small
然后你得到错误
! Undefined control sequence.
<recently read> \multirow
因此添加该multirow
包。
然后你就不会得到错误(但即使在 时仍然太宽\small
)