# Capitalize the caption in IEEEeqnarraybox environment

I have a problem with using \subcaption and IEEEeqnarraybox in IEEEtran class.

The caption should look like below along with using \subcaption(as it does without using \subcaption)

but it looks like below with using \subcaption

Following is MWE:

\documentclass[twoside]{IEEEtran}
\usepackage[utf8]{inputenc}
\usepackage{newunicodechar}
\usepackage{booktabs}
\usepackage{lipsum}
\usepackage{subcaption}

\begin{document}

\lipsum[2]

\begin{table}[!t]
\centering
\caption{This is a Caption. \label{mylabel}}
\centering
\begin{IEEEeqnarraybox}[
\IEEEeqnarraystrutmode
\IEEEeqnarraystrutsizeadd{3pt}
{1pt}
]{c'c'c/v/c'c'c}
a & b& c && d & e
\\\hline
1 & 3 & 3 && +1 & +1 \\
3 & 5 & 4 && +1 & -1 \\
2& 2& 3  && -1 & +1 \\
4& 44& 24 && -1 & -1 \\
4& 5 & 10 && -1 & +1
\end{IEEEeqnarraybox}
\end{table}

\lipsum[1-40]

\end{document}

• Removing subcaption is no option, I think?
– user31729
Jun 7, 2017 at 6:28
• Yup, no option. I am actually using subcaption because of subfigure in my document.
– kaka
Jun 7, 2017 at 6:44
• Well, your 'MWE' is not using it yet and caption gives a clear warning: "Unsupported document class -- don't use caption"
– user31729
Jun 7, 2017 at 6:44

## 2 Answers

Please note that the caption package regards the IEEEtran class as being not supported and gives a clear warning to refrain from using caption here...

However, it works with

\captionsetup[table]{name=TABLE,labelsep=newline,justification=centering,textfont=sc}

The \label has to be put outside.

\documentclass[twoside]{IEEEtran}
\usepackage[utf8]{inputenc}
\usepackage{newunicodechar}
\usepackage{booktabs}
\usepackage{lipsum}
\usepackage{subcaption}

\begin{document}

\lipsum[2]

\captionsetup[table]{name=TABLE,labelsep=newline,textfont=sc}

\begin{table}[!t]
\centering
\caption{This is a Caption.}
\centering
\begin{IEEEeqnarraybox}[
\IEEEeqnarraystrutmode
\IEEEeqnarraystrutsizeadd{3pt}
{1pt}
]{c'c'c/v/c'c'c}
a & b& c && d & e
\\\hline
1 & 3 & 3 && +1 & +1 \\
3 & 5 & 4 && +1 & -1 \\
2& 2& 3  && -1 & +1 \\
4& 44& 24 && -1 & -1 \\
4& 5 & 10 && -1 & +1
\end{IEEEeqnarraybox}
\end{table}

\lipsum[1-40]

\end{document}


• But it still look like what the problem actually is. Caption should look like as in first figure in my question.
– kaka
Jun 7, 2017 at 6:56
• You vote for some of your new answers to return the favor of chatting help. +1 Jun 7, 2017 at 6:57
• @kaka: Updated the code, however, not the screen shot yet
– user31729
Jun 7, 2017 at 7:18
• @kaka: You mean small caps, not capital letters, actually, see the next update
– user31729
Jun 7, 2017 at 7:50
• @kaka: Add justification=centering to the \captionsetup options, that should work
– user31729
Jun 7, 2017 at 8:06

The caption package is incompatible with IEEEtran.cls, as the warning

Package caption Warning: Unsupported document class (or package) detected,
(caption)                usage of the caption package is not recommended.
See the caption package documentation for explanation.


hints at. Copy editors at IEEE will be very annoyed by contributors trying to break the class.

If you need subfloats, you can do

\usepackage[caption=false]{subfig}


and use \subfloat instead of subfigure (syntax change is necessary).

• There are a lot of subfigures in my document to change syntax and also subcaption is more recent and up to date so I want to stick to subcaption. Thanks anyways for letting me know the inherent issue.
– kaka
Jun 7, 2017 at 7:44