How to insert first subfigures with caption in IEEE ACCESS LaTeX?Figure caption line breaking after first...

What does the Digital Threat scope actually do?

-1 to the power of a irrational number

Was it really inappropriate to write a pull request for the company I interviewed with?

Can the Witch Sight warlock invocation see through the Mirror Image spell?

What can I do if someone tampers with my SSH public key?

Writing text next to a table

What would be the most expensive material to an intergalactic society?

How would an energy-based "projectile" blow up a spaceship?

Rationale to prefer local variables over instance variables?

Giving a career talk in my old university, how prominently should I tell students my salary?

Can you train your ranger to master different fighting styles?

Sampling from Gaussian mixture models, when are the sampled data independent?

Create chunks from an array

School performs periodic password audits. Is my password compromised?

Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?

Strange opamp's output impedance in spice

Is it a Cyclops number? "Nobody" knows!

How do you make a gun that shoots melee weapons and/or swords?

Why is epimorphism not defined as follows?

How do we create new idioms and use them in a novel?

What is the purpose of a disclaimer like "this is not legal advice"?

PTIJ: Sport in the Torah

Psychology of 'flow'

How should I solve this integral with changing parameters?



How to insert first subfigures with caption in IEEE ACCESS LaTeX?


Figure caption line breaking after first letterLatex how to group subfiguresInsert two images as subfigures verticallyCaption for subfiguresMultiple references to subfigures in figure captionAligning Subfigures in LatexCaption left align with first wordProblem compiler error about figure/subfigure ' caption using latex IEEE ACCESS templateSubfigures with combined caption?Figure in Latex IEEE Format













3















I want to insert first subfigures with caption in IEEE Access LaTeX by using subfloat but I can't do,
because I think It can be only able to insert after using



Figure(topskip=0pt, botskip=0pt, midskip=0pt){filename}{captionlabel{}}


If I can't write step1 code, step2 code does not working,
How can I solve this problem?



codes



documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}

ifCLASSOPTIONcompsoc
usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf]{subfig}
else
usepackage[caption=false, font=footnotesize]{subfig}
fi
begin{document}

%%% problems ......
Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){Fig1_A.eps}
{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}

begin{figure}[t!]
centering
subfloat[]{includegraphics[width=0.5in]{Fig1_A.eps}
label{fig:Fig1_A}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_B.eps}
label{fig:Fig1_B}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_C.eps}
label{fig:Fig1_C}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_D.eps}
label{fig:Fig1_D}}
hfil
subfloat[]{includegraphics[width=0.5in]{Fig1_E.eps}
label{fig:Fig1_E}}
caption{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.}
label{fig:Fig1}
end{figure}

end{document}









share|improve this question
















bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 3





    Welcome to TeX.SX! Please give a minimal compilable code example (MWE).

    – TeXnician
    Nov 4 '17 at 7:58











  • Please don't use screenshots for code, we usually want to test answers, and typing it off a screenshot is just annoying and unnecessary. Also wouldn't hurt to add a link to the class (ieeeauthorcenter.ieee.org/create-your-ieee-article/…), as it's not a standard one.

    – Torbjørn T.
    Nov 4 '17 at 10:58











  • Was the subfig package loaded?

    – John Kormylo
    Nov 4 '17 at 14:10











  • sorry, I don’t know that. I edited my post to show my codes. I downloaded latex template from that link and read Author guide line. I want to insert my figures not to use ‘Figure[t!] ~~~’. how can I do that...? thanks

    – Sungsin Lee
    Nov 5 '17 at 9:18











  • Yes I loaded subfig package like “ifCLaSSOPTIONcomposoc ~ fi”.

    – Sungsin Lee
    Nov 5 '17 at 9:20
















3















I want to insert first subfigures with caption in IEEE Access LaTeX by using subfloat but I can't do,
because I think It can be only able to insert after using



Figure(topskip=0pt, botskip=0pt, midskip=0pt){filename}{captionlabel{}}


If I can't write step1 code, step2 code does not working,
How can I solve this problem?



codes



documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}

