Problem compiler error about figure/subfigure ' caption using latex IEEE ACCESS template











up vote
5
down vote

favorite
1












In IEEE ACCESS template latex file, there is a example code of "Figure", when inserting pictures into paper.



But I want to use figure and subfigure environment to fit my requirement. So I add usepackage of "subfigure" and "caption", except for losing figure's caption color it works well. If I cancel the usagepackage of "caption", compiler error occurs: "Undefined control sequence. caption{Universe}"



How I can use figure and subfigure which shows correctly and normally(with color caption) in my paper? (I am using MikTex and Texstudio in Windows10)



Following is the source code of latex file and error picture.



enter image description here



IEEE ACCESS template is here.



latex source code:



% !TeX spellcheck = en_US
documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithm}
usepackage{algorithmic}

usepackage{graphicx}
usepackage{subfigure} % support sub-figure

% compiler error without following two lines
%usepackage{caption,setspace}
%captionsetup{font={small,stretch=0.80}}

usepackage{textcomp}
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
Tkern-.1667emlower.7exhbox{E}kern-.125emX}}

begin{document}

begin{abstract}

hese instructions give you guidelines for preparing papers for
IEEE Access. Use this document as a template if you are
using LaTeX. Otherwise, use this document as an
instruction set.
end{abstract}

begin{keywords}
Figure, Float, SubFigure

end{keywords}

titlepgskip=-15pt

section{Introduction}
label{sec:introduction}

PARstart{T}{his} document is a template for LaTeX. If you are
reading a paper or PDF version of this document, please download the
electronic file ref{fig:universe}.

begin{figure}[h!]
centering
includegraphics[scale=1.0]{universe.jpg}
caption{Universe}
label{fig:universe}
end{figure}

EOD

end{document}









share|improve this question
























  • Welcome to TeX.SE!
    – Cragfelt
    Dec 16 '17 at 1:28






  • 1




    Are you forced by a journal using that class? If yes, I think they will not accept papers not using there template, so do not change it ... Ask if you are allowed to change the template ...
    – Kurt
    Dec 17 '17 at 1:58










  • subfigure is obsolete for over ten years.
    – Johannes_B
    Dec 24 '17 at 7:54















up vote
5
down vote

favorite
1












In IEEE ACCESS template latex file, there is a example code of "Figure", when inserting pictures into paper.



But I want to use figure and subfigure environment to fit my requirement. So I add usepackage of "subfigure" and "caption", except for losing figure's caption color it works well. If I cancel the usagepackage of "caption", compiler error occurs: "Undefined control sequence. caption{Universe}"



How I can use figure and subfigure which shows correctly and normally(with color caption) in my paper? (I am using MikTex and Texstudio in Windows10)



Following is the source code of latex file and error picture.



enter image description here



IEEE ACCESS template is here.



latex source code:



% !TeX spellcheck = en_US
documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithm}
usepackage{algorithmic}

usepackage{graphicx}
usepackage{subfigure} % support sub-figure

% compiler error without following two lines
%usepackage{caption,setspace}
%captionsetup{font={small,stretch=0.80}}

usepackage{textcomp}
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
Tkern-.1667emlower.7exhbox{E}kern-.125emX}}

begin{document}

begin{abstract}

hese instructions give you guidelines for preparing papers for
IEEE Access. Use this document as a template if you are
using LaTeX. Otherwise, use this document as an
instruction set.
end{abstract}

begin{keywords}
Figure, Float, SubFigure

end{keywords}

titlepgskip=-15pt

section{Introduction}
label{sec:introduction}

PARstart{T}{his} document is a template for LaTeX. If you are
reading a paper or PDF version of this document, please download the
electronic file ref{fig:universe}.

begin{figure}[h!]
centering
includegraphics[scale=1.0]{universe.jpg}
caption{Universe}
label{fig:universe}
end{figure}

EOD

end{document}









