Caption of subfigure is not centering












0















I am transferring my data on IEEE access latex format. It is a two-column format and I have to put 6 subfigures (two in a row). For importing these sub-figures, I made a page in a single column by using figure float option (figure*). But the caption is not coming in a centre of subfigure and also subfigures are not coming at the right place of the page.
Please see the code and image for further details:



documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithm}
%usepackage{algorithmic}

usepackage{algpseudocode}
usepackage{multirow}
usepackage{graphicx}
%usepackage{subfigure}
usepackage[caption=false]{subfig}
usepackage{caption,setspace}
captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}
usepackage{textcomp}
%usepackage{subfig}
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
Tkern-.1667emlower.7exhbox{E}kern-.125emX}}
begin{document}
begin{figure*}[t!]
centering
subfloat
{
centering
includegraphics[width=0.6textwidth]{RHKNN.eps}
label{fig:a1}
}
centering
subfloat{
includegraphics[width=0.6textwidth]{LHKNN.eps}
label{fig:b1}

}



caption[A set of six sub figures.]{The impact of xyz on ABC at:
textbf{subref{fig:a1}} A by using ABC;
textbf{subref{fig:b1}} B position by using DEF;

}
label{fig 4:gr2}
end{figure*}
EOD
end{document}


Please help me out to this problem, specifically, how captions would come at center? secondly, how to both subfigures comes in the middle of page (look decent)?enter image description here










share|improve this question




















  • 1





    As far as I can see, you should not use begin{figure} in the class, but only the Figure command, which doesn't accept subfloats.

    – egreg
    Jan 6 at 11:59











  • @egreg I have tried Figure but could not successfull to import subfigures so I tried subfloat with figure

    – Nafees Ahmed
    Jan 6 at 12:25






  • 1





    If you use the subfig package, you probably shouldn't use the caption package. Conversely, if you wish to use the caption package, you should be loading the subcaption package instead of the subfig package.

    – Mico
    Jan 6 at 13:59











  • @Mico yes your comment worked. Thank you so much for the help.

    – Nafees Ahmed
    Jan 7 at 8:30
















0















I am transferring my data on IEEE access latex format. It is a two-column format and I have to put 6 subfigures (two in a row). For importing these sub-figures, I made a page in a single column by using figure float option (figure*). But the caption is not coming in a centre of subfigure and also subfigures are not coming at the right place of the page.
Please see the code and image for further details:



documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithm}
%usepackage{algorithmic}

usepackage{algpseudocode}
usepackage{multirow}
usepackage{graphicx}
%usepackage{subfigure}
usepackage[caption=false]{subfig}
usepackage{caption,setspace}
captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}
usepackage{textcomp}
%usepackage{subfig}
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
Tkern-.1667emlower.7exhbox{E}kern-.125emX}}
begin{document}
begin{figure*}[t!]
centering
subfloat
{
centering
includegraphics[width=0.6textwidth]{RHKNN.eps}
label{fig:a1}
}
centering
subfloat{
includegraphics[width=0.6textwidth]{LHKNN.eps}
label{fig:b1}

}



caption[A set of six sub figures.]{The impact of xyz on ABC at:
textbf{subref{fig:a1}} A by using ABC;
textbf{subref{fig:b1}} B position by using DEF;

}
label{fig 4:gr2}
end{figure*}
EOD
end{document}


Please help me out to this problem, specifically, how captions would come at center? secondly, how to both subfigures comes in the middle of page (look decent)?enter image description here










share|improve this question




















  • 1





    As far as I can see, you should not use begin{figure} in the class, but only the Figure command, which doesn't accept subfloats.

    – egreg
    Jan 6 at 11:59











  • @egreg I have tried Figure but could not successfull to import subfigures so I tried subfloat with figure

    – Nafees Ahmed
    Jan 6 at 12:25






  • 1





    If you use the subfig package, you probably shouldn't use the caption package. Conversely, if you wish to use the caption package, you should be loading the subcaption package instead of the subfig package.

    – Mico
    Jan 6 at 13:59











  • @Mico yes your comment worked. Thank you so much for the help.

    – Nafees Ahmed
    Jan 7 at 8:30














0












0








0


0






I am transferring my data on IEEE access latex format. It is a two-column format and I have to put 6 subfigures (two in a row). For importing these sub-figures, I made a page in a single column by using figure float option (figure*). But the caption is not coming in a centre of subfigure and also subfigures are not coming at the right place of the page.
Please see the code and image for further details:



documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithm}
%usepackage{algorithmic}

usepackage{algpseudocode}
usepackage{multirow}
usepackage{graphicx}
%usepackage{subfigure}
usepackage[caption=false]{subfig}
usepackage{caption,setspace}
captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}
usepackage{textcomp}
%usepackage{subfig}
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
Tkern-.1667emlower.7exhbox{E}kern-.125emX}}
begin{document}
begin{figure*}[t!]
centering
subfloat
{
centering
includegraphics[width=0.6textwidth]{RHKNN.eps}
label{fig:a1}
}
centering
subfloat{
includegraphics[width=0.6textwidth]{LHKNN.eps}
label{fig:b1}

}



