[Tex/LaTex] Wide table in two-column doc: error ! Extra }, or forgotten \endgroup

tablestwo-column

I am trying to create a table which spans both columns of a two column document based on the IEEEtrans document class. However I am receiving the following error which I cannot explain:

! Extra }, or forgotten \endgroup.
\@endfloatbox ...pagefalse \outer@nobreak \egroup 
                                                  \color@endbox 
l.719 \end{table*}

Here is the table:

\begin{table*}
    \centering
      \caption{Penalty functions used in Optimisation}
        \begin{tabular*}{0.75\textwidth}{c c c c c}
            \toprule
            Aspect  & Notation & Limit & Penalty Function & Comments \\
            \midrule
            RMS Current Density & 6~Amm\textsuperscript{-2} & $L_{\text{JRMS}}$ & $S_C$ & \\
            Peak Current Density & 10~Amm\textsuperscript{-2} & $L_{\text{JMAX}}$ & $S_C$ & \\
            \bottomrule
        \end{tabular*}
        \label{tab:penfcns}
\end{table*}

The document builds with no errors if I comment out the table. line 719 is the line containing the:

\end{table*}

EDIT – MINIMAL EXAMPLE

\documentclass[journal]{IEEEtran}

\usepackage[tight,footnotesize]{subfigure}

\usepackage{fixltx2e}

\begin{document}


\begin{table*}[t]
    \centering
      \caption{Penalty functions used in Optimisation}
        \begin{tabular*}{0.75\textwidth}{c c c c c}
            Aspect  & Notation & Limit & Penalty Function & Comments \\
            RMS Current Density & 6~Amm\textsuperscript{-2} &  & $S_C$ & \\
            Peak Current Density & 10~Amm\textsuperscript{-2} &  & $S_C$ & \\
        \end{tabular*}
        \label{tab:penfcns}
\end{table*}



\end{document}

The combination of subfigure and fixltx2E seems to be the problem. I probably should be using subfig anyway.

Best Answer

use package subfig instead of the outdated subfigure. The documentation is available with running texdoc subfig.

Related Question