2

There seems to be a problem between cta-author class and cline. Here is my MWE giving me back "Extra alignment tab has been changed to \cr.":

    \documentclass{cta-author}
    \begin{document}
      \begin{table*}[h]
        \begin{tabular}{ccc}
          What & the & * ? \\
          \cline{2-3} 
          0 & 1 & 2
        \end{tabular}
      \end{table*}
    \end{document}

cta-author.cls can be found in the current version of the IET Journal template -> http://digital-library.theiet.org/files/IET_ResearchJournals_latex.zip

Any idea how to circumvent this?

0

Another answer with the hhline package:

\documentclass{cta-author}
\usepackage{hhline}

\begin{document}
  \begin{table*}[h]
    \begin{tabular}{ccc}
      What & the & * ? \\\hhline{~--}
      0 & 1 & 2
    \end{tabular}
  \end{table*}
\end{document}

In the arguments of \hhline you can specify the separator line for each column. ~ stands for no line, and - stands for single line. See also the documentation.

enter image description here

  • This solution did not inflate the table like the cmidrule from bookstabs, which seems to insert some extra vertical space. – padric Nov 29 '17 at 16:26
1

If you use the booktabs package, you can use \cmidrule instead of \cline.

\documentclass{cta-author}
\usepackage{booktabs}

\begin{document}
  \begin{table*}[h]
    \begin{tabular}{ccc}
      What & the & * ? \\\cmidrule{2-3}
      0 & 1 & 2
    \end{tabular}
  \end{table*}
\end{document}

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.