I'm trying to use IET communications template but have difficult in table design. The template can be found at
http://digital-library.theiet.org/files/IET_ResearchJournals_latex.zip
What I want is like
The code is
\documentclass[conference]{IEEEtran}
\IEEEoverridecommandlockouts
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{array}
\usepackage{multirow}
\begin{table*}[!t]
\centering
\scriptsize
\caption{A Comparative Description of Different Algorithms}
\label{table3}
\begin{tabular}{|m{1.5cm}<{\centering}|m{4.5cm}<{\centering}|m{3.5cm}
<{\centering}|m{2cm}<{\centering}|m{3cm}<{\centering}|m{1cm}<{\centering}|}
\hline
\textbf{1}&\textbf{2}&\textbf{3}&\textbf{4}&\textbf{5}&\textbf{6} \\
\hline
\multirow{2}{1.5cm}{\textbf{A}} & B & C & D& E & \cite{1-17} \\
\cline{2-6}
& B& C & D & E & \cite{1-18} \\
\cline{2-6}
& B &C & D & E & \cite{1-18} \\
\hline
\end{tabular}%
\end{table*}
\end{document}
But if I use the template document style/class, it will be like this:
The code is
\documentclass{cta-author}
\newtheorem{theorem}{Theorem}{}
\newtheorem{corollary}{Corollary}{}
\newtheorem{remark}{Remark}{}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{array}
\usepackage{multirow}
\begin{table*}[!t]
\centering
\scriptsize
\caption{A Comparative Description of Different Algorithms}
\label{table3}
\begin{tabular}{|m{1.5cm}<{\centering}|m{4.5cm}<{\centering}|m{3.5cm}
<{\centering}|m{2cm}<{\centering}|m{3cm}<{\centering}|m{1cm}<{\centering}|}
\hline
\textbf{1}&\textbf{2}&\textbf{3}&\textbf{4}&\textbf{5}&\textbf{6} \\
\hline
\multirow{2}{1.5cm}{\textbf{A}} & B & C & D& E & \cite{1-17} \\
\cline{2-6}
& B& C & D & E & \cite{1-18} \\
\cline{2-6}
& B &C & D & E & \cite{1-18} \\
\hline
\end{tabular}%
\end{table*}
\end{document}
And errors is Extra alignment tab has been changed to \cr. … {\cite{1-21}} \ \cline{2-6}
It puzzles me for a long time. Appreciate your help.
Best Answer
It seems that
cta-author
class does not allow to use\cline
(nor\cmidrule
).I'd suggest to you to load
booktabs
and use\cmidrule
.The class documentation says:
hence I have modified your code accordingly.
Moreover, I think that the definition of the cell with
\multirow{2}{1.5cm}{\textbf{A}}
should be refined according to the actual text in it.Finally, since your MWE is not complete, the citation are shown as
?
.