ifCLASSOPTIONcompsoc
usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf]{subfig}
else
usepackage[caption=false, font=footnotesize]{subfig}
fi
begin{document}

%%% problems ......
Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){Fig1_A.eps}
{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}

begin{figure}[t!]
centering
subfloat[]{includegraphics[width=0.5in]{Fig1_A.eps}
label{fig:Fig1_A}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_B.eps}
label{fig:Fig1_B}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_C.eps}
label{fig:Fig1_C}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_D.eps}
label{fig:Fig1_D}}
hfil
subfloat[]{includegraphics[width=0.5in]{Fig1_E.eps}
label{fig:Fig1_E}}
caption{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.}
label{fig:Fig1}
end{figure}

end{document}









share|improve this question
















bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 3





    Welcome to TeX.SX! Please give a minimal compilable code example (MWE).

    – TeXnician
    Nov 4 '17 at 7:58











  • Please don't use screenshots for code, we usually want to test answers, and typing it off a screenshot is just annoying and unnecessary. Also wouldn't hurt to add a link to the class (ieeeauthorcenter.ieee.org/create-your-ieee-article/…), as it's not a standard one.

    – Torbjørn T.
    Nov 4 '17 at 10:58











  • Was the subfig package loaded?

    – John Kormylo
    Nov 4 '17 at 14:10











  • sorry, I don’t know that. I edited my post to show my codes. I downloaded latex template from that link and read Author guide line. I want to insert my figures not to use ‘Figure[t!] ~~~’. how can I do that...? thanks

    – Sungsin Lee
    Nov 5 '17 at 9:18











  • Yes I loaded subfig package like “ifCLaSSOPTIONcomposoc ~ fi”.

    – Sungsin Lee
    Nov 5 '17 at 9:20














3












3








3








I want to insert first subfigures with caption in IEEE Access LaTeX by using subfloat but I can't do,
because I think It can be only able to insert after using



Figure(topskip=0pt, botskip=0pt, midskip=0pt){filename}{captionlabel{}}


If I can't write step1 code, step2 code does not working,
How can I solve this problem?



codes



documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}

ifCLASSOPTIONcompsoc
usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf]{subfig}
else
usepackage[caption=false, font=footnotesize]{subfig}
fi
begin{document}

%%% problems ......
Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){Fig1_A.eps}
{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}

begin{figure}[t!]
centering
subfloat[]{includegraphics[width=0.5in]{Fig1_A.eps}
label{fig:Fig1_A}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_B.eps}
label{fig:Fig1_B}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_C.eps}
label{fig:Fig1_C}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_D.eps}
label{fig:Fig1_D}}
hfil
subfloat[]{includegraphics[width=0.5in]{Fig1_E.eps}
label{fig:Fig1_E}}
caption{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.}
label{fig:Fig1}
end{figure}

end{document}









share|improve this question
















I want to insert first subfigures with caption in IEEE Access LaTeX by using subfloat but I can't do,
because I think It can be only able to insert after using



Figure(topskip=0pt, botskip=0pt, midskip=0pt){filename}{captionlabel{}}


If I can't write step1 code, step2 code does not working,
How can I solve this problem?



codes



documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}

ifCLASSOPTIONcompsoc
usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf]{subfig}
else
usepackage[caption=false, font=footnotesize]{subfig}
fi
begin{document}

%%% problems ......
Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){Fig1_A.eps}
{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}

begin{figure}[t!]
centering
subfloat[]{includegraphics[width=0.5in]{Fig1_A.eps}
label{fig:Fig1_A}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_B.eps}
label{fig:Fig1_B}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_C.eps}
label{fig:Fig1_C}}
hfil
subfloat[]{
includegraphics[width=0.5in]{Fig1_D.eps}
label{fig:Fig1_D}}
hfil
subfloat[]{includegraphics[width=0.5in]{Fig1_E.eps}
label{fig:Fig1_E}}
caption{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.}
label{fig:Fig1}
end{figure}

end{document}






floats






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 7 at 21:21









Kurt

38.9k849163




38.9k849163










asked Nov 4 '17 at 7:40









Sungsin LeeSungsin Lee

163




163





bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 3 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 3





    Welcome to TeX.SX! Please give a minimal compilable code example (MWE).

    – TeXnician
    Nov 4 '17 at 7:58











  • Please don't use screenshots for code, we usually want to test answers, and typing it off a screenshot is just annoying and unnecessary. Also wouldn't hurt to add a link to the class (ieeeauthorcenter.ieee.org/create-your-ieee-article/…), as it's not a standard one.

    – Torbjørn T.
    Nov 4 '17 at 10:58











  • Was the subfig package loaded?

    – John Kormylo
    Nov 4 '17 at 14:10











  • sorry, I don’t know that. I edited my post to show my codes. I downloaded latex template from that link and read Author guide line. I want to insert my figures not to use ‘Figure[t!] ~~~’. how can I do that...? thanks

    – Sungsin Lee
    Nov 5 '17 at 9:18











  • Yes I loaded subfig package like “ifCLaSSOPTIONcomposoc ~ fi”.

    – Sungsin Lee
    Nov 5 '17 at 9:20














  • 3





    Welcome to TeX.SX! Please give a minimal compilable code example (MWE).

    – TeXnician
    Nov 4 '17 at 7:58











  • Please don't use screenshots for code, we usually want to test answers, and typing it off a screenshot is just annoying and unnecessary. Also wouldn't hurt to add a link to the class (ieeeauthorcenter.ieee.org/create-your-ieee-article/…), as it's not a standard one.

    – Torbjørn T.
    Nov 4 '17 at 10:58











  • Was the subfig package loaded?

    – John Kormylo
    Nov 4 '17 at 14:10











  • sorry, I don’t know that. I edited my post to show my codes. I downloaded latex template from that link and read Author guide line. I want to insert my figures not to use ‘Figure[t!] ~~~’. how can I do that...? thanks

    – Sungsin Lee
    Nov 5 '17 at 9:18











  • Yes I loaded subfig package like “ifCLaSSOPTIONcomposoc ~ fi”.

    – Sungsin Lee
    Nov 5 '17 at 9:20








3




3





Welcome to TeX.SX! Please give a minimal compilable code example (MWE).

– TeXnician
Nov 4 '17 at 7:58





Welcome to TeX.SX! Please give a minimal compilable code example (MWE).

– TeXnician
Nov 4 '17 at 7:58













Please don't use screenshots for code, we usually want to test answers, and typing it off a screenshot is just annoying and unnecessary. Also wouldn't hurt to add a link to the class (ieeeauthorcenter.ieee.org/create-your-ieee-article/…), as it's not a standard one.

– Torbjørn T.
Nov 4 '17 at 10:58





Please don't use screenshots for code, we usually want to test answers, and typing it off a screenshot is just annoying and unnecessary. Also wouldn't hurt to add a link to the class (ieeeauthorcenter.ieee.org/create-your-ieee-article/…), as it's not a standard one.

– Torbjørn T.
Nov 4 '17 at 10:58













Was the subfig package loaded?

– John Kormylo
Nov 4 '17 at 14:10





Was the subfig package loaded?

– John Kormylo
Nov 4 '17 at 14:10













sorry, I don’t know that. I edited my post to show my codes. I downloaded latex template from that link and read Author guide line. I want to insert my figures not to use ‘Figure[t!] ~~~’. how can I do that...? thanks

– Sungsin Lee
Nov 5 '17 at 9:18





sorry, I don’t know that. I edited my post to show my codes. I downloaded latex template from that link and read Author guide line. I want to insert my figures not to use ‘Figure[t!] ~~~’. how can I do that...? thanks

– Sungsin Lee
Nov 5 '17 at 9:18













Yes I loaded subfig package like “ifCLaSSOPTIONcomposoc ~ fi”.

– Sungsin Lee
Nov 5 '17 at 9:20





Yes I loaded subfig package like “ifCLaSSOPTIONcomposoc ~ fi”.

– Sungsin Lee
Nov 5 '17 at 9:20










2 Answers
2






active

oldest

votes


















0














I had the same problem. It seems unavoidable.



If you use Figure for a single image you want to show, then you can use subfigure for multiple images later, without problems.



