Placing subfig vertically
There is a beautiful post where it is explained more or less what I would like to do.
Actually, I am not using subfigure, but usepackage{subfig}
. Therefore, I've tried to implement the example with the subfig
solution. My entire document is using subfig
, I would not change to subfigure now.
Here is the code I am using:
begin{figure}[tb]
centering
sbox{bigleftbox}{%
begin{minipage}[b]{.5textwidth}
centering
vspace*{fill}
subfloat[Image 1]
{includegraphics[height=5cm]%
{images1}%
label{image1}}
end{minipage}%
}usebox{bigleftbox}%
begin{minipage}[b][htbigleftbox][s]{.5textwidth}
centering
subfloat[Image 2]
{includegraphics[width=0.9linewidth]%
{images2}%
label{image2}}
vfill
subfloat[Image 3]
{includegraphics[width=0.9linewidth]%
{images3}%
label{image3}}
end{minipage}
caption{%
Figure}
label{figure}
end{figure}
In the attached picture I can see the result and it is not glorious.
I would not like to change the change the size of the picture. The size shall remain the same. The problem is that 1) the left picture is not vertically centered with respect with the two other images, 2) the caption of the figure is not at the bottom of the last picture, and 3) the title of the next section is entering the figure.
How is it possible to solve all these problems using subfig
and not subfigure
?
I would be very thankful for your help.
subfloats subfig sidesubfloat
add a comment |
There is a beautiful post where it is explained more or less what I would like to do.
Actually, I am not using subfigure, but usepackage{subfig}
. Therefore, I've tried to implement the example with the subfig
solution. My entire document is using subfig
, I would not change to subfigure now.
Here is the code I am using:
begin{figure}[tb]
centering
sbox{bigleftbox}{%
begin{minipage}[b]{.5textwidth}
centering
vspace*{fill}
subfloat[Image 1]
{includegraphics[height=5cm]%
{images1}%
label{image1}}
end{minipage}%
}usebox{bigleftbox}%
begin{minipage}[b][htbigleftbox][s]{.5textwidth}
centering
subfloat[Image 2]
{includegraphics[width=0.9linewidth]%
{images2}%
label{image2}}
vfill
subfloat[Image 3]
{includegraphics[width=0.9linewidth]%
{images3}%
label{image3}}
end{minipage}
caption{%
Figure}
label{figure}
end{figure}
In the attached picture I can see the result and it is not glorious.
I would not like to change the change the size of the picture. The size shall remain the same. The problem is that 1) the left picture is not vertically centered with respect with the two other images, 2) the caption of the figure is not at the bottom of the last picture, and 3) the title of the next section is entering the figure.
How is it possible to solve all these problems using subfig
and not subfigure
?
I would be very thankful for your help.
subfloats subfig sidesubfloat
1
please extend your code snippet to complete document beginning withdocumentclass{...}
and ending withend{document}
.
– Zarko
9 hours ago
Usingsubfig
and insisting in it in combination of thesavebox
an and theminipages
makes the result and your demand really strange. If you really are open to useminipages
, than thesubcaption
package should be enough for your approach and thesubfig
could not help somehere.
– koleygr
8 hours ago
In my above comment, I had understood that you expect the caption of the left figure aligned with the caption of the lower right figure and thus could not find a way thatsubfig
package could be used for it (doesn't really use it often but if this was the case thesubcaption
package and theminipages
should be enough). Commenting just to explain the above comment and to suggest to to have a look (whenever you find time) at thesubcaption
package that is better cooperating withminipages
and such cases as this one.
– koleygr
7 hours ago
1
@koleygr Hi. Thanks a lot for the feedback. My entire document uses 'subfig'. Changing everything to 'subcaption' might take a bit of time. I will try to use 'subcaption' for my next documents.
– Elfo2285
6 hours ago
add a comment |
There is a beautiful post where it is explained more or less what I would like to do.
Actually, I am not using subfigure, but usepackage{subfig}
. Therefore, I've tried to implement the example with the subfig
solution. My entire document is using subfig
, I would not change to subfigure now.
Here is the code I am using:
begin{figure}[tb]
centering
sbox{bigleftbox}{%
begin{minipage}[b]{.5textwidth}
centering
vspace*{fill}
subfloat[Image 1]
{includegraphics[height=5cm]%
{images1}%
label{image1}}
end{minipage}%
}usebox{bigleftbox}%
begin{minipage}[b][htbigleftbox][s]{.5textwidth}
centering
subfloat[Image 2]
{includegraphics[width=0.9linewidth]%
{images2}%
label{image2}}
vfill
subfloat[Image 3]
{includegraphics[width=0.9linewidth]%
{images3}%
label{image3}}
end{minipage}
caption{%
Figure}
label{figure}
end{figure}
In the attached picture I can see the result and it is not glorious.
I would not like to change the change the size of the picture. The size shall remain the same. The problem is that 1) the left picture is not vertically centered with respect with the two other images, 2) the caption of the figure is not at the bottom of the last picture, and 3) the title of the next section is entering the figure.
How is it possible to solve all these problems using subfig
and not subfigure
?
I would be very thankful for your help.
subfloats subfig sidesubfloat
There is a beautiful post where it is explained more or less what I would like to do.
Actually, I am not using subfigure, but usepackage{subfig}
. Therefore, I've tried to implement the example with the subfig
solution. My entire document is using subfig
, I would not change to subfigure now.
Here is the code I am using:
begin{figure}[tb]
centering
sbox{bigleftbox}{%
begin{minipage}[b]{.5textwidth}
centering
vspace*{fill}
subfloat[Image 1]
{includegraphics[height=5cm]%
{images1}%
label{image1}}
end{minipage}%
}usebox{bigleftbox}%
begin{minipage}[b][htbigleftbox][s]{.5textwidth}
centering
subfloat[Image 2]
{includegraphics[width=0.9linewidth]%
{images2}%
label{image2}}
vfill
subfloat[Image 3]
{includegraphics[width=0.9linewidth]%
{images3}%
label{image3}}
end{minipage}
caption{%
Figure}
label{figure}
end{figure}
In the attached picture I can see the result and it is not glorious.
I would not like to change the change the size of the picture. The size shall remain the same. The problem is that 1) the left picture is not vertically centered with respect with the two other images, 2) the caption of the figure is not at the bottom of the last picture, and 3) the title of the next section is entering the figure.
How is it possible to solve all these problems using subfig
and not subfigure
?
I would be very thankful for your help.
subfloats subfig sidesubfloat
subfloats subfig sidesubfloat
asked 9 hours ago
Elfo2285Elfo2285
425
425
1
please extend your code snippet to complete document beginning withdocumentclass{...}
and ending withend{document}
.
– Zarko
9 hours ago
Usingsubfig
and insisting in it in combination of thesavebox
an and theminipages
makes the result and your demand really strange. If you really are open to useminipages
, than thesubcaption
package should be enough for your approach and thesubfig
could not help somehere.
– koleygr
8 hours ago
In my above comment, I had understood that you expect the caption of the left figure aligned with the caption of the lower right figure and thus could not find a way thatsubfig
package could be used for it (doesn't really use it often but if this was the case thesubcaption
package and theminipages
should be enough). Commenting just to explain the above comment and to suggest to to have a look (whenever you find time) at thesubcaption
package that is better cooperating withminipages
and such cases as this one.
– koleygr
7 hours ago
1
@koleygr Hi. Thanks a lot for the feedback. My entire document uses 'subfig'. Changing everything to 'subcaption' might take a bit of time. I will try to use 'subcaption' for my next documents.
– Elfo2285
6 hours ago
add a comment |
1
please extend your code snippet to complete document beginning withdocumentclass{...}
and ending withend{document}
.
– Zarko
9 hours ago
Usingsubfig
and insisting in it in combination of thesavebox
an and theminipages
makes the result and your demand really strange. If you really are open to useminipages
, than thesubcaption
package should be enough for your approach and thesubfig
could not help somehere.
– koleygr
8 hours ago
In my above comment, I had understood that you expect the caption of the left figure aligned with the caption of the lower right figure and thus could not find a way thatsubfig
package could be used for it (doesn't really use it often but if this was the case thesubcaption
package and theminipages
should be enough). Commenting just to explain the above comment and to suggest to to have a look (whenever you find time) at thesubcaption
package that is better cooperating withminipages
and such cases as this one.
– koleygr
7 hours ago
1
@koleygr Hi. Thanks a lot for the feedback. My entire document uses 'subfig'. Changing everything to 'subcaption' might take a bit of time. I will try to use 'subcaption' for my next documents.
– Elfo2285
6 hours ago
1
1
please extend your code snippet to complete document beginning with
documentclass{...}
and ending with end{document}
.– Zarko
9 hours ago
please extend your code snippet to complete document beginning with
documentclass{...}
and ending with end{document}
.– Zarko
9 hours ago
Using
subfig
and insisting in it in combination of the savebox
an and the minipages
makes the result and your demand really strange. If you really are open to use minipages
, than the subcaption
package should be enough for your approach and the subfig
could not help somehere.– koleygr
8 hours ago
Using
subfig
and insisting in it in combination of the savebox
an and the minipages
makes the result and your demand really strange. If you really are open to use minipages
, than the subcaption
package should be enough for your approach and the subfig
could not help somehere.– koleygr
8 hours ago
In my above comment, I had understood that you expect the caption of the left figure aligned with the caption of the lower right figure and thus could not find a way that
subfig
package could be used for it (doesn't really use it often but if this was the case the subcaption
package and the minipages
should be enough). Commenting just to explain the above comment and to suggest to to have a look (whenever you find time) at the subcaption
package that is better cooperating with minipages
and such cases as this one.– koleygr
7 hours ago
In my above comment, I had understood that you expect the caption of the left figure aligned with the caption of the lower right figure and thus could not find a way that
subfig
package could be used for it (doesn't really use it often but if this was the case the subcaption
package and the minipages
should be enough). Commenting just to explain the above comment and to suggest to to have a look (whenever you find time) at the subcaption
package that is better cooperating with minipages
and such cases as this one.– koleygr
7 hours ago
1
1
@koleygr Hi. Thanks a lot for the feedback. My entire document uses 'subfig'. Changing everything to 'subcaption' might take a bit of time. I will try to use 'subcaption' for my next documents.
– Elfo2285
6 hours ago
@koleygr Hi. Thanks a lot for the feedback. My entire document uses 'subfig'. Changing everything to 'subcaption' might take a bit of time. I will try to use 'subcaption' for my next documents.
– Elfo2285
6 hours ago
add a comment |
3 Answers
3
active
oldest
votes
Your problem is different, as you don't have to measure anything.
In order to align the two parts at the top, you can use raisebox{-height}{...}
.
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}[tbp]
centering
raisebox{-height}{%
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}%
}qquad
raisebox{-height}{%
begin{tabular}{@{}c@{}}
subfloat[Image 2]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image2}%
} \
subfloat[Image 3]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image3}%
}
end{tabular}%
}
caption{Figure}
label{figure}
end{figure}
end{document}
If you want to vertically center the left image:
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}[tbp]
centering
begin{tabular}{@{}c@{}}
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}%
end{tabular}qquad
begin{tabular}{@{}c@{}}
subfloat[Image 2]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image2}%
} \
subfloat[Image 3]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image3}%
}
end{tabular}
caption{Figure}
label{figure}
end{figure}
end{document}
Using the tabular solution solved my problem. It makes the result I would like. Thanks a lot!
– Elfo2285
8 hours ago
add a comment |
see if the following example can help you:
documentclass{article}
usepackage{multirow,tabularx}
usepackage[export, demo]{adjustbox}
usepackage{subfig}
newsaveboxbigleftbox
begin{document}
begin{figure}[tb]
centering
begin{tabularx}{linewidth}{XX}
multirow[t]{2}{=}{subfloat[Image 1 label{image1}]%
{includegraphics[height=5cm, valign=t]{images1}}%
}
& subfloat[Image 2 label{image2}]%
{includegraphics[height=dimexpr2.5 cm-baselineskip, valign=t]{images1}} \
& subfloat[Image 3 label{image3}]%
{includegraphics[height=dimexpr2.5 cm-baselineskip, valign=b]{images1}} \
end{tabularx}
caption{Figure}
label{figure}
add a comment |
Here is a variant using minipages:
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}
centering
begin{minipage}[c]{0.3textwidth}
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}
end{minipage}
begin{minipage}[c]{0.4textwidth}
subfloat[Image 2]{%
includegraphics[width=textwidth]{example-image}%
label{image2}%
}
subfloat[Image 3]{%
includegraphics[width=textwidth]{example-image}%
label{image3}%
}
end{minipage}
caption{Figure}
label{figure}
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
});
}
});
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%2f479147%2fplacing-subfig-vertically%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
Your problem is different, as you don't have to measure anything.
In order to align the two parts at the top, you can use raisebox{-height}{...}
.
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}[tbp]
centering
raisebox{-height}{%
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}%
}qquad
raisebox{-height}{%
begin{tabular}{@{}c@{}}
subfloat[Image 2]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image2}%
} \
subfloat[Image 3]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image3}%
}
end{tabular}%
}
caption{Figure}
label{figure}
end{figure}
end{document}
If you want to vertically center the left image:
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}[tbp]
centering
begin{tabular}{@{}c@{}}
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}%
end{tabular}qquad
begin{tabular}{@{}c@{}}
subfloat[Image 2]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image2}%
} \
subfloat[Image 3]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image3}%
}
end{tabular}
caption{Figure}
label{figure}
end{figure}
end{document}
Using the tabular solution solved my problem. It makes the result I would like. Thanks a lot!
– Elfo2285
8 hours ago
add a comment |
Your problem is different, as you don't have to measure anything.
In order to align the two parts at the top, you can use raisebox{-height}{...}
.
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}[tbp]
centering
raisebox{-height}{%
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}%
}qquad
raisebox{-height}{%
begin{tabular}{@{}c@{}}
subfloat[Image 2]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image2}%
} \
subfloat[Image 3]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image3}%
}
end{tabular}%
}
caption{Figure}
label{figure}
end{figure}
end{document}
If you want to vertically center the left image:
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}[tbp]
centering
begin{tabular}{@{}c@{}}
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}%
end{tabular}qquad
begin{tabular}{@{}c@{}}
subfloat[Image 2]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image2}%
} \
subfloat[Image 3]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image3}%
}
end{tabular}
caption{Figure}
label{figure}
end{figure}
end{document}
Using the tabular solution solved my problem. It makes the result I would like. Thanks a lot!
– Elfo2285
8 hours ago
add a comment |
Your problem is different, as you don't have to measure anything.
In order to align the two parts at the top, you can use raisebox{-height}{...}
.
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}[tbp]
centering
raisebox{-height}{%
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}%
}qquad
raisebox{-height}{%
begin{tabular}{@{}c@{}}
subfloat[Image 2]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image2}%
} \
subfloat[Image 3]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image3}%
}
end{tabular}%
}
caption{Figure}
label{figure}
end{figure}
end{document}
If you want to vertically center the left image:
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}[tbp]
centering
begin{tabular}{@{}c@{}}
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}%
end{tabular}qquad
begin{tabular}{@{}c@{}}
subfloat[Image 2]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image2}%
} \
subfloat[Image 3]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image3}%
}
end{tabular}
caption{Figure}
label{figure}
end{figure}
end{document}
Your problem is different, as you don't have to measure anything.
In order to align the two parts at the top, you can use raisebox{-height}{...}
.
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}[tbp]
centering
raisebox{-height}{%
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}%
}qquad
raisebox{-height}{%
begin{tabular}{@{}c@{}}
subfloat[Image 2]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image2}%
} \
subfloat[Image 3]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image3}%
}
end{tabular}%
}
caption{Figure}
label{figure}
end{figure}
end{document}
If you want to vertically center the left image:
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}[tbp]
centering
begin{tabular}{@{}c@{}}
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}%
end{tabular}qquad
begin{tabular}{@{}c@{}}
subfloat[Image 2]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image2}%
} \
subfloat[Image 3]{%
includegraphics[width=0.4textwidth]{example-image}%
label{image3}%
}
end{tabular}
caption{Figure}
label{figure}
end{figure}
end{document}
edited 8 hours ago
answered 9 hours ago
egregegreg
726k8819193228
726k8819193228
Using the tabular solution solved my problem. It makes the result I would like. Thanks a lot!
– Elfo2285
8 hours ago
add a comment |
Using the tabular solution solved my problem. It makes the result I would like. Thanks a lot!
– Elfo2285
8 hours ago
Using the tabular solution solved my problem. It makes the result I would like. Thanks a lot!
– Elfo2285
8 hours ago
Using the tabular solution solved my problem. It makes the result I would like. Thanks a lot!
– Elfo2285
8 hours ago
add a comment |
see if the following example can help you:
documentclass{article}
usepackage{multirow,tabularx}
usepackage[export, demo]{adjustbox}
usepackage{subfig}
newsaveboxbigleftbox
begin{document}
begin{figure}[tb]
centering
begin{tabularx}{linewidth}{XX}
multirow[t]{2}{=}{subfloat[Image 1 label{image1}]%
{includegraphics[height=5cm, valign=t]{images1}}%
}
& subfloat[Image 2 label{image2}]%
{includegraphics[height=dimexpr2.5 cm-baselineskip, valign=t]{images1}} \
& subfloat[Image 3 label{image3}]%
{includegraphics[height=dimexpr2.5 cm-baselineskip, valign=b]{images1}} \
end{tabularx}
caption{Figure}
label{figure}
add a comment |
see if the following example can help you:
documentclass{article}
usepackage{multirow,tabularx}
usepackage[export, demo]{adjustbox}
usepackage{subfig}
newsaveboxbigleftbox
begin{document}
begin{figure}[tb]
centering
begin{tabularx}{linewidth}{XX}
multirow[t]{2}{=}{subfloat[Image 1 label{image1}]%
{includegraphics[height=5cm, valign=t]{images1}}%
}
& subfloat[Image 2 label{image2}]%
{includegraphics[height=dimexpr2.5 cm-baselineskip, valign=t]{images1}} \
& subfloat[Image 3 label{image3}]%
{includegraphics[height=dimexpr2.5 cm-baselineskip, valign=b]{images1}} \
end{tabularx}
caption{Figure}
label{figure}
add a comment |
see if the following example can help you:
documentclass{article}
usepackage{multirow,tabularx}
usepackage[export, demo]{adjustbox}
usepackage{subfig}
newsaveboxbigleftbox
begin{document}
begin{figure}[tb]
centering
begin{tabularx}{linewidth}{XX}
multirow[t]{2}{=}{subfloat[Image 1 label{image1}]%
{includegraphics[height=5cm, valign=t]{images1}}%
}
& subfloat[Image 2 label{image2}]%
{includegraphics[height=dimexpr2.5 cm-baselineskip, valign=t]{images1}} \
& subfloat[Image 3 label{image3}]%
{includegraphics[height=dimexpr2.5 cm-baselineskip, valign=b]{images1}} \
end{tabularx}
caption{Figure}
label{figure}
see if the following example can help you:
documentclass{article}
usepackage{multirow,tabularx}
usepackage[export, demo]{adjustbox}
usepackage{subfig}
newsaveboxbigleftbox
begin{document}
begin{figure}[tb]
centering
begin{tabularx}{linewidth}{XX}
multirow[t]{2}{=}{subfloat[Image 1 label{image1}]%
{includegraphics[height=5cm, valign=t]{images1}}%
}
& subfloat[Image 2 label{image2}]%
{includegraphics[height=dimexpr2.5 cm-baselineskip, valign=t]{images1}} \
& subfloat[Image 3 label{image3}]%
{includegraphics[height=dimexpr2.5 cm-baselineskip, valign=b]{images1}} \
end{tabularx}
caption{Figure}
label{figure}
answered 9 hours ago
ZarkoZarko
127k868166
127k868166
add a comment |
add a comment |
Here is a variant using minipages:
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}
centering
begin{minipage}[c]{0.3textwidth}
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}
end{minipage}
begin{minipage}[c]{0.4textwidth}
subfloat[Image 2]{%
includegraphics[width=textwidth]{example-image}%
label{image2}%
}
subfloat[Image 3]{%
includegraphics[width=textwidth]{example-image}%
label{image3}%
}
end{minipage}
caption{Figure}
label{figure}
end{figure}
end{document}
add a comment |
Here is a variant using minipages:
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}
centering
begin{minipage}[c]{0.3textwidth}
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}
end{minipage}
begin{minipage}[c]{0.4textwidth}
subfloat[Image 2]{%
includegraphics[width=textwidth]{example-image}%
label{image2}%
}
subfloat[Image 3]{%
includegraphics[width=textwidth]{example-image}%
label{image3}%
}
end{minipage}
caption{Figure}
label{figure}
end{figure}
end{document}
add a comment |
Here is a variant using minipages:
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}
centering
begin{minipage}[c]{0.3textwidth}
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}
end{minipage}
begin{minipage}[c]{0.4textwidth}
subfloat[Image 2]{%
includegraphics[width=textwidth]{example-image}%
label{image2}%
}
subfloat[Image 3]{%
includegraphics[width=textwidth]{example-image}%
label{image3}%
}
end{minipage}
caption{Figure}
label{figure}
end{figure}
end{document}
Here is a variant using minipages:
documentclass{article}
usepackage{graphicx,subfig}
begin{document}
begin{figure}
centering
begin{minipage}[c]{0.3textwidth}
subfloat[Image 1]{%
includegraphics[height=5cm]{example-image-9x16}%
label{image1}%
}
end{minipage}
begin{minipage}[c]{0.4textwidth}
subfloat[Image 2]{%
includegraphics[width=textwidth]{example-image}%
label{image2}%
}
subfloat[Image 3]{%
includegraphics[width=textwidth]{example-image}%
label{image3}%
}
end{minipage}
caption{Figure}
label{figure}
end{figure}
end{document}
answered 9 hours ago
leandriisleandriis
9,9301531
9,9301531
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%2f479147%2fplacing-subfig-vertically%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
1
please extend your code snippet to complete document beginning with
documentclass{...}
and ending withend{document}
.– Zarko
9 hours ago
Using
subfig
and insisting in it in combination of thesavebox
an and theminipages
makes the result and your demand really strange. If you really are open to useminipages
, than thesubcaption
package should be enough for your approach and thesubfig
could not help somehere.– koleygr
8 hours ago
In my above comment, I had understood that you expect the caption of the left figure aligned with the caption of the lower right figure and thus could not find a way that
subfig
package could be used for it (doesn't really use it often but if this was the case thesubcaption
package and theminipages
should be enough). Commenting just to explain the above comment and to suggest to to have a look (whenever you find time) at thesubcaption
package that is better cooperating withminipages
and such cases as this one.– koleygr
7 hours ago
1
@koleygr Hi. Thanks a lot for the feedback. My entire document uses 'subfig'. Changing everything to 'subcaption' might take a bit of time. I will try to use 'subcaption' for my next documents.
– Elfo2285
6 hours ago