share|improve this question
























  • Welcome to TeX.SE!
    – Cragfelt
    Dec 16 '17 at 1:28






  • 1




    Are you forced by a journal using that class? If yes, I think they will not accept papers not using there template, so do not change it ... Ask if you are allowed to change the template ...
    – Kurt
    Dec 17 '17 at 1:58










  • subfigure is obsolete for over ten years.
    – Johannes_B
    Dec 24 '17 at 7:54













up vote
5
down vote

favorite
1









up vote
5
down vote

favorite
1






1





In IEEE ACCESS template latex file, there is a example code of "Figure", when inserting pictures into paper.



But I want to use figure and subfigure environment to fit my requirement. So I add usepackage of "subfigure" and "caption", except for losing figure's caption color it works well. If I cancel the usagepackage of "caption", compiler error occurs: "Undefined control sequence. caption{Universe}"



How I can use figure and subfigure which shows correctly and normally(with color caption) in my paper? (I am using MikTex and Texstudio in Windows10)



Following is the source code of latex file and error picture.



enter image description here



IEEE ACCESS template is here.



latex source code:



% !TeX spellcheck = en_US
documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithm}
usepackage{algorithmic}

usepackage{graphicx}
usepackage{subfigure} % support sub-figure

% compiler error without following two lines
%usepackage{caption,setspace}
%captionsetup{font={small,stretch=0.80}}

usepackage{textcomp}
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
Tkern-.1667emlower.7exhbox{E}kern-.125emX}}

begin{document}

begin{abstract}

hese instructions give you guidelines for preparing papers for
IEEE Access. Use this document as a template if you are
using LaTeX. Otherwise, use this document as an
instruction set.
end{abstract}

begin{keywords}
Figure, Float, SubFigure

end{keywords}

titlepgskip=-15pt

section{Introduction}
label{sec:introduction}

PARstart{T}{his} document is a template for LaTeX. If you are
reading a paper or PDF version of this document, please download the
electronic file ref{fig:universe}.

begin{figure}[h!]
centering
includegraphics[scale=1.0]{universe.jpg}
caption{Universe}
label{fig:universe}
end{figure}

EOD

end{document}









share|improve this question















In IEEE ACCESS template latex file, there is a example code of "Figure", when inserting pictures into paper.



But I want to use figure and subfigure environment to fit my requirement. So I add usepackage of "subfigure" and "caption", except for losing figure's caption color it works well. If I cancel the usagepackage of "caption", compiler error occurs: "Undefined control sequence. caption{Universe}"



How I can use figure and subfigure which shows correctly and normally(with color caption) in my paper? (I am using MikTex and Texstudio in Windows10)



Following is the source code of latex file and error picture.



enter image description here



IEEE ACCESS template is here.



latex source code:



% !TeX spellcheck = en_US
documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithm}
usepackage{algorithmic}

usepackage{graphicx}
usepackage{subfigure} % support sub-figure

% compiler error without following two lines
%usepackage{caption,setspace}
%captionsetup{font={small,stretch=0.80}}

usepackage{textcomp}
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
Tkern-.1667emlower.7exhbox{E}kern-.125emX}}

begin{document}

begin{abstract}

hese instructions give you guidelines for preparing papers for
IEEE Access. Use this document as a template if you are
using LaTeX. Otherwise, use this document as an
instruction set.
end{abstract}

begin{keywords}
Figure, Float, SubFigure

end{keywords}

titlepgskip=-15pt

section{Introduction}
label{sec:introduction}

PARstart{T}{his} document is a template for LaTeX. If you are
reading a paper or PDF version of this document, please download the
electronic file ref{fig:universe}.

begin{figure}[h!]
centering
includegraphics[scale=1.0]{universe.jpg}
caption{Universe}
label{fig:universe}
end{figure}

EOD

end{document}






floats captions templates subfig






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 17 '17 at 17:43









engineer

5361413




5361413










asked Dec 16 '17 at 1:14









Wangwang

284




