Using subfigure and creating two rows of figures?
I am trying to get two rows with two figures in each row using subfigure, but I keep getting errors for this.
documentclass[demo]{article} % remove 'demo' option in real document
usepackage{graphicx,subcaption}
begin{document}
begin{figure}
begin{subfigure}[0.45textwidth]
includegraphics[width=textwidth]{long_pneumonic.jpg}
caption{Pre-vaccination susceptible and infected
population$alpha=0.000015, beta=0.0027, delta=.002, sigma=1/3,
Delta=3/4, r=1/5$.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic2.jpg}
caption{Transient loops of the infected and susceptible population
changes.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic3.jpg}
caption{The population of susceptible individuals and infected
individuals over a period of 1500 days post-vaccination.
$alpha=0.000015, beta=0.0027, delta=.002, sigma=1/3, Delta=3/4,
r=1/5$.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic4.jpg}
caption{[A graph showing the rise and decrease of pneumonic plague
victims leading to increasing amounts of infected with each recurrence
post-vaccination.}
end{subfigure}
caption{Graphs comparing and contrasting the same parameters examining the
dynamics of the susceptible and infected populations pre and post
vaccinations.}
end{figure}
end{document}
graphics subcaption
New contributor
Ian Lynch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
|
show 4 more comments
I am trying to get two rows with two figures in each row using subfigure, but I keep getting errors for this.
documentclass[demo]{article} % remove 'demo' option in real document
usepackage{graphicx,subcaption}
begin{document}
begin{figure}
begin{subfigure}[0.45textwidth]
includegraphics[width=textwidth]{long_pneumonic.jpg}
caption{Pre-vaccination susceptible and infected
population$alpha=0.000015, beta=0.0027, delta=.002, sigma=1/3,
Delta=3/4, r=1/5$.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic2.jpg}
caption{Transient loops of the infected and susceptible population
changes.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic3.jpg}
caption{The population of susceptible individuals and infected
individuals over a period of 1500 days post-vaccination.
$alpha=0.000015, beta=0.0027, delta=.002, sigma=1/3, Delta=3/4,
r=1/5$.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic4.jpg}
caption{[A graph showing the rise and decrease of pneumonic plague
victims leading to increasing amounts of infected with each recurrence
post-vaccination.}
end{subfigure}
caption{Graphs comparing and contrasting the same parameters examining the
dynamics of the susceptible and infected populations pre and post
vaccinations.}
end{figure}
end{document}
graphics subcaption
New contributor
Ian Lynch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to TeX.SE. I suggest you start by replacingbegin{subfigure}[0.45textwidth]withbegin{subfigure}{0.45textwidth}in the firstsubfigureenvironment.
– Mico
6 hours ago
I've taken the liberty of adding some code at the top and bottom of the code block in order to make it compilable. Feel free to revert.
– Mico
6 hours ago
1
Doing that, it stops and tells me there is an error in that line
– Ian Lynch
6 hours ago
And what might that error be? (Sorry, my psychic skills are badly underdeveloped...)
– Mico
6 hours ago
! Missing number, treated as zero. <to be read again> } l.544 begin{subfigure}[t]{0.45linewidth} ?
– Ian Lynch
5 hours ago
|
show 4 more comments
I am trying to get two rows with two figures in each row using subfigure, but I keep getting errors for this.
documentclass[demo]{article} % remove 'demo' option in real document
usepackage{graphicx,subcaption}
begin{document}
begin{figure}
begin{subfigure}[0.45textwidth]
includegraphics[width=textwidth]{long_pneumonic.jpg}
caption{Pre-vaccination susceptible and infected
population$alpha=0.000015, beta=0.0027, delta=.002, sigma=1/3,
Delta=3/4, r=1/5$.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic2.jpg}
caption{Transient loops of the infected and susceptible population
changes.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic3.jpg}
caption{The population of susceptible individuals and infected
individuals over a period of 1500 days post-vaccination.
$alpha=0.000015, beta=0.0027, delta=.002, sigma=1/3, Delta=3/4,
r=1/5$.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic4.jpg}
caption{[A graph showing the rise and decrease of pneumonic plague
victims leading to increasing amounts of infected with each recurrence
post-vaccination.}
end{subfigure}
caption{Graphs comparing and contrasting the same parameters examining the
dynamics of the susceptible and infected populations pre and post
vaccinations.}
end{figure}
end{document}
graphics subcaption
New contributor
Ian Lynch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am trying to get two rows with two figures in each row using subfigure, but I keep getting errors for this.
documentclass[demo]{article} % remove 'demo' option in real document
usepackage{graphicx,subcaption}
begin{document}
begin{figure}
begin{subfigure}[0.45textwidth]
includegraphics[width=textwidth]{long_pneumonic.jpg}
caption{Pre-vaccination susceptible and infected
population$alpha=0.000015, beta=0.0027, delta=.002, sigma=1/3,
Delta=3/4, r=1/5$.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic2.jpg}
caption{Transient loops of the infected and susceptible population
changes.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic3.jpg}
caption{The population of susceptible individuals and infected
individuals over a period of 1500 days post-vaccination.
$alpha=0.000015, beta=0.0027, delta=.002, sigma=1/3, Delta=3/4,
r=1/5$.}
end{subfigure}
begin{subfigure}{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic4.jpg}
caption{[A graph showing the rise and decrease of pneumonic plague
victims leading to increasing amounts of infected with each recurrence
post-vaccination.}
end{subfigure}
caption{Graphs comparing and contrasting the same parameters examining the
dynamics of the susceptible and infected populations pre and post
vaccinations.}
end{figure}
end{document}
graphics subcaption
graphics subcaption
New contributor
Ian Lynch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Ian Lynch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
edited 6 hours ago
Mico
279k31380769
279k31380769
New contributor
Ian Lynch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 6 hours ago
Ian LynchIan Lynch
211
211
New contributor
Ian Lynch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Ian Lynch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Ian Lynch is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Welcome to TeX.SE. I suggest you start by replacingbegin{subfigure}[0.45textwidth]withbegin{subfigure}{0.45textwidth}in the firstsubfigureenvironment.
– Mico
6 hours ago
I've taken the liberty of adding some code at the top and bottom of the code block in order to make it compilable. Feel free to revert.
– Mico
6 hours ago
1
Doing that, it stops and tells me there is an error in that line
– Ian Lynch
6 hours ago
And what might that error be? (Sorry, my psychic skills are badly underdeveloped...)
– Mico
6 hours ago
! Missing number, treated as zero. <to be read again> } l.544 begin{subfigure}[t]{0.45linewidth} ?
– Ian Lynch
5 hours ago
|
show 4 more comments
Welcome to TeX.SE. I suggest you start by replacingbegin{subfigure}[0.45textwidth]withbegin{subfigure}{0.45textwidth}in the firstsubfigureenvironment.
– Mico
6 hours ago
I've taken the liberty of adding some code at the top and bottom of the code block in order to make it compilable. Feel free to revert.
– Mico
6 hours ago
1
Doing that, it stops and tells me there is an error in that line
– Ian Lynch
6 hours ago
And what might that error be? (Sorry, my psychic skills are badly underdeveloped...)
– Mico
6 hours ago
! Missing number, treated as zero. <to be read again> } l.544 begin{subfigure}[t]{0.45linewidth} ?
– Ian Lynch
5 hours ago
Welcome to TeX.SE. I suggest you start by replacing
begin{subfigure}[0.45textwidth] with begin{subfigure}{0.45textwidth} in the first subfigure environment.– Mico
6 hours ago
Welcome to TeX.SE. I suggest you start by replacing
begin{subfigure}[0.45textwidth] with begin{subfigure}{0.45textwidth} in the first subfigure environment.– Mico
6 hours ago
I've taken the liberty of adding some code at the top and bottom of the code block in order to make it compilable. Feel free to revert.
– Mico
6 hours ago
I've taken the liberty of adding some code at the top and bottom of the code block in order to make it compilable. Feel free to revert.
– Mico
6 hours ago
1
1
Doing that, it stops and tells me there is an error in that line
– Ian Lynch
6 hours ago
Doing that, it stops and tells me there is an error in that line
– Ian Lynch
6 hours ago
And what might that error be? (Sorry, my psychic skills are badly underdeveloped...)
– Mico
6 hours ago
And what might that error be? (Sorry, my psychic skills are badly underdeveloped...)
– Mico
6 hours ago
! Missing number, treated as zero. <to be read again> } l.544 begin{subfigure}[t]{0.45linewidth} ?
– Ian Lynch
5 hours ago
! Missing number, treated as zero. <to be read again> } l.544 begin{subfigure}[t]{0.45linewidth} ?
– Ian Lynch
5 hours ago
|
show 4 more comments
1 Answer
1
active
oldest
votes
You wrote,
I keep getting errors
You didn't mention which errors you are getting, but I can only assume that they are caused by the line
begin{subfigure}[0.45textwidth]
at the start of the first subfigure environment. Change this line to
begin{subfigure}{0.45textwidth}
i.e., replace the square brackets with curly braces, and the immediate problem should be fixed. (Note that the other three begin{subfigure}{0.45textwidth} directives are already correct.) By the way, I'm assuming that your documents loads the subcaption package, not the obsolete and deprecated subfigure package.
In addition to fixing the syntax error, you may also want to "spruce up" the appearance of the figure. E.g., increase the horizontal separation between the subfigures, increase the space between the two rows of subfigures, and switch from full justification to centering for the captions of the four subfigures.

