figures in a grid with multiple line of textsvertical spacing between subfloatMinipage with four figures -...
Lick explanation
What is the wife of a henpecked husband called?
Quenching swords in dragon blood; why?
Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?
Eww, those bytes are gross
Can you combine War Caster, whip, and Warlock Features to EB enemies with reach?
Citing paywalled articles accessed via illegal web sharing
Jumping Numbers
How do you funnel food off a cutting board?
How to prevent users from executing commands through browser URL
Disable the ">" operator in Rstudio linux terminal
Does Windows 10's telemetry include sending *.doc files if Word crashed?
How would one buy a used TIE Fighter or X-Wing?
Checking for the existence of multiple directories
Why is "points exist" not an axiom in geometry?
Why exactly do action photographers need high fps burst cameras?
What to do when being responsible for data protection in your lab, yet advice is ignored?
Why are the books in the Game of Thrones citadel library shelved spine inwards?
Is there some relative to Dutch word "kijken" in German?
Book where aliens are selecting humans for food consumption
Isn't using the Extrusion Multiplier like cheating?
Do authors have to be politically correct in article-writing?
Can an insurance company drop you after receiving a bill and refusing to pay?
Why do members of Congress in committee hearings ask witnesses the same question multiple times?
figures in a grid with multiple line of texts
vertical spacing between subfloatMinipage with four figures - avoiding too much whitespaceLaTeX Error: File subfigure.sty not foundHow to arrage multiple figures?Insert multiple figures in Latexsubfigure counters not resettingSub-figures of different sizes grid layoutOverfull hbox warning - two plots side-by-sidefigures in multiple rowsArrange 3 subfigures and 1 justified caption in a 2x2 fashionMultiple figures with subOutset of images: Figures surrounding figures
How can I put insert figures in a grid? Each figures will have 4 captions. I tried using subfloat but it doesn't seem to work.
documentclass{article}
usepackage{graphicx}
usepackage{subfig}
begin{figure}[ht] label{ fig7}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{1.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{2.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{2.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
hfill
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{3.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
end{figure}
end{document}
subfloats includegraphics
New contributor
|
show 6 more comments
How can I put insert figures in a grid? Each figures will have 4 captions. I tried using subfloat but it doesn't seem to work.
documentclass{article}
usepackage{graphicx}
usepackage{subfig}
begin{figure}[ht] label{ fig7}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{1.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{2.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{2.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
hfill
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{3.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
end{figure}
end{document}
subfloats includegraphics
New contributor
1
Welcome to TeX.SE. You could see here, for example, tex.stackexchange.com/questions/126818/… or here tex.stackexchange.com/questions/162824/…
– Sebastiano
3 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
2 hours ago
@Zarko, added. sorry about the orientation.
– blues
2 hours ago
and where are captions? how they are numbered? and really each image has four caption? i never seen something like this demand ... (to my opinion, it does not make sense)
– Zarko
2 hours ago
1
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
1 hour ago
|
show 6 more comments
How can I put insert figures in a grid? Each figures will have 4 captions. I tried using subfloat but it doesn't seem to work.
documentclass{article}
usepackage{graphicx}
usepackage{subfig}
begin{figure}[ht] label{ fig7}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{1.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{2.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{2.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
hfill
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{3.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
end{figure}
end{document}
subfloats includegraphics
New contributor
How can I put insert figures in a grid? Each figures will have 4 captions. I tried using subfloat but it doesn't seem to work.
documentclass{article}
usepackage{graphicx}
usepackage{subfig}
begin{figure}[ht] label{ fig7}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{1.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{2.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{2.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
hfill
begin{minipage}[b]{0.5linewidth}
includegraphics[width=0.35linewidth,valign=c]{3.jpg}
caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{minipage}
end{figure}
end{document}
subfloats includegraphics
subfloats includegraphics
New contributor
New contributor
edited 1 hour ago
blues
New contributor
asked 3 hours ago
bluesblues
63
63
New contributor
New contributor
1
Welcome to TeX.SE. You could see here, for example, tex.stackexchange.com/questions/126818/… or here tex.stackexchange.com/questions/162824/…
– Sebastiano
3 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
2 hours ago
@Zarko, added. sorry about the orientation.
– blues
2 hours ago
and where are captions? how they are numbered? and really each image has four caption? i never seen something like this demand ... (to my opinion, it does not make sense)
– Zarko
2 hours ago
1
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
1 hour ago
|
show 6 more comments
1
Welcome to TeX.SE. You could see here, for example, tex.stackexchange.com/questions/126818/… or here tex.stackexchange.com/questions/162824/…
– Sebastiano
3 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
2 hours ago
@Zarko, added. sorry about the orientation.
– blues
2 hours ago
and where are captions? how they are numbered? and really each image has four caption? i never seen something like this demand ... (to my opinion, it does not make sense)
– Zarko
2 hours ago
1
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
1 hour ago
1
1
Welcome to TeX.SE. You could see here, for example, tex.stackexchange.com/questions/126818/… or here tex.stackexchange.com/questions/162824/…
– Sebastiano
3 hours ago
Welcome to TeX.SE. You could see here, for example, tex.stackexchange.com/questions/126818/… or here tex.stackexchange.com/questions/162824/…
– Sebastiano
3 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
2 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
2 hours ago
@Zarko, added. sorry about the orientation.
– blues
2 hours ago
@Zarko, added. sorry about the orientation.
– blues
2 hours ago
and where are captions? how they are numbered? and really each image has four caption? i never seen something like this demand ... (to my opinion, it does not make sense)
– Zarko
2 hours ago
and where are captions? how they are numbered? and really each image has four caption? i never seen something like this demand ... (to my opinion, it does not make sense)
– Zarko
2 hours ago
1
1
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
1 hour ago
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
1 hour ago
|
show 6 more comments
2 Answers
2
active
oldest
votes
The above shown output is achieved using nested tables as shown in the following MWE:
documentclass{article}
usepackage{geometry}
usepackage{graphicx}
usepackage{tabularx}
usepackage[export]{adjustbox}
usepackage{ragged2e}
newcolumntype{L}[1]{>{RaggedRightletnewline\arraybackslashhspace{0pt}}p{#1}}
begin{document}
begin{tabularx}{textwidth}{p{2cm}Xp{2cm}X}
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular}\
\
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular}
end{tabularx}
end{document}
Here is a variant using the description
environment instead of nested tables:
documentclass{article}
usepackage{geometry}
usepackage{graphicx}
usepackage[export]{adjustbox}
usepackage{ragged2e}
newcolumntype{Z}{>{RaggedRightletnewline\arraybackslashhspace{0pt}}X}
usepackage{enumitem}
setlist[description]{after=vspace{-baselineskip},before=vspace{-baselineskip},topsep=0pt,partopsep=0pt}
begin{document}
begin{tabularx}{textwidth}{p{2cm}Zp{2cm}Z}
includegraphics[width=linewidth,valign=t]{example-image} &
begin{description}
item[Original] Two people walking on the beach.
item[Model21] Zwei Personen gehen am Strand.
item[Model2] Zwei Personen gehen am Strand.
item[Model23] Zwei Personen gehen am Strand.
end{description} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{description}
item[Original] Two people walking on the beach.
item[Model21] Zwei Personen gehen am Strand.
item[Model2] Zwei Personen gehen am Strand.
item[Model23] Zwei Personen gehen am Strand.
end{description}
end{tabularx}
end{document}
add a comment |
edit: still guessing ... but now images are in array of 2 x 2 images:
documentclass[twocolumn]{article}
usepackage[export]{adjustbox}
usepackage{tabularx}
usepackage{caption}
usepackage{subcaption}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
begin{document}
begin{figure*}
setkeys{Gin}{width=linewidth}
captionsetup{font=footnotesize, labelfont=bf,
justification=raggedright,
skip=0.5ex, singlelinecheck=false}
setlengthtabcolsep{3pt}
begin{tabularx}{linewidth}{@{} *{4}{X} @{}}
includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
& includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption} \
includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
& includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{tabularx}
end{figure*}
end{document}
This seems to me is a very correct answer to the literal question the OP asked, but I doubt that this is actually what the OP wants to do. @blues5, please correct me if I'm wrong.
– sheß
1 hour ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
1 hour ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
1 hour ago
@sheß, you are right. meanwhile i correct my answer (according to quite unclear sketch in question}. i still woundering about four captions per images ... mabe op looks forcaption*{< some description>}
or simple list of options. who knows. let us wait what will op say.
– Zarko
1 hour ago
sorry for the poor description. there would be four system output corresponding to each image. say for image 1, i have the original description and three system output.
– blues
54 mins ago
|
show 4 more comments
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
});
}
});
blues 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%2f477337%2ffigures-in-a-grid-with-multiple-line-of-texts%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
The above shown output is achieved using nested tables as shown in the following MWE:
documentclass{article}
usepackage{geometry}
usepackage{graphicx}
usepackage{tabularx}
usepackage[export]{adjustbox}
usepackage{ragged2e}
newcolumntype{L}[1]{>{RaggedRightletnewline\arraybackslashhspace{0pt}}p{#1}}
begin{document}
begin{tabularx}{textwidth}{p{2cm}Xp{2cm}X}
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular}\
\
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular}
end{tabularx}
end{document}
Here is a variant using the description
environment instead of nested tables:
documentclass{article}
usepackage{geometry}
usepackage{graphicx}
usepackage[export]{adjustbox}
usepackage{ragged2e}
newcolumntype{Z}{>{RaggedRightletnewline\arraybackslashhspace{0pt}}X}
usepackage{enumitem}
setlist[description]{after=vspace{-baselineskip},before=vspace{-baselineskip},topsep=0pt,partopsep=0pt}
begin{document}
begin{tabularx}{textwidth}{p{2cm}Zp{2cm}Z}
includegraphics[width=linewidth,valign=t]{example-image} &
begin{description}
item[Original] Two people walking on the beach.
item[Model21] Zwei Personen gehen am Strand.
item[Model2] Zwei Personen gehen am Strand.
item[Model23] Zwei Personen gehen am Strand.
end{description} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{description}
item[Original] Two people walking on the beach.
item[Model21] Zwei Personen gehen am Strand.
item[Model2] Zwei Personen gehen am Strand.
item[Model23] Zwei Personen gehen am Strand.
end{description}
end{tabularx}
end{document}
add a comment |
The above shown output is achieved using nested tables as shown in the following MWE:
documentclass{article}
usepackage{geometry}
usepackage{graphicx}
usepackage{tabularx}
usepackage[export]{adjustbox}
usepackage{ragged2e}
newcolumntype{L}[1]{>{RaggedRightletnewline\arraybackslashhspace{0pt}}p{#1}}
begin{document}
begin{tabularx}{textwidth}{p{2cm}Xp{2cm}X}
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular}\
\
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular}
end{tabularx}
end{document}
Here is a variant using the description
environment instead of nested tables:
documentclass{article}
usepackage{geometry}
usepackage{graphicx}
usepackage[export]{adjustbox}
usepackage{ragged2e}
newcolumntype{Z}{>{RaggedRightletnewline\arraybackslashhspace{0pt}}X}
usepackage{enumitem}
setlist[description]{after=vspace{-baselineskip},before=vspace{-baselineskip},topsep=0pt,partopsep=0pt}
begin{document}
begin{tabularx}{textwidth}{p{2cm}Zp{2cm}Z}
includegraphics[width=linewidth,valign=t]{example-image} &
begin{description}
item[Original] Two people walking on the beach.
item[Model21] Zwei Personen gehen am Strand.
item[Model2] Zwei Personen gehen am Strand.
item[Model23] Zwei Personen gehen am Strand.
end{description} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{description}
item[Original] Two people walking on the beach.
item[Model21] Zwei Personen gehen am Strand.
item[Model2] Zwei Personen gehen am Strand.
item[Model23] Zwei Personen gehen am Strand.
end{description}
end{tabularx}
end{document}
add a comment |
The above shown output is achieved using nested tables as shown in the following MWE:
documentclass{article}
usepackage{geometry}
usepackage{graphicx}
usepackage{tabularx}
usepackage[export]{adjustbox}
usepackage{ragged2e}
newcolumntype{L}[1]{>{RaggedRightletnewline\arraybackslashhspace{0pt}}p{#1}}
begin{document}
begin{tabularx}{textwidth}{p{2cm}Xp{2cm}X}
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular}\
\
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular}
end{tabularx}
end{document}
Here is a variant using the description
environment instead of nested tables:
documentclass{article}
usepackage{geometry}
usepackage{graphicx}
usepackage[export]{adjustbox}
usepackage{ragged2e}
newcolumntype{Z}{>{RaggedRightletnewline\arraybackslashhspace{0pt}}X}
usepackage{enumitem}
setlist[description]{after=vspace{-baselineskip},before=vspace{-baselineskip},topsep=0pt,partopsep=0pt}
begin{document}
begin{tabularx}{textwidth}{p{2cm}Zp{2cm}Z}
includegraphics[width=linewidth,valign=t]{example-image} &
begin{description}
item[Original] Two people walking on the beach.
item[Model21] Zwei Personen gehen am Strand.
item[Model2] Zwei Personen gehen am Strand.
item[Model23] Zwei Personen gehen am Strand.
end{description} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{description}
item[Original] Two people walking on the beach.
item[Model21] Zwei Personen gehen am Strand.
item[Model2] Zwei Personen gehen am Strand.
item[Model23] Zwei Personen gehen am Strand.
end{description}
end{tabularx}
end{document}
The above shown output is achieved using nested tables as shown in the following MWE:
documentclass{article}
usepackage{geometry}
usepackage{graphicx}
usepackage{tabularx}
usepackage[export]{adjustbox}
usepackage{ragged2e}
newcolumntype{L}[1]{>{RaggedRightletnewline\arraybackslashhspace{0pt}}p{#1}}
begin{document}
begin{tabularx}{textwidth}{p{2cm}Xp{2cm}X}
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular}\
\
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{tabular}[t]{lL{3cm}}
Original:& Two people walking on the beach.\
Model21:& Zwei Personen gehen am Strand. \
Model2:& Zwei Personen gehen am Strand. \
Model23:& Zwei Personen gehen am Strand. \
end{tabular}
end{tabularx}
end{document}
Here is a variant using the description
environment instead of nested tables:
documentclass{article}
usepackage{geometry}
usepackage{graphicx}
usepackage[export]{adjustbox}
usepackage{ragged2e}
newcolumntype{Z}{>{RaggedRightletnewline\arraybackslashhspace{0pt}}X}
usepackage{enumitem}
setlist[description]{after=vspace{-baselineskip},before=vspace{-baselineskip},topsep=0pt,partopsep=0pt}
begin{document}
begin{tabularx}{textwidth}{p{2cm}Zp{2cm}Z}
includegraphics[width=linewidth,valign=t]{example-image} &
begin{description}
item[Original] Two people walking on the beach.
item[Model21] Zwei Personen gehen am Strand.
item[Model2] Zwei Personen gehen am Strand.
item[Model23] Zwei Personen gehen am Strand.
end{description} &
includegraphics[width=linewidth,valign=t]{example-image} &
begin{description}
item[Original] Two people walking on the beach.
item[Model21] Zwei Personen gehen am Strand.
item[Model2] Zwei Personen gehen am Strand.
item[Model23] Zwei Personen gehen am Strand.
end{description}
end{tabularx}
end{document}
edited 1 hour ago
answered 1 hour ago
leandriisleandriis
9,2271530
9,2271530
add a comment |
add a comment |
edit: still guessing ... but now images are in array of 2 x 2 images:
documentclass[twocolumn]{article}
usepackage[export]{adjustbox}
usepackage{tabularx}
usepackage{caption}
usepackage{subcaption}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
begin{document}
begin{figure*}
setkeys{Gin}{width=linewidth}
captionsetup{font=footnotesize, labelfont=bf,
justification=raggedright,
skip=0.5ex, singlelinecheck=false}
setlengthtabcolsep{3pt}
begin{tabularx}{linewidth}{@{} *{4}{X} @{}}
includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
& includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption} \
includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
& includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{tabularx}
end{figure*}
end{document}
This seems to me is a very correct answer to the literal question the OP asked, but I doubt that this is actually what the OP wants to do. @blues5, please correct me if I'm wrong.
– sheß
1 hour ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
1 hour ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
1 hour ago
@sheß, you are right. meanwhile i correct my answer (according to quite unclear sketch in question}. i still woundering about four captions per images ... mabe op looks forcaption*{< some description>}
or simple list of options. who knows. let us wait what will op say.
– Zarko
1 hour ago
sorry for the poor description. there would be four system output corresponding to each image. say for image 1, i have the original description and three system output.
– blues
54 mins ago
|
show 4 more comments
edit: still guessing ... but now images are in array of 2 x 2 images:
documentclass[twocolumn]{article}
usepackage[export]{adjustbox}
usepackage{tabularx}
usepackage{caption}
usepackage{subcaption}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
begin{document}
begin{figure*}
setkeys{Gin}{width=linewidth}
captionsetup{font=footnotesize, labelfont=bf,
justification=raggedright,
skip=0.5ex, singlelinecheck=false}
setlengthtabcolsep{3pt}
begin{tabularx}{linewidth}{@{} *{4}{X} @{}}
includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
& includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption} \
includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
& includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{tabularx}
end{figure*}
end{document}
This seems to me is a very correct answer to the literal question the OP asked, but I doubt that this is actually what the OP wants to do. @blues5, please correct me if I'm wrong.
– sheß
1 hour ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
1 hour ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
1 hour ago
@sheß, you are right. meanwhile i correct my answer (according to quite unclear sketch in question}. i still woundering about four captions per images ... mabe op looks forcaption*{< some description>}
or simple list of options. who knows. let us wait what will op say.
– Zarko
1 hour ago
sorry for the poor description. there would be four system output corresponding to each image. say for image 1, i have the original description and three system output.
– blues
54 mins ago
|
show 4 more comments
edit: still guessing ... but now images are in array of 2 x 2 images:
documentclass[twocolumn]{article}
usepackage[export]{adjustbox}
usepackage{tabularx}
usepackage{caption}
usepackage{subcaption}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
begin{document}
begin{figure*}
setkeys{Gin}{width=linewidth}
captionsetup{font=footnotesize, labelfont=bf,
justification=raggedright,
skip=0.5ex, singlelinecheck=false}
setlengthtabcolsep{3pt}
begin{tabularx}{linewidth}{@{} *{4}{X} @{}}
includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
& includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption} \
includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
& includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{tabularx}
end{figure*}
end{document}
edit: still guessing ... but now images are in array of 2 x 2 images:
documentclass[twocolumn]{article}
usepackage[export]{adjustbox}
usepackage{tabularx}
usepackage{caption}
usepackage{subcaption}
%---------------- show page layout. don't use in a real document!
usepackage{showframe}
renewcommandShowFrameLinethickness{0.15pt}
renewcommand*ShowFrameColor{color{red}}
%---------------------------------------------------------------%
begin{document}
begin{figure*}
setkeys{Gin}{width=linewidth}
captionsetup{font=footnotesize, labelfont=bf,
justification=raggedright,
skip=0.5ex, singlelinecheck=false}
setlengthtabcolsep{3pt}
begin{tabularx}{linewidth}{@{} *{4}{X} @{}}
includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
& includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption} \
includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
& includegraphics[valign=T]{example-image-duck}
& caption{The first caption}
caption{The second caption}
caption{The third caption}
caption{The fourth caption}
end{tabularx}
end{figure*}
end{document}
edited 1 hour ago
answered 1 hour ago
ZarkoZarko
126k867164
126k867164
This seems to me is a very correct answer to the literal question the OP asked, but I doubt that this is actually what the OP wants to do. @blues5, please correct me if I'm wrong.
– sheß
1 hour ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
1 hour ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
1 hour ago
@sheß, you are right. meanwhile i correct my answer (according to quite unclear sketch in question}. i still woundering about four captions per images ... mabe op looks forcaption*{< some description>}
or simple list of options. who knows. let us wait what will op say.
– Zarko
1 hour ago
sorry for the poor description. there would be four system output corresponding to each image. say for image 1, i have the original description and three system output.
– blues
54 mins ago
|
show 4 more comments
This seems to me is a very correct answer to the literal question the OP asked, but I doubt that this is actually what the OP wants to do. @blues5, please correct me if I'm wrong.
– sheß
1 hour ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
1 hour ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
1 hour ago
@sheß, you are right. meanwhile i correct my answer (according to quite unclear sketch in question}. i still woundering about four captions per images ... mabe op looks forcaption*{< some description>}
or simple list of options. who knows. let us wait what will op say.
– Zarko
1 hour ago
sorry for the poor description. there would be four system output corresponding to each image. say for image 1, i have the original description and three system output.
– blues
54 mins ago
This seems to me is a very correct answer to the literal question the OP asked, but I doubt that this is actually what the OP wants to do. @blues5, please correct me if I'm wrong.
– sheß
1 hour ago
This seems to me is a very correct answer to the literal question the OP asked, but I doubt that this is actually what the OP wants to do. @blues5, please correct me if I'm wrong.
– sheß
1 hour ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
1 hour ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
1 hour ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
1 hour ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
1 hour ago
@sheß, you are right. meanwhile i correct my answer (according to quite unclear sketch in question}. i still woundering about four captions per images ... mabe op looks for
caption*{< some description>}
or simple list of options. who knows. let us wait what will op say.– Zarko
1 hour ago
@sheß, you are right. meanwhile i correct my answer (according to quite unclear sketch in question}. i still woundering about four captions per images ... mabe op looks for
caption*{< some description>}
or simple list of options. who knows. let us wait what will op say.– Zarko
1 hour ago
sorry for the poor description. there would be four system output corresponding to each image. say for image 1, i have the original description and three system output.
– blues
54 mins ago
sorry for the poor description. there would be four system output corresponding to each image. say for image 1, i have the original description and three system output.
– blues
54 mins ago
|
show 4 more comments
blues is a new contributor. Be nice, and check out our Code of Conduct.
blues is a new contributor. Be nice, and check out our Code of Conduct.
blues is a new contributor. Be nice, and check out our Code of Conduct.
blues 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%2f477337%2ffigures-in-a-grid-with-multiple-line-of-texts%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
Welcome to TeX.SE. You could see here, for example, tex.stackexchange.com/questions/126818/… or here tex.stackexchange.com/questions/162824/…
– Sebastiano
3 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
2 hours ago
@Zarko, added. sorry about the orientation.
– blues
2 hours ago
and where are captions? how they are numbered? and really each image has four caption? i never seen something like this demand ... (to my opinion, it does not make sense)
– Zarko
2 hours ago
1
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
1 hour ago