284












  • Welcome to TeX.SE!
    – Cragfelt
    Dec 16 '17 at 1:28






  • 1




    Are you forced by a journal using that class? If yes, I think they will not accept papers not using there template, so do not change it ... Ask if you are allowed to change the template ...
    – Kurt
    Dec 17 '17 at 1:58










  • subfigure is obsolete for over ten years.
    – Johannes_B
    Dec 24 '17 at 7:54


















  • Welcome to TeX.SE!
    – Cragfelt
    Dec 16 '17 at 1:28






  • 1




    Are you forced by a journal using that class? If yes, I think they will not accept papers not using there template, so do not change it ... Ask if you are allowed to change the template ...
    – Kurt
    Dec 17 '17 at 1:58










  • subfigure is obsolete for over ten years.
    – Johannes_B
    Dec 24 '17 at 7:54
















Welcome to TeX.SE!
– Cragfelt
Dec 16 '17 at 1:28




Welcome to TeX.SE!
– Cragfelt
Dec 16 '17 at 1:28




1




1




Are you forced by a journal using that class? If yes, I think they will not accept papers not using there template, so do not change it ... Ask if you are allowed to change the template ...
– Kurt
Dec 17 '17 at 1:58




Are you forced by a journal using that class? If yes, I think they will not accept papers not using there template, so do not change it ... Ask if you are allowed to change the template ...
– Kurt
Dec 17 '17 at 1:58












subfigure is obsolete for over ten years.
– Johannes_B
Dec 24 '17 at 7:54




subfigure is obsolete for over ten years.
– Johannes_B
Dec 24 '17 at 7:54










3 Answers
3






active

oldest

votes

















up vote
3
down vote



accepted










If you are allowed to change the template, you can use the labelfont key in captionsetup to set the color. Finding the latter took some digging in the code of the class. I also took the freedom to set the fonts according to the template (sf and bf).



enter image description here



The code:



% !TeX spellcheck = en_US
documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
%usepackage{algorithm}
%usepackage{algorithmic}

usepackage{graphicx}
usepackage{subfigure} % support sub-figure

% compiler error without following two lines
usepackage{caption,setspace}
captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}

usepackage{textcomp}
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
Tkern-.1667emlower.7exhbox{E}kern-.125emX}}

begin{document}

begin{abstract}

hese instructions give you guidelines for preparing papers for
IEEE Access. Use this document as a template if you are
using LaTeX. Otherwise, use this document as an
instruction set.
end{abstract}

begin{keywords}
Figure, Float, SubFigure

end{keywords}

titlepgskip=-15pt

section{Introduction}
label{sec:introduction}

PARstart{T}{his} document is a template for LaTeX. If you are
reading a paper or PDF version of this document, please download the
electronic file ref{fig:universe}.

begin{figure}[h!]
centering
includegraphics[scale=0.2]{example-image.png}
caption{Universe}
label{fig:universe}
end{figure}

Figure[h]()[scale=0.2]{example-image.png}{Universe}

EOD

end{document}





share|improve this answer

















  • 2




    subfigure is obsolete package.its supersede is subfig. or use subcaption.
    – Zarko
    Dec 17 '17 at 18:13


















up vote
4
down vote













They provide a new command to handle the images in IEEE Access. I show you an example.



Figure[!t]()[width=0.95textwidth]{imageName}
{Caption.label{fig:label}}


This command puts the image using two columns or one column automatically. It depends on the figure's dimension. If it is lower than 50%, the figure is put in one column, else in two columns.






share|improve this answer






























    up vote
    2
    down vote













    for plotting subfigures i used the code in the IEEE access template and it works. I included the following packages



    usepackage{cite}
    usepackage{amsmath,amssymb,amsfonts}
    usepackage{algorithmic}
    usepackage{graphicx}
    usepackage[caption=false]{subfig}
    usepackage{caption,setspace}
    captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}
    usepackage{textcomp}
    defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
    Tkern-.1667emlower.7exhbox{E}kern-.125emX}}


    begin{figure*}[!t]
    centering
    %vspace*{-.02in}
    subfloat[Performance comparison when x=t]{
    hspace*{-.1in}
    includegraphics[scale=0.33]{fig1.pdf}
    hspace*{-.1in}
    includegraphics[scale=0.33]{fig2.pdf}
    label{p_D_req_100}
    }
    % vspace*{-.14in}
    hfill
    subfloat[Performance comparison when x=u]{
    hspace*{-.1in}
    includegraphics[scale=0.33]{fig3.pdf}
    hspace*{-.1in}
    includegraphics[scale=0.33]{fig4.pdf}
    label{p_D_req_400}
    }
    % vspace*{-.14in}
    hfill
    subfloat[Performance comparison when x=z]{
    hspace*{-.1in}
    includegraphics[scale=0.33]{fig5.pdf}
    hspace*{-.1in}
    includegraphics[scale=0.33]{fig6.pdf}
    label{p_D_req_1000}
    }
    caption{the EE (left) and xxxx (right) of cat cat cat load.}
    label{fig:p_graph}
    end{figure*}





    share|improve this answer























    • Welcome to TeX.Stackexchange!
      – samcarter
      Jun 21 at 19:20











    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',
    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%2f406408%2fproblem-compiler-error-about-figure-subfigure-caption-using-latex-ieee-access%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote



    accepted










    If you are allowed to change the template, you can use the labelfont key in captionsetup to set the color. Finding the latter took some digging in the code of the class. I also took the freedom to set the fonts according to the template (sf and bf).



    enter image description here



    The code:



    % !TeX spellcheck = en_US
    documentclass{ieeeaccess}
    usepackage{cite}
    usepackage{amsmath,amssymb,amsfonts}
    %usepackage{algorithm}
    %usepackage{algorithmic}

    usepackage{graphicx}
    usepackage{subfigure} % support sub-figure

    % compiler error without following two lines
    usepackage{caption,setspace}
    captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}

    usepackage{textcomp}
    defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
    Tkern-.1667emlower.7exhbox{E}kern-.125emX}}

    begin{document}

    begin{abstract}

    hese instructions give you guidelines for preparing papers for
    IEEE Access. Use this document as a template if you are
    using LaTeX. Otherwise, use this document as an
    instruction set.
    end{abstract}

    begin{keywords}
    Figure, Float, SubFigure

    end{keywords}

    titlepgskip=-15pt

    section{Introduction}
    label{sec:introduction}

    PARstart{T}{his} document is a template for LaTeX. If you are
    reading a paper or PDF version of this document, please download the
    electronic file ref{fig:universe}.

    begin{figure}[h!]
    centering
    includegraphics[scale=0.2]{example-image.png}
    caption{Universe}
    label{fig:universe}
    end{figure}

    Figure[h]()[scale=0.2]{example-image.png}{Universe}

    EOD

    end{document}





    share|improve this answer

















    • 2




      subfigure is obsolete package.its supersede is subfig. or use subcaption.
      – Zarko
      Dec 17 '17 at 18:13















    up vote
    3
    down vote



    accepted










    If you are allowed to change the template, you can use the labelfont key in captionsetup to set the color. Finding the latter took some digging in the code of the class. I also took the freedom to set the fonts according to the template (sf and bf).



    enter image description here



    The code:



    % !TeX spellcheck = en_US
    documentclass{ieeeaccess}
    usepackage{cite}
    usepackage{amsmath,amssymb,amsfonts}
    %usepackage{algorithm}
    %usepackage{algorithmic}

    usepackage{graphicx}
    usepackage{subfigure} % support sub-figure

    % compiler error without following two lines
    usepackage{caption,setspace}
    captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}

    usepackage{textcomp}
    defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
    Tkern-.1667emlower.7exhbox{E}kern-.125emX}}

    begin{document}

    begin{abstract}

    hese instructions give you guidelines for preparing papers for
    IEEE Access. Use this document as a template if you are
    using LaTeX. Otherwise, use this document as an
    instruction set.
    end{abstract}

    begin{keywords}
    Figure, Float, SubFigure

    end{keywords}

    titlepgskip=-15pt

    section{Introduction}
    label{sec:introduction}

    PARstart{T}{his} document is a template for LaTeX. If you are
    reading a paper or PDF version of this document, please download the
    electronic file ref{fig:universe}.

    begin{figure}[h!]
    centering
    includegraphics[scale=0.2]{example-image.png}
    caption{Universe}
    label{fig:universe}
    end{figure}

    Figure[h]()[scale=0.2]{example-image.png}{Universe}

    EOD

    end{document}





    share|improve this answer

















    • 2




      subfigure is obsolete package.its supersede is subfig. or use subcaption.
      – Zarko
      Dec 17 '17 at 18:13













    up vote
    3
    down vote



    accepted







    up vote
    3
    down vote



    accepted






    If you are allowed to change the template, you can use the labelfont key in captionsetup to set the color. Finding the latter took some digging in the code of the class. I also took the freedom to set the fonts according to the template (sf and bf).



    enter image description here



    The code:



    % !TeX spellcheck = en_US
    documentclass{ieeeaccess}
    usepackage{cite}
    usepackage{amsmath,amssymb,amsfonts}
    %usepackage{algorithm}
    %usepackage{algorithmic}

    usepackage{graphicx}
    usepackage{subfigure} % support sub-figure

    % compiler error without following two lines
    usepackage{caption,setspace}
    captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}

    usepackage{textcomp}
    defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
    Tkern-.1667emlower.7exhbox{E}kern-.125emX}}

    begin{document}

    begin{abstract}

    hese instructions give you guidelines for preparing papers for
    IEEE Access. Use this document as a template if you are
    using LaTeX. Otherwise, use this document as an
    instruction set.
    end{abstract}

    begin{keywords}
    Figure, Float, SubFigure

    end{keywords}

    titlepgskip=-15pt

    section{Introduction}
    label{sec:introduction}

    PARstart{T}{his} document is a template for LaTeX. If you are
    reading a paper or PDF version of this document, please download the
    electronic file ref{fig:universe}.

    begin{figure}[h!]
    centering
    includegraphics[scale=0.2]{example-image.png}
    caption{Universe}
    label{fig:universe}
    end{figure}

    Figure[h]()[scale=0.2]{example-image.png}{Universe}

    EOD

    end{document}





    share|improve this answer












    If you are allowed to change the template, you can use the labelfont key in captionsetup to set the color. Finding the latter took some digging in the code of the class. I also took the freedom to set the fonts according to the template (sf and bf).



    enter image description here



    The code:



    % !TeX spellcheck = en_US
    documentclass{ieeeaccess}
    usepackage{cite}
    usepackage{amsmath,amssymb,amsfonts}
    %usepackage{algorithm}
    %usepackage{algorithmic}

    usepackage{graphicx}
    usepackage{subfigure} % support sub-figure

    % compiler error without following two lines
    usepackage{caption,setspace}
    captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}

    usepackage{textcomp}
    defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
    Tkern-.1667emlower.7exhbox{E}kern-.125emX}}

    begin{document}

    begin{abstract}

    hese instructions give you guidelines for preparing papers for
    IEEE Access. Use this document as a template if you are
    using LaTeX. Otherwise, use this document as an
    instruction set.
    end{abstract}

    begin{keywords}
    Figure, Float, SubFigure

    end{keywords}

    titlepgskip=-15pt

    section{Introduction}
    label{sec:introduction}

    PARstart{T}{his} document is a template for LaTeX. If you are
    reading a paper or PDF version of this document, please download the
    electronic file ref{fig:universe}.

    begin{figure}[h!]
    centering
    includegraphics[scale=0.2]{example-image.png}
    caption{Universe}
    label{fig:universe}
    end{figure}

    Figure[h]()[scale=0.2]{example-image.png}{Universe}

    EOD

    end{document}






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 17 '17 at 0:57









    Mike

    7,6041717




    7,6041717








    • 2




      subfigure is obsolete package.its supersede is subfig. or use subcaption.
      – Zarko
      Dec 17 '17 at 18:13














    • 2




      subfigure is obsolete package.its supersede is subfig. or use subcaption.
      – Zarko
      Dec 17 '17 at 18:13








    2




    2




    subfigure is obsolete package.its supersede is subfig. or use subcaption.
    – Zarko
    Dec 17 '17 at 18:13




    subfigure is obsolete package.its supersede is subfig. or use subcaption.
    – Zarko
    Dec 17 '17 at 18:13










    up vote
    4
    down vote













    They provide a new command to handle the images in IEEE Access. I show you an example.



    Figure[!t]()[width=0.95textwidth]{imageName}
    {Caption.label{fig:label}}


    This command puts the image using two columns or one column automatically. It depends on the figure's dimension. If it is lower than 50%, the figure is put in one column, else in two columns.






    share|improve this answer



























      up vote
      4
      down vote













      They provide a new command to handle the images in IEEE Access. I show you an example.



      Figure[!t]()[width=0.95textwidth]{imageName}
      {Caption.label{fig:label}}


      This command puts the image using two columns or one column automatically. It depends on the figure's dimension. If it is lower than 50%, the figure is put in one column, else in two columns.






      share|improve this answer

























        up vote
        4
        down vote










        up vote
        4
        down vote









        They provide a new command to handle the images in IEEE Access. I show you an example.



        Figure[!t]()[width=0.95textwidth]{imageName}
        {Caption.label{fig:label}}


        This command puts the image using two columns or one column automatically. It depends on the figure's dimension. If it is lower than 50%, the figure is put in one column, else in two columns.






        share|improve this answer














        They provide a new command to handle the images in IEEE Access. I show you an example.



        Figure[!t]()[width=0.95textwidth]{imageName}
        {Caption.label{fig:label}}


        This command puts the image using two columns or one column automatically. It depends on the figure's dimension. If it is lower than 50%, the figure is put in one column, else in two columns.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Jun 6 at 10:12









        naphaneal

        2,1281927




        2,1281927










        answered Jun 6 at 9:20









        Pedro A. Marin-Reyes

        411




        411






















            up vote
            2
            down vote













            for plotting subfigures i used the code in the IEEE access template and it works. I included the following packages



            usepackage{cite}
            usepackage{amsmath,amssymb,amsfonts}
            usepackage{algorithmic}
            usepackage{graphicx}
            usepackage[caption=false]{subfig}
            usepackage{caption,setspace}
            captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}
            usepackage{textcomp}
            defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
            Tkern-.1667emlower.7exhbox{E}kern-.125emX}}


            begin{figure*}[!t]
            centering
            %vspace*{-.02in}
            subfloat[Performance comparison when x=t]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig1.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig2.pdf}
            label{p_D_req_100}
            }
            % vspace*{-.14in}
            hfill
            subfloat[Performance comparison when x=u]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig3.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig4.pdf}
            label{p_D_req_400}
            }
            % vspace*{-.14in}
            hfill
            subfloat[Performance comparison when x=z]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig5.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig6.pdf}
            label{p_D_req_1000}
            }
            caption{the EE (left) and xxxx (right) of cat cat cat load.}
            label{fig:p_graph}
            end{figure*}





            share|improve this answer























            • Welcome to TeX.Stackexchange!
              – samcarter
              Jun 21 at 19:20















            up vote
            2
            down vote













            for plotting subfigures i used the code in the IEEE access template and it works. I included the following packages



            usepackage{cite}
            usepackage{amsmath,amssymb,amsfonts}
            usepackage{algorithmic}
            usepackage{graphicx}
            usepackage[caption=false]{subfig}
            usepackage{caption,setspace}
            captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}
            usepackage{textcomp}
            defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
            Tkern-.1667emlower.7exhbox{E}kern-.125emX}}


            begin{figure*}[!t]
            centering
            %vspace*{-.02in}
            subfloat[Performance comparison when x=t]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig1.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig2.pdf}
            label{p_D_req_100}
            }
            % vspace*{-.14in}
            hfill
            subfloat[Performance comparison when x=u]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig3.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig4.pdf}
            label{p_D_req_400}
            }
            % vspace*{-.14in}
            hfill
            subfloat[Performance comparison when x=z]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig5.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig6.pdf}
            label{p_D_req_1000}
            }
            caption{the EE (left) and xxxx (right) of cat cat cat load.}
            label{fig:p_graph}
            end{figure*}





            share|improve this answer























            • Welcome to TeX.Stackexchange!
              – samcarter
              Jun 21 at 19:20













            up vote
            2
            down vote










            up vote
            2
            down vote









            for plotting subfigures i used the code in the IEEE access template and it works. I included the following packages



            usepackage{cite}
            usepackage{amsmath,amssymb,amsfonts}
            usepackage{algorithmic}
            usepackage{graphicx}
            usepackage[caption=false]{subfig}
            usepackage{caption,setspace}
            captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}
            usepackage{textcomp}
            defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
            Tkern-.1667emlower.7exhbox{E}kern-.125emX}}


            begin{figure*}[!t]
            centering
            %vspace*{-.02in}
            subfloat[Performance comparison when x=t]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig1.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig2.pdf}
            label{p_D_req_100}
            }
            % vspace*{-.14in}
            hfill
            subfloat[Performance comparison when x=u]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig3.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig4.pdf}
            label{p_D_req_400}
            }
            % vspace*{-.14in}
            hfill
            subfloat[Performance comparison when x=z]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig5.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig6.pdf}
            label{p_D_req_1000}
            }
            caption{the EE (left) and xxxx (right) of cat cat cat load.}
            label{fig:p_graph}
            end{figure*}





            share|improve this answer














            for plotting subfigures i used the code in the IEEE access template and it works. I included the following packages



            usepackage{cite}
            usepackage{amsmath,amssymb,amsfonts}
            usepackage{algorithmic}
            usepackage{graphicx}
            usepackage[caption=false]{subfig}
            usepackage{caption,setspace}
            captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}
            usepackage{textcomp}
            defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
            Tkern-.1667emlower.7exhbox{E}kern-.125emX}}


            begin{figure*}[!t]
            centering
            %vspace*{-.02in}
            subfloat[Performance comparison when x=t]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig1.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig2.pdf}
            label{p_D_req_100}
            }
            % vspace*{-.14in}
            hfill
            subfloat[Performance comparison when x=u]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig3.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig4.pdf}
            label{p_D_req_400}
            }
            % vspace*{-.14in}
            hfill
            subfloat[Performance comparison when x=z]{
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig5.pdf}
            hspace*{-.1in}
            includegraphics[scale=0.33]{fig6.pdf}
            label{p_D_req_1000}
            }
            caption{the EE (left) and xxxx (right) of cat cat cat load.}
            label{fig:p_graph}
            end{figure*}






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jun 21 at 20:25

























            answered Jun 21 at 7:58









            S.N

            212




            212












            • Welcome to TeX.Stackexchange!
              – samcarter
              Jun 21 at 19:20


















            • Welcome to TeX.Stackexchange!
              – samcarter
              Jun 21 at 19:20
















            Welcome to TeX.Stackexchange!
            – samcarter
            Jun 21 at 19:20




            Welcome to TeX.Stackexchange!
            – samcarter
            Jun 21 at 19:20


















             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f406408%2fproblem-compiler-error-about-figure-subfigure-caption-using-latex-ieee-access%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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?