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

Multi tool use
What would be the most expensive material to an intergalactic society?
How to educate team mate to take screenshots for bugs with out unwanted stuff
I am the person who abides by rules, but breaks the rules. Who am I?
What was so special about The Piano that Ada was willing to do anything to have it?
Volume of hyperbola revolved about the y -axis
Was it really inappropriate to write a pull request for the company I interviewed with?
Should I apply for my boss's promotion?
Why restrict private health insurance?
How exactly does an Ethernet collision happen in the cable, since nodes use different circuits for Tx and Rx?
Which country has more?
If sound is a longitudinal wave, why can we hear it if our ears aren't aligned with the propagation direction?
What do you call someone who likes to pick fights?
How can a demon take control of a human body during REM sleep?
Has a sovereign Communist government ever run, and conceded loss, on a fair election?
Cycles on the torus
Doublet with ladder line vs coax w.r.t. noise
Is there stress on two letters on the word стоят
Finding the minimum value of a function without using Calculus
Boss Telling direct supervisor I snitched
Can you train your ranger to master different fighting styles?
Prove this function has at most two zero points
Is it a Cyclops number? "Nobody" knows!
Professor forcing me to attend a conference, I can't afford even with 50% funding
Are small insurances worth it?
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
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
bumped to the homepage by Community♦ 2 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
|
show 1 more comment
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
bumped to the homepage by Community♦ 2 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
|
show 1 more comment
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
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
floats
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♦ 2 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♦ 2 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
|
show 1 more comment
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
|
show 1 more comment
2 Answers
2
active
oldest
votes
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.
Welcome to TeX.SE!
– Kurt
Feb 7 at 18:44
Please see my added answer.
– Kurt
Feb 7 at 21:22
add a comment |
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:
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Welcome to TeX.SE!
– Kurt
Feb 7 at 18:44
Please see my added answer.
– Kurt
Feb 7 at 21:22
add a comment |
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.
Welcome to TeX.SE!
– Kurt
Feb 7 at 18:44
Please see my added answer.
– Kurt
Feb 7 at 21:22
add a comment |
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.
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.
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
add a comment |
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
add a comment |
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:
add a comment |
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:
add a comment |
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:
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:
answered Feb 7 at 21:19


KurtKurt
38.9k849163
38.9k849163
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
M2DXvQaOY7qoAixbvtvzIRxAkor2,2L7cZy33Y wOcFtfj5SILInl i9gmwlu69VWAl QDuytygVFVJ4Zl r4uUzjw
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