But if there is not Figure anywhere in your code, then you are gonna get log errors about captions in all the typical figure enviroments.



Hope they fix that problem with the template.






share|improve this answer
























  • Welcome to TeX.SE!

    – Kurt
    Feb 7 at 18:44











  • Please see my added answer.

    – Kurt
    Feb 7 at 21:22



















0














Commenting command Figure in the given MWE of the OP results in the following complete error message:




! Undefined control sequence.
@makecaption ...capfont #2strut }ifdim xfigwd
>columnwidth setbox @te...
l.40 ...ce image and several kinds of sub-images.}

The control sequence at the end of the top line
of your error message was never def'ed. If you have



You can see that command xfigwd is undefined.



Looking in the code of ieeeaccess.cls you can find



def@@@Figure[#1](#2)[#3]#4#5{%
setkeys{figkeys}{#2}% Set new keys
setboxfigboxhbox{includegraphics[#3]{#4}}%
xdefxfigwd{thewdfigbox}% <=======================================
ifdimwdfigbox<columnwidth% Columnwidth Figure
begin{figure}[#1]%
centering%
vspace*{5pt}%
vspace*{fig@topskip}%


I marked the definition of xfigwd with <====== in that original code.



Now if you want to add first an subfloat without Figure you can do this simple dirty hack:



Add the definition before your begin{figure}:



%%% problems ...... 
%Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){example-image-a}
%{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}
xdefxfigwd{thewdfigbox}% <========================================
begin{figure}[t!]


Please see the following compiling code (please see I used example images from packages MWE instead your eps figures)



documentclass{ieeeaccess}

usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithmic}
usepackage{graphicx}
usepackage{textcomp}

ifCLASSOPTIONcompsoc
usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf]{subfig}
else
usepackage[caption=false, font=footnotesize]{subfig}
fi
begin{document}

%%% problems ......
%Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){example-image-a} % <===================
%{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}
xdefxfigwd{thewdfigbox}% <========================================
begin{figure}[t!]
centering
subfloat[]{includegraphics[width=0.5in]{example-image-a}
label{fig:Fig1_A}}
hfil
subfloat[]{
includegraphics[width=0.5in]{example-image-b}
label{fig:Fig1_B}}
hfil
subfloat[]{
includegraphics[width=0.5in]{example-image-c}
label{fig:Fig1_C}}
hfil
subfloat[]{
includegraphics[width=0.5in]{example-image-a}
label{fig:Fig1_D}}
hfil
subfloat[]{includegraphics[width=0.5in]{example-image-b}
label{fig:Fig1_E}}
caption{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.}
label{fig:Fig1}
end{figure}
EOD
end{document}


and its compiling result:



resulting pdf






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f399600%2fhow-to-insert-first-subfigures-with-caption-in-ieee-access-latex%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I had the same problem. It seems unavoidable.



    If you use Figure for a single image you want to show, then you can use subfigure for multiple images later, without problems.



    But if there is not Figure anywhere in your code, then you are gonna get log errors about captions in all the typical figure enviroments.



    Hope they fix that problem with the template.






    share|improve this answer
























    • Welcome to TeX.SE!

      – Kurt
      Feb 7 at 18:44











    • Please see my added answer.

      – Kurt
      Feb 7 at 21:22
















    0














    I had the same problem. It seems unavoidable.



    If you use Figure for a single image you want to show, then you can use subfigure for multiple images later, without problems.



    But if there is not Figure anywhere in your code, then you are gonna get log errors about captions in all the typical figure enviroments.



    Hope they fix that problem with the template.






    share|improve this answer
























    • Welcome to TeX.SE!

      – Kurt
      Feb 7 at 18:44











    • Please see my added answer.

      – Kurt
      Feb 7 at 21:22














    0












    0








    0







    I had the same problem. It seems unavoidable.



    If you use Figure for a single image you want to show, then you can use subfigure for multiple images later, without problems.



    But if there is not Figure anywhere in your code, then you are gonna get log errors about captions in all the typical figure enviroments.



    Hope they fix that problem with the template.






    share|improve this answer













    I had the same problem. It seems unavoidable.



    If you use Figure for a single image you want to show, then you can use subfigure for multiple images later, without problems.



    But if there is not Figure anywhere in your code, then you are gonna get log errors about captions in all the typical figure enviroments.



    Hope they fix that problem with the template.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Feb 7 at 18:25









    AnonAnon

    1




    1













    • Welcome to TeX.SE!

      – Kurt
      Feb 7 at 18:44











    • Please see my added answer.

      – Kurt
      Feb 7 at 21:22



















    • Welcome to TeX.SE!

      – Kurt
      Feb 7 at 18:44











    • Please see my added answer.

      – Kurt
      Feb 7 at 21:22

















    Welcome to TeX.SE!

    – Kurt
    Feb 7 at 18:44





    Welcome to TeX.SE!

    – Kurt
    Feb 7 at 18:44













    Please see my added answer.

    – Kurt
    Feb 7 at 21:22





    Please see my added answer.

    – Kurt
    Feb 7 at 21:22











    0














    Commenting command Figure in the given MWE of the OP results in the following complete error message:




    ! Undefined control sequence.
    @makecaption ...capfont #2strut }ifdim xfigwd
    >columnwidth setbox @te...
    l.40 ...ce image and several kinds of sub-images.}

    The control sequence at the end of the top line
    of your error message was never def'ed. If you have



    You can see that command xfigwd is undefined.



    Looking in the code of ieeeaccess.cls you can find



    def@@@Figure[#1](#2)[#3]#4#5{%
    setkeys{figkeys}{#2}% Set new keys
    setboxfigboxhbox{includegraphics[#3]{#4}}%
    xdefxfigwd{thewdfigbox}% <=======================================
    ifdimwdfigbox<columnwidth% Columnwidth Figure
    begin{figure}[#1]%
    centering%
    vspace*{5pt}%
    vspace*{fig@topskip}%


    I marked the definition of xfigwd with <====== in that original code.



    Now if you want to add first an subfloat without Figure you can do this simple dirty hack:



    Add the definition before your begin{figure}:



    %%% problems ...... 
    %Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){example-image-a}
    %{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}
    xdefxfigwd{thewdfigbox}% <========================================
    begin{figure}[t!]


    Please see the following compiling code (please see I used example images from packages MWE instead your eps figures)



    documentclass{ieeeaccess}

    usepackage{cite}
    usepackage{amsmath,amssymb,amsfonts}
    usepackage{algorithmic}
    usepackage{graphicx}
    usepackage{textcomp}

    ifCLASSOPTIONcompsoc
    usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf]{subfig}
    else
    usepackage[caption=false, font=footnotesize]{subfig}
    fi
    begin{document}

    %%% problems ......
    %Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){example-image-a} % <===================
    %{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}
    xdefxfigwd{thewdfigbox}% <========================================
    begin{figure}[t!]
    centering
    subfloat[]{includegraphics[width=0.5in]{example-image-a}
    label{fig:Fig1_A}}
    hfil
    subfloat[]{
    includegraphics[width=0.5in]{example-image-b}
    label{fig:Fig1_B}}
    hfil
    subfloat[]{
    includegraphics[width=0.5in]{example-image-c}
    label{fig:Fig1_C}}
    hfil
    subfloat[]{
    includegraphics[width=0.5in]{example-image-a}
    label{fig:Fig1_D}}
    hfil
    subfloat[]{includegraphics[width=0.5in]{example-image-b}
    label{fig:Fig1_E}}
    caption{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.}
    label{fig:Fig1}
    end{figure}
    EOD
    end{document}


    and its compiling result:



    resulting pdf






    share|improve this answer




























      0














      Commenting command Figure in the given MWE of the OP results in the following complete error message:




      ! Undefined control sequence.
      @makecaption ...capfont #2strut }ifdim xfigwd
      >columnwidth setbox @te...
      l.40 ...ce image and several kinds of sub-images.}

      The control sequence at the end of the top line
      of your error message was never def'ed. If you have



      You can see that command xfigwd is undefined.



      Looking in the code of ieeeaccess.cls you can find



      def@@@Figure[#1](#2)[#3]#4#5{%
      setkeys{figkeys}{#2}% Set new keys
      setboxfigboxhbox{includegraphics[#3]{#4}}%
      xdefxfigwd{thewdfigbox}% <=======================================
      ifdimwdfigbox<columnwidth% Columnwidth Figure
      begin{figure}[#1]%
      centering%
      vspace*{5pt}%
      vspace*{fig@topskip}%


      I marked the definition of xfigwd with <====== in that original code.



      Now if you want to add first an subfloat without Figure you can do this simple dirty hack:



      Add the definition before your begin{figure}:



      %%% problems ...... 
      %Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){example-image-a}
      %{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}
      xdefxfigwd{thewdfigbox}% <========================================
      begin{figure}[t!]


      Please see the following compiling code (please see I used example images from packages MWE instead your eps figures)



      documentclass{ieeeaccess}

      usepackage{cite}
      usepackage{amsmath,amssymb,amsfonts}
      usepackage{algorithmic}
      usepackage{graphicx}
      usepackage{textcomp}

      ifCLASSOPTIONcompsoc
      usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf]{subfig}
      else
      usepackage[caption=false, font=footnotesize]{subfig}
      fi
      begin{document}

      %%% problems ......
      %Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){example-image-a} % <===================
      %{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}
      xdefxfigwd{thewdfigbox}% <========================================
      begin{figure}[t!]
      centering
      subfloat[]{includegraphics[width=0.5in]{example-image-a}
      label{fig:Fig1_A}}
      hfil
      subfloat[]{
      includegraphics[width=0.5in]{example-image-b}
      label{fig:Fig1_B}}
      hfil
      subfloat[]{
      includegraphics[width=0.5in]{example-image-c}
      label{fig:Fig1_C}}
      hfil
      subfloat[]{
      includegraphics[width=0.5in]{example-image-a}
      label{fig:Fig1_D}}
      hfil
      subfloat[]{includegraphics[width=0.5in]{example-image-b}
      label{fig:Fig1_E}}
      caption{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.}
      label{fig:Fig1}
      end{figure}
      EOD
      end{document}


      and its compiling result:



      resulting pdf






      share|improve this answer


























        0












        0








        0







        Commenting command Figure in the given MWE of the OP results in the following complete error message:




        ! Undefined control sequence.
        @makecaption ...capfont #2strut }ifdim xfigwd
        >columnwidth setbox @te...
        l.40 ...ce image and several kinds of sub-images.}

        The control sequence at the end of the top line
        of your error message was never def'ed. If you have



        You can see that command xfigwd is undefined.



        Looking in the code of ieeeaccess.cls you can find



        def@@@Figure[#1](#2)[#3]#4#5{%
        setkeys{figkeys}{#2}% Set new keys
        setboxfigboxhbox{includegraphics[#3]{#4}}%
        xdefxfigwd{thewdfigbox}% <=======================================
        ifdimwdfigbox<columnwidth% Columnwidth Figure
        begin{figure}[#1]%
        centering%
        vspace*{5pt}%
        vspace*{fig@topskip}%


        I marked the definition of xfigwd with <====== in that original code.



        Now if you want to add first an subfloat without Figure you can do this simple dirty hack:



        Add the definition before your begin{figure}:



        %%% problems ...... 
        %Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){example-image-a}
        %{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}
        xdefxfigwd{thewdfigbox}% <========================================
        begin{figure}[t!]


        Please see the following compiling code (please see I used example images from packages MWE instead your eps figures)



        documentclass{ieeeaccess}

        usepackage{cite}
        usepackage{amsmath,amssymb,amsfonts}
        usepackage{algorithmic}
        usepackage{graphicx}
        usepackage{textcomp}

        ifCLASSOPTIONcompsoc
        usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf]{subfig}
        else
        usepackage[caption=false, font=footnotesize]{subfig}
        fi
        begin{document}

        %%% problems ......
        %Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){example-image-a} % <===================
        %{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}
        xdefxfigwd{thewdfigbox}% <========================================
        begin{figure}[t!]
        centering
        subfloat[]{includegraphics[width=0.5in]{example-image-a}
        label{fig:Fig1_A}}
        hfil
        subfloat[]{
        includegraphics[width=0.5in]{example-image-b}
        label{fig:Fig1_B}}
        hfil
        subfloat[]{
        includegraphics[width=0.5in]{example-image-c}
        label{fig:Fig1_C}}
        hfil
        subfloat[]{
        includegraphics[width=0.5in]{example-image-a}
        label{fig:Fig1_D}}
        hfil
        subfloat[]{includegraphics[width=0.5in]{example-image-b}
        label{fig:Fig1_E}}
        caption{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.}
        label{fig:Fig1}
        end{figure}
        EOD
        end{document}


        and its compiling result:



        resulting pdf






        share|improve this answer













        Commenting command Figure in the given MWE of the OP results in the following complete error message:




        ! Undefined control sequence.
        @makecaption ...capfont #2strut }ifdim xfigwd
        >columnwidth setbox @te...
        l.40 ...ce image and several kinds of sub-images.}

        The control sequence at the end of the top line
        of your error message was never def'ed. If you have



        You can see that command xfigwd is undefined.



        Looking in the code of ieeeaccess.cls you can find



        def@@@Figure[#1](#2)[#3]#4#5{%
        setkeys{figkeys}{#2}% Set new keys
        setboxfigboxhbox{includegraphics[#3]{#4}}%
        xdefxfigwd{thewdfigbox}% <=======================================
        ifdimwdfigbox<columnwidth% Columnwidth Figure
        begin{figure}[#1]%
        centering%
        vspace*{5pt}%
        vspace*{fig@topskip}%


        I marked the definition of xfigwd with <====== in that original code.



        Now if you want to add first an subfloat without Figure you can do this simple dirty hack:



        Add the definition before your begin{figure}:



        %%% problems ...... 
        %Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){example-image-a}
        %{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}
        xdefxfigwd{thewdfigbox}% <========================================
        begin{figure}[t!]


        Please see the following compiling code (please see I used example images from packages MWE instead your eps figures)



        documentclass{ieeeaccess}

        usepackage{cite}
        usepackage{amsmath,amssymb,amsfonts}
        usepackage{algorithmic}
        usepackage{graphicx}
        usepackage{textcomp}

        ifCLASSOPTIONcompsoc
        usepackage[caption=false, font=normalsize, labelfont=sf, textfont=sf]{subfig}
        else
        usepackage[caption=false, font=footnotesize]{subfig}
        fi
        begin{document}

        %%% problems ......
        %Figure[t!](topskip=0pt, botskip=0pt, midskip=0pt){example-image-a} % <===================
        %{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.label{fig:Fig1}}
        xdefxfigwd{thewdfigbox}% <========================================
        begin{figure}[t!]
        centering
        subfloat[]{includegraphics[width=0.5in]{example-image-a}
        label{fig:Fig1_A}}
        hfil
        subfloat[]{
        includegraphics[width=0.5in]{example-image-b}
        label{fig:Fig1_B}}
        hfil
        subfloat[]{
        includegraphics[width=0.5in]{example-image-c}
        label{fig:Fig1_C}}
        hfil
        subfloat[]{
        includegraphics[width=0.5in]{example-image-a}
        label{fig:Fig1_D}}
        hfil
        subfloat[]{includegraphics[width=0.5in]{example-image-b}
        label{fig:Fig1_E}}
        caption{(a) ${x}^H$, (b) $x^{IVS}$, $(c) x^{FSDD}$, $(d) x^{ENM}$, $(e) x^{SEG}$. Samples of a cropped full face image and several kinds of sub-images.}
        label{fig:Fig1}
        end{figure}
        EOD
        end{document}


        and its compiling result:



        resulting pdf







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 7 at 21:19









        KurtKurt

        38.9k849163




        38.9k849163






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f399600%2fhow-to-insert-first-subfigures-with-caption-in-ieee-access-latex%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            IEEEtran - How to include ORCID in TeX/PDF with PdfLatexIs there a standard way to include ORCID in TeX /...

            Problem using RevTeX4-1 with “! Undefined control sequence. @bibitemShut”Problem with generating...