caption[A set of six sub figures.]{The impact of xyz on ABC at:
textbf{subref{fig:a1}} A by using ABC;
textbf{subref{fig:b1}} B position by using DEF;

}
label{fig 4:gr2}
end{figure*}
EOD
end{document}


Please help me out to this problem, specifically, how captions would come at center? secondly, how to both subfigures comes in the middle of page (look decent)?enter image description here










share|improve this question
















I am transferring my data on IEEE access latex format. It is a two-column format and I have to put 6 subfigures (two in a row). For importing these sub-figures, I made a page in a single column by using figure float option (figure*). But the caption is not coming in a centre of subfigure and also subfigures are not coming at the right place of the page.
Please see the code and image for further details:



documentclass{ieeeaccess}
usepackage{cite}
usepackage{amsmath,amssymb,amsfonts}
usepackage{algorithm}
%usepackage{algorithmic}

usepackage{algpseudocode}
usepackage{multirow}
usepackage{graphicx}
%usepackage{subfigure}
usepackage[caption=false]{subfig}
usepackage{caption,setspace}
captionsetup{font={sf,small,stretch=0.80},labelfont={bf,color=accessblue}}
usepackage{textcomp}
%usepackage{subfig}
defBibTeX{{rm Bkern-.05em{sc ikern-.025em b}kern-.08em
Tkern-.1667emlower.7exhbox{E}kern-.125emX}}
begin{document}
begin{figure*}[t!]
centering
subfloat
{
centering
includegraphics[width=0.6textwidth]{RHKNN.eps}
label{fig:a1}
}
centering
subfloat{
includegraphics[width=0.6textwidth]{LHKNN.eps}
label{fig:b1}

}



caption[A set of six sub figures.]{The impact of xyz on ABC at:
textbf{subref{fig:a1}} A by using ABC;
textbf{subref{fig:b1}} B position by using DEF;

}
label{fig 4:gr2}
end{figure*}
EOD
end{document}


Please help me out to this problem, specifically, how captions would come at center? secondly, how to both subfigures comes in the middle of page (look decent)?enter image description here







formatting subfloats ieee-style subfig






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 6 at 13:57









Mico

275k30372759




275k30372759










asked Jan 6 at 11:13









Nafees AhmedNafees Ahmed

456




456








  • 1





    As far as I can see, you should not use begin{figure} in the class, but only the Figure command, which doesn't accept subfloats.

    – egreg
    Jan 6 at 11:59











  • @egreg I have tried Figure but could not successfull to import subfigures so I tried subfloat with figure

    – Nafees Ahmed
    Jan 6 at 12:25






  • 1





    If you use the subfig package, you probably shouldn't use the caption package. Conversely, if you wish to use the caption package, you should be loading the subcaption package instead of the subfig package.

    – Mico
    Jan 6 at 13:59











  • @Mico yes your comment worked. Thank you so much for the help.

    – Nafees Ahmed
    Jan 7 at 8:30














  • 1





    As far as I can see, you should not use begin{figure} in the class, but only the Figure command, which doesn't accept subfloats.

    – egreg
    Jan 6 at 11:59











  • @egreg I have tried Figure but could not successfull to import subfigures so I tried subfloat with figure

    – Nafees Ahmed
    Jan 6 at 12:25






  • 1





    If you use the subfig package, you probably shouldn't use the caption package. Conversely, if you wish to use the caption package, you should be loading the subcaption package instead of the subfig package.

    – Mico
    Jan 6 at 13:59











  • @Mico yes your comment worked. Thank you so much for the help.

    – Nafees Ahmed
    Jan 7 at 8:30








1




1





As far as I can see, you should not use begin{figure} in the class, but only the Figure command, which doesn't accept subfloats.

– egreg
Jan 6 at 11:59





As far as I can see, you should not use begin{figure} in the class, but only the Figure command, which doesn't accept subfloats.

– egreg
Jan 6 at 11:59













@egreg I have tried Figure but could not successfull to import subfigures so I tried subfloat with figure

– Nafees Ahmed
Jan 6 at 12:25





@egreg I have tried Figure but could not successfull to import subfigures so I tried subfloat with figure

– Nafees Ahmed
Jan 6 at 12:25




1




1





If you use the subfig package, you probably shouldn't use the caption package. Conversely, if you wish to use the caption package, you should be loading the subcaption package instead of the subfig package.

– Mico
Jan 6 at 13:59





If you use the subfig package, you probably shouldn't use the caption package. Conversely, if you wish to use the caption package, you should be loading the subcaption package instead of the subfig package.

– Mico
Jan 6 at 13:59













@Mico yes your comment worked. Thank you so much for the help.

– Nafees Ahmed
Jan 7 at 8:30





@Mico yes your comment worked. Thank you so much for the help.

– Nafees Ahmed
Jan 7 at 8:30










0






active

oldest

votes











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%2f468813%2fcaption-of-subfigure-is-not-centering%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f468813%2fcaption-of-subfigure-is-not-centering%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

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?