documentclass[demo]{article} % remove 'demo' option in real document
usepackage{graphicx,subcaption,ragged2e}
begin{document}
begin{figure}
captionsetup[subfigure]{justification=Centering}
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=textwidth]{long_pneumonic.jpg}
caption{Pre-vaccination susceptible and infected population. $alpha=0.000015$, $beta=0.0027$, $delta= 0.002$, $sigma=1/3$, $Delta=3/4$, $r=1/5$.}
end{subfigure}hspace{fill} % maximize horizontal separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic2.jpg}
caption{Transient loops of the infected and susceptible population changes.}
end{subfigure}
bigskip % more vertical separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic3.jpg}
caption{The population of susceptible individuals and infected individuals over a period of 1500 days post-vaccination.
$alpha=0.000015$, $beta=0.0027$, $delta=0.002$, $sigma=1/3$, $Delta=3/4$,
$r=1/5$.}
end{subfigure}hspace{fill} % maximize horizontal separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic4.jpg}
caption{A graph showing the rise and decrease of pneumonic plague victims leading to increasing amounts of infected with each recurrence post-vaccination.}
end{subfigure}
caption{Graphs comparing and contrasting the same parameters examining the dynamics of the susceptible and infected populations pre and post vaccinations.}
end{figure}
end{document}
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
});
}
});
Ian Lynch is a new contributor. Be nice, and check out our Code of Conduct.
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%2f475149%2fusing-subfigure-and-creating-two-rows-of-figures%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You wrote,
I keep getting errors
You didn't mention which errors you are getting, but I can only assume that they are caused by the line
begin{subfigure}[0.45textwidth]
at the start of the first subfigure environment. Change this line to
begin{subfigure}{0.45textwidth}
i.e., replace the square brackets with curly braces, and the immediate problem should be fixed. (Note that the other three begin{subfigure}{0.45textwidth} directives are already correct.) By the way, I'm assuming that your documents loads the subcaption package, not the obsolete and deprecated subfigure package.
In addition to fixing the syntax error, you may also want to "spruce up" the appearance of the figure. E.g., increase the horizontal separation between the subfigures, increase the space between the two rows of subfigures, and switch from full justification to centering for the captions of the four subfigures.

documentclass[demo]{article} % remove 'demo' option in real document
usepackage{graphicx,subcaption,ragged2e}
begin{document}
begin{figure}
captionsetup[subfigure]{justification=Centering}
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=textwidth]{long_pneumonic.jpg}
caption{Pre-vaccination susceptible and infected population. $alpha=0.000015$, $beta=0.0027$, $delta= 0.002$, $sigma=1/3$, $Delta=3/4$, $r=1/5$.}
end{subfigure}hspace{fill} % maximize horizontal separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic2.jpg}
caption{Transient loops of the infected and susceptible population changes.}
end{subfigure}
bigskip % more vertical separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic3.jpg}
caption{The population of susceptible individuals and infected individuals over a period of 1500 days post-vaccination.
$alpha=0.000015$, $beta=0.0027$, $delta=0.002$, $sigma=1/3$, $Delta=3/4$,
$r=1/5$.}
end{subfigure}hspace{fill} % maximize horizontal separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic4.jpg}
caption{A graph showing the rise and decrease of pneumonic plague victims leading to increasing amounts of infected with each recurrence post-vaccination.}
end{subfigure}
caption{Graphs comparing and contrasting the same parameters examining the dynamics of the susceptible and infected populations pre and post vaccinations.}
end{figure}
end{document}
add a comment |
You wrote,
I keep getting errors
You didn't mention which errors you are getting, but I can only assume that they are caused by the line
begin{subfigure}[0.45textwidth]
at the start of the first subfigure environment. Change this line to
begin{subfigure}{0.45textwidth}
i.e., replace the square brackets with curly braces, and the immediate problem should be fixed. (Note that the other three begin{subfigure}{0.45textwidth} directives are already correct.) By the way, I'm assuming that your documents loads the subcaption package, not the obsolete and deprecated subfigure package.
In addition to fixing the syntax error, you may also want to "spruce up" the appearance of the figure. E.g., increase the horizontal separation between the subfigures, increase the space between the two rows of subfigures, and switch from full justification to centering for the captions of the four subfigures.

documentclass[demo]{article} % remove 'demo' option in real document
usepackage{graphicx,subcaption,ragged2e}
begin{document}
begin{figure}
captionsetup[subfigure]{justification=Centering}
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=textwidth]{long_pneumonic.jpg}
caption{Pre-vaccination susceptible and infected population. $alpha=0.000015$, $beta=0.0027$, $delta= 0.002$, $sigma=1/3$, $Delta=3/4$, $r=1/5$.}
end{subfigure}hspace{fill} % maximize horizontal separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic2.jpg}
caption{Transient loops of the infected and susceptible population changes.}
end{subfigure}
bigskip % more vertical separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic3.jpg}
caption{The population of susceptible individuals and infected individuals over a period of 1500 days post-vaccination.
$alpha=0.000015$, $beta=0.0027$, $delta=0.002$, $sigma=1/3$, $Delta=3/4$,
$r=1/5$.}
end{subfigure}hspace{fill} % maximize horizontal separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic4.jpg}
caption{A graph showing the rise and decrease of pneumonic plague victims leading to increasing amounts of infected with each recurrence post-vaccination.}
end{subfigure}
caption{Graphs comparing and contrasting the same parameters examining the dynamics of the susceptible and infected populations pre and post vaccinations.}
end{figure}
end{document}
add a comment |
You wrote,
I keep getting errors
You didn't mention which errors you are getting, but I can only assume that they are caused by the line
begin{subfigure}[0.45textwidth]
at the start of the first subfigure environment. Change this line to
begin{subfigure}{0.45textwidth}
i.e., replace the square brackets with curly braces, and the immediate problem should be fixed. (Note that the other three begin{subfigure}{0.45textwidth} directives are already correct.) By the way, I'm assuming that your documents loads the subcaption package, not the obsolete and deprecated subfigure package.
In addition to fixing the syntax error, you may also want to "spruce up" the appearance of the figure. E.g., increase the horizontal separation between the subfigures, increase the space between the two rows of subfigures, and switch from full justification to centering for the captions of the four subfigures.

documentclass[demo]{article} % remove 'demo' option in real document
usepackage{graphicx,subcaption,ragged2e}
begin{document}
begin{figure}
captionsetup[subfigure]{justification=Centering}
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=textwidth]{long_pneumonic.jpg}
caption{Pre-vaccination susceptible and infected population. $alpha=0.000015$, $beta=0.0027$, $delta= 0.002$, $sigma=1/3$, $Delta=3/4$, $r=1/5$.}
end{subfigure}hspace{fill} % maximize horizontal separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic2.jpg}
caption{Transient loops of the infected and susceptible population changes.}
end{subfigure}
bigskip % more vertical separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic3.jpg}
caption{The population of susceptible individuals and infected individuals over a period of 1500 days post-vaccination.
$alpha=0.000015$, $beta=0.0027$, $delta=0.002$, $sigma=1/3$, $Delta=3/4$,
$r=1/5$.}
end{subfigure}hspace{fill} % maximize horizontal separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic4.jpg}
caption{A graph showing the rise and decrease of pneumonic plague victims leading to increasing amounts of infected with each recurrence post-vaccination.}
end{subfigure}
caption{Graphs comparing and contrasting the same parameters examining the dynamics of the susceptible and infected populations pre and post vaccinations.}
end{figure}
end{document}
You wrote,
I keep getting errors
You didn't mention which errors you are getting, but I can only assume that they are caused by the line
begin{subfigure}[0.45textwidth]
at the start of the first subfigure environment. Change this line to
begin{subfigure}{0.45textwidth}
i.e., replace the square brackets with curly braces, and the immediate problem should be fixed. (Note that the other three begin{subfigure}{0.45textwidth} directives are already correct.) By the way, I'm assuming that your documents loads the subcaption package, not the obsolete and deprecated subfigure package.
In addition to fixing the syntax error, you may also want to "spruce up" the appearance of the figure. E.g., increase the horizontal separation between the subfigures, increase the space between the two rows of subfigures, and switch from full justification to centering for the captions of the four subfigures.

documentclass[demo]{article} % remove 'demo' option in real document
usepackage{graphicx,subcaption,ragged2e}
begin{document}
begin{figure}
captionsetup[subfigure]{justification=Centering}
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=textwidth]{long_pneumonic.jpg}
caption{Pre-vaccination susceptible and infected population. $alpha=0.000015$, $beta=0.0027$, $delta= 0.002$, $sigma=1/3$, $Delta=3/4$, $r=1/5$.}
end{subfigure}hspace{fill} % maximize horizontal separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic2.jpg}
caption{Transient loops of the infected and susceptible population changes.}
end{subfigure}
bigskip % more vertical separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic3.jpg}
caption{The population of susceptible individuals and infected individuals over a period of 1500 days post-vaccination.
$alpha=0.000015$, $beta=0.0027$, $delta=0.002$, $sigma=1/3$, $Delta=3/4$,
$r=1/5$.}
end{subfigure}hspace{fill} % maximize horizontal separation
begin{subfigure}[t]{0.45textwidth}
includegraphics[width=linewidth]{long_pneumonic4.jpg}
caption{A graph showing the rise and decrease of pneumonic plague victims leading to increasing amounts of infected with each recurrence post-vaccination.}
end{subfigure}
caption{Graphs comparing and contrasting the same parameters examining the dynamics of the susceptible and infected populations pre and post vaccinations.}
end{figure}
end{document}
edited 1 hour ago
answered 6 hours ago
MicoMico
279k31380769
279k31380769
add a comment |
add a comment |
Ian Lynch is a new contributor. Be nice, and check out our Code of Conduct.
Ian Lynch is a new contributor. Be nice, and check out our Code of Conduct.
Ian Lynch is a new contributor. Be nice, and check out our Code of Conduct.
Ian Lynch is a new contributor. Be nice, and check out our Code of Conduct.
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%2f475149%2fusing-subfigure-and-creating-two-rows-of-figures%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
Welcome to TeX.SE. I suggest you start by replacing
begin{subfigure}[0.45textwidth]withbegin{subfigure}{0.45textwidth}in the firstsubfigureenvironment.– Mico
6 hours ago
I've taken the liberty of adding some code at the top and bottom of the code block in order to make it compilable. Feel free to revert.
– Mico
6 hours ago
1
Doing that, it stops and tells me there is an error in that line
– Ian Lynch
6 hours ago
And what might that error be? (Sorry, my psychic skills are badly underdeveloped...)
– Mico
6 hours ago
! Missing number, treated as zero. <to be read again> } l.544 begin{subfigure}[t]{0.45linewidth} ?
– Ian Lynch
5 hours ago