IEEE Access' Latex template uses its own figure class named \Figure

\Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){fig1.png}{<caption>\label{fig1}}

This command is for wide figures, that is, figures which span two columns. (For column-width figures the syntax [width=\columnwidth] is inserted before {fig1.png})

A problem arises when the caption is longer than the width of the printable area of the paper. It extends beyond the page as a single line.

This problem does not occur for column-width figures with long captions. It automatically converts to a multiline.

This post provides a workaround but it messes with the font type and the font size.

So, I decided to do my own research and I tried looking into the ieeeaccess.cls file (which you can also find here). But I am a complete noob to .cls files. I have a strong feeling that something is missing in the ieeeaccess.cls file under the Captions section.

It reads as


% test if is a for a figure or table
% if a table, do table caption
{\vss\color{accessblue}\tablecapheadfont #1. \ }{\raggedright\tablecapfont#2\vss}%
\@IEEEtablecaptionsepspace% V1.6 was a hard coded 8pt
% if not a table, format it as a figure
\@IEEEfigurecaptionsepspace% V1.6 was a hard coded 5pt
% 3/2001 use footnotesize, not small; use two nonbreaking spaces, not one
\setbox\@tempboxa\hbox{\strut{\color{accessblue}\figcapheadfont #1. \ }\raggedright\figcapfont#2\strut}%
%\ifdim \wd\@tempboxa >\columnwidth%
\ifdim \xfigwd >\columnwidth%
% if caption is longer than a line, let it wrap around
\setbox\@tempboxa\hbox{{\color{accessblue}\figcapheadfont #1. \ }}%
% if caption is shorter than a line,
% allow user to control short figure caption justification (left or center)
%\ifcenterfigcaptions \hbox to\hsize{\footnotesize\hfil\box\@tempboxa\hfil}%
\setbox\@tempboxa\hbox{{\color{accessblue}\figcapheadfont #1. \ }}%
%\hbox to\hsize{\box\@tempboxa\hfil}%
\fi\fi\vskip 1pt plus 1pt minus 1pt}

I sense that there should be a nested elseif to check the condition \ifdim \xfigwd >\textwidth%.

However, I seem to not find anything regarding nested \ifdim.

As I stated earlier I am a complete noob to .cls files and its syntax. And my observations might very well be wrong.

Does anyone, who is familiar with .cls syntax, happen to share the same observations as mine, and hopefully know what can be changed in the .cls file to make multiline captions possible for wide figures?

Thanks in advance.


Okay, so after fiddling around with the ieeeaccess.cls file, I found that replacing \columnwidth with \textwidth allows multiline to appear (magically) for a wide figure as well as a column-width figure.

So, under the Caption section, simply replace the line

\ifdim \xfigwd >\columnwidth%


\ifdim \xfigwd >\textwidth%

Note that I still am unsure why this is works (but it does). I leave the technical explanation to the experts.

That being said, it also does not mess the font type and the font size that IEEE Access sets, which is what I wanted.

P.s: If anyone finds this solution incorrect, explains why it is, and provides a sound solution, I will gladly remove mine. (It will still be my preferred solution for the moment:)). And I hope IEEE Access takes note of this problem.


Works with \linewidth% too. Thanks to user @Zarko for that suggestion.

  • 1
    \ifdim \xfigwd >\linewidth%? – Zarko Aug 13 '19 at 15:30
  • @Zarko Just tested with \linewidth%. That also works :). – nashynash Aug 13 '19 at 15:33

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.