figures in a grid with multiple line of texts
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
9 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
8 hours ago
@Zarko, added. sorry about the orientation.
– blues
7 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
7 hours ago
1
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
7 hours 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 7 hours ago
blues
New contributor
asked 9 hours ago
bluesblues
113
113
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
9 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
8 hours ago
@Zarko, added. sorry about the orientation.
– blues
7 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
7 hours ago
1
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
7 hours 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
9 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
8 hours ago
@Zarko, added. sorry about the orientation.
– blues
7 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
7 hours ago
1
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
7 hours 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
9 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
9 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
8 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
8 hours ago
@Zarko, added. sorry about the orientation.
– blues
7 hours ago
@Zarko, added. sorry about the orientation.
– blues
7 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
7 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
7 hours ago
1
1
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
7 hours ago
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
7 hours 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ß
7 hours ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
7 hours ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
6 hours 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
6 hours 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
6 hours 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 7 hours ago
answered 7 hours ago
leandriisleandriis
9,2351530
9,2351530
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ß
7 hours ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
7 hours ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
6 hours 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
6 hours 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
6 hours 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ß
7 hours ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
7 hours ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
6 hours 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
6 hours 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
6 hours 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 7 hours ago
answered 7 hours 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ß
7 hours ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
7 hours ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
6 hours 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
6 hours 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
6 hours 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ß
7 hours ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
7 hours ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
6 hours 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
6 hours 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
6 hours 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ß
7 hours 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ß
7 hours ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
7 hours ago
posted the new code. but it still looks terrible. inserting a minipage within minipage might take care for the alignment i guess
– blues
7 hours ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
6 hours ago
@blues, your mwe contain errors (missed packages, etc}. anyway, see, if my edited answer is close to what you like to have.
– Zarko
6 hours 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
6 hours 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
6 hours 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
6 hours 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
6 hours 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
9 hours ago
one figure with four captions? please, show a sketch of how this should look like.
– Zarko
8 hours ago
@Zarko, added. sorry about the orientation.
– blues
7 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
7 hours ago
1
Hey @blues5, are you sure you need actual captions? Wouldn't 4 simple lines of text be sufficient?
– sheß
7 hours ago