Image side by side with table keeps on not working
Good morning,
I would like to put the picture on the left of the table, all horizontally.
When I try this solution it doesn't work. What changes is the picture and table are aligned with left margin aligned vertically, with both captions remaining centered.
I can't seem to do it at all, can anyone help?
Thanks in advance.
The code is this:
begin{figure}[H]
begin{center}
includegraphics[scale=0.50]{uniformity_machine.PNG}
caption{Uniformity machine}
label{fig:uniformitymachine}
end{center}
end{figure}
{centering hfill
begin{table}[h]
centering
begin{tabular}{| c | c |c | }
hline
small
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}
caption{Uniformity machine specifications}label{tab2}
end{table}
hfill}
This is what it looks like right now:
tables floats horizontal-alignment
New contributor
add a comment |
Good morning,
I would like to put the picture on the left of the table, all horizontally.
When I try this solution it doesn't work. What changes is the picture and table are aligned with left margin aligned vertically, with both captions remaining centered.
I can't seem to do it at all, can anyone help?
Thanks in advance.
The code is this:
begin{figure}[H]
begin{center}
includegraphics[scale=0.50]{uniformity_machine.PNG}
caption{Uniformity machine}
label{fig:uniformitymachine}
end{center}
end{figure}
{centering hfill
begin{table}[h]
centering
begin{tabular}{| c | c |c | }
hline
small
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}
caption{Uniformity machine specifications}label{tab2}
end{table}
hfill}
This is what it looks like right now:
tables floats horizontal-alignment
New contributor
2
Welcome to TeX.SE. Which of the seven answers given in the link you provided did you try to implement?
– Mico
7 hours ago
add a comment |
Good morning,
I would like to put the picture on the left of the table, all horizontally.
When I try this solution it doesn't work. What changes is the picture and table are aligned with left margin aligned vertically, with both captions remaining centered.
I can't seem to do it at all, can anyone help?
Thanks in advance.
The code is this:
begin{figure}[H]
begin{center}
includegraphics[scale=0.50]{uniformity_machine.PNG}
caption{Uniformity machine}
label{fig:uniformitymachine}
end{center}
end{figure}
{centering hfill
begin{table}[h]
centering
begin{tabular}{| c | c |c | }
hline
small
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}
caption{Uniformity machine specifications}label{tab2}
end{table}
hfill}
This is what it looks like right now:
tables floats horizontal-alignment
New contributor
Good morning,
I would like to put the picture on the left of the table, all horizontally.
When I try this solution it doesn't work. What changes is the picture and table are aligned with left margin aligned vertically, with both captions remaining centered.
I can't seem to do it at all, can anyone help?
Thanks in advance.
The code is this:
begin{figure}[H]
begin{center}
includegraphics[scale=0.50]{uniformity_machine.PNG}
caption{Uniformity machine}
label{fig:uniformitymachine}
end{center}
end{figure}
{centering hfill
begin{table}[h]
centering
begin{tabular}{| c | c |c | }
hline
small
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}
caption{Uniformity machine specifications}label{tab2}
end{table}
hfill}
This is what it looks like right now:
tables floats horizontal-alignment
tables floats horizontal-alignment
New contributor
New contributor
edited 7 hours ago
John Kormylo
43.8k12567
43.8k12567
New contributor
asked 7 hours ago
MariaMaria
63
63
New contributor
New contributor
2
Welcome to TeX.SE. Which of the seven answers given in the link you provided did you try to implement?
– Mico
7 hours ago
add a comment |
2
Welcome to TeX.SE. Which of the seven answers given in the link you provided did you try to implement?
– Mico
7 hours ago
2
2
Welcome to TeX.SE. Which of the seven answers given in the link you provided did you try to implement?
– Mico
7 hours ago
Welcome to TeX.SE. Which of the seven answers given in the link you provided did you try to implement?
– Mico
7 hours ago
add a comment |
2 Answers
2
active
oldest
votes
I doubt that your table and image will fit besides each other unless you either reduce the margin size or restructure the table layout.
documentclass{article}
usepackage{caption}
usepackage{graphicx}
usepackage{multirow}
usepackage[hmargin=2cm]{geometry}
begin{document}
noindent%
begin{minipage}{.45textwidth}%
includegraphics[width=textwidth]{example-image-duck}
captionof{figure}{Uniformity machine}
label{fig:uniformitymachine}
end{minipage}%
hfill
begin{minipage}{.5textwidth}
centering
begin{tabular}{| c | c | c | }
hline
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}
captionof{table}{Uniformity machine specifications}
label{tab2}
end{minipage}
end{document}
it worked!!!! thank you so much!
– Maria
7 hours ago
@Maria Good to hear that it worked! If you have some time, please have a look at betterposters.blogspot.com/2012/08/the-data-prison.html
– samcarter
7 hours ago
1
@Maria If samcarter's answer solves your problem, you should mark it as accepted by clicking the tick in the answer.
– JouleV
6 hours ago
add a comment |
You can use the floatrow
environment:
documentclass{book}
usepackage{geometry}
usepackage{subcaption, floatrow, multirow, graphicx}
begin{document}
begin{figure}[!ht]
centeringCenterFloatBoxes
floatsetup{floatrowsep = qquad}
begin{floatrow}[2]
ffigbox[FBwidth]{caption*{Konrad Klapheck: emph{Les Liaisons Dangereuses} (1968)}}{includegraphics[scale=0.35]{klapheck1}}
killfloatstyle
ttabbox{ begin{tabular}{| c | c |c | }
hline
small
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}}{ caption{Uniformity machine specifications}label{tab2}}
end{floatrow}
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
});
}
});
Maria 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%2f469837%2fimage-side-by-side-with-table-keeps-on-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I doubt that your table and image will fit besides each other unless you either reduce the margin size or restructure the table layout.
documentclass{article}
usepackage{caption}
usepackage{graphicx}
usepackage{multirow}
usepackage[hmargin=2cm]{geometry}
begin{document}
noindent%
begin{minipage}{.45textwidth}%
includegraphics[width=textwidth]{example-image-duck}
captionof{figure}{Uniformity machine}
label{fig:uniformitymachine}
end{minipage}%
hfill
begin{minipage}{.5textwidth}
centering
begin{tabular}{| c | c | c | }
hline
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}
captionof{table}{Uniformity machine specifications}
label{tab2}
end{minipage}
end{document}
it worked!!!! thank you so much!
– Maria
7 hours ago
@Maria Good to hear that it worked! If you have some time, please have a look at betterposters.blogspot.com/2012/08/the-data-prison.html
– samcarter
7 hours ago
1
@Maria If samcarter's answer solves your problem, you should mark it as accepted by clicking the tick in the answer.
– JouleV
6 hours ago
add a comment |
I doubt that your table and image will fit besides each other unless you either reduce the margin size or restructure the table layout.
documentclass{article}
usepackage{caption}
usepackage{graphicx}
usepackage{multirow}
usepackage[hmargin=2cm]{geometry}
begin{document}
noindent%
begin{minipage}{.45textwidth}%
includegraphics[width=textwidth]{example-image-duck}
captionof{figure}{Uniformity machine}
label{fig:uniformitymachine}
end{minipage}%
hfill
begin{minipage}{.5textwidth}
centering
begin{tabular}{| c | c | c | }
hline
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}
captionof{table}{Uniformity machine specifications}
label{tab2}
end{minipage}
end{document}
it worked!!!! thank you so much!
– Maria
7 hours ago
@Maria Good to hear that it worked! If you have some time, please have a look at betterposters.blogspot.com/2012/08/the-data-prison.html
– samcarter
7 hours ago
1
@Maria If samcarter's answer solves your problem, you should mark it as accepted by clicking the tick in the answer.
– JouleV
6 hours ago
add a comment |
I doubt that your table and image will fit besides each other unless you either reduce the margin size or restructure the table layout.
documentclass{article}
usepackage{caption}
usepackage{graphicx}
usepackage{multirow}
usepackage[hmargin=2cm]{geometry}
begin{document}
noindent%
begin{minipage}{.45textwidth}%
includegraphics[width=textwidth]{example-image-duck}
captionof{figure}{Uniformity machine}
label{fig:uniformitymachine}
end{minipage}%
hfill
begin{minipage}{.5textwidth}
centering
begin{tabular}{| c | c | c | }
hline
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}
captionof{table}{Uniformity machine specifications}
label{tab2}
end{minipage}
end{document}
I doubt that your table and image will fit besides each other unless you either reduce the margin size or restructure the table layout.
documentclass{article}
usepackage{caption}
usepackage{graphicx}
usepackage{multirow}
usepackage[hmargin=2cm]{geometry}
begin{document}
noindent%
begin{minipage}{.45textwidth}%
includegraphics[width=textwidth]{example-image-duck}
captionof{figure}{Uniformity machine}
label{fig:uniformitymachine}
end{minipage}%
hfill
begin{minipage}{.5textwidth}
centering
begin{tabular}{| c | c | c | }
hline
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}
captionof{table}{Uniformity machine specifications}
label{tab2}
end{minipage}
end{document}
edited 7 hours ago
answered 7 hours ago
samcartersamcarter
86.7k795279
86.7k795279
it worked!!!! thank you so much!
– Maria
7 hours ago
@Maria Good to hear that it worked! If you have some time, please have a look at betterposters.blogspot.com/2012/08/the-data-prison.html
– samcarter
7 hours ago
1
@Maria If samcarter's answer solves your problem, you should mark it as accepted by clicking the tick in the answer.
– JouleV
6 hours ago
add a comment |
it worked!!!! thank you so much!
– Maria
7 hours ago
@Maria Good to hear that it worked! If you have some time, please have a look at betterposters.blogspot.com/2012/08/the-data-prison.html
– samcarter
7 hours ago
1
@Maria If samcarter's answer solves your problem, you should mark it as accepted by clicking the tick in the answer.
– JouleV
6 hours ago
it worked!!!! thank you so much!
– Maria
7 hours ago
it worked!!!! thank you so much!
– Maria
7 hours ago
@Maria Good to hear that it worked! If you have some time, please have a look at betterposters.blogspot.com/2012/08/the-data-prison.html
– samcarter
7 hours ago
@Maria Good to hear that it worked! If you have some time, please have a look at betterposters.blogspot.com/2012/08/the-data-prison.html
– samcarter
7 hours ago
1
1
@Maria If samcarter's answer solves your problem, you should mark it as accepted by clicking the tick in the answer.
– JouleV
6 hours ago
@Maria If samcarter's answer solves your problem, you should mark it as accepted by clicking the tick in the answer.
– JouleV
6 hours ago
add a comment |
You can use the floatrow
environment:
documentclass{book}
usepackage{geometry}
usepackage{subcaption, floatrow, multirow, graphicx}
begin{document}
begin{figure}[!ht]
centeringCenterFloatBoxes
floatsetup{floatrowsep = qquad}
begin{floatrow}[2]
ffigbox[FBwidth]{caption*{Konrad Klapheck: emph{Les Liaisons Dangereuses} (1968)}}{includegraphics[scale=0.35]{klapheck1}}
killfloatstyle
ttabbox{ begin{tabular}{| c | c |c | }
hline
small
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}}{ caption{Uniformity machine specifications}label{tab2}}
end{floatrow}
end{figure}
end{document}
add a comment |
You can use the floatrow
environment:
documentclass{book}
usepackage{geometry}
usepackage{subcaption, floatrow, multirow, graphicx}
begin{document}
begin{figure}[!ht]
centeringCenterFloatBoxes
floatsetup{floatrowsep = qquad}
begin{floatrow}[2]
ffigbox[FBwidth]{caption*{Konrad Klapheck: emph{Les Liaisons Dangereuses} (1968)}}{includegraphics[scale=0.35]{klapheck1}}
killfloatstyle
ttabbox{ begin{tabular}{| c | c |c | }
hline
small
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}}{ caption{Uniformity machine specifications}label{tab2}}
end{floatrow}
end{figure}
end{document}
add a comment |
You can use the floatrow
environment:
documentclass{book}
usepackage{geometry}
usepackage{subcaption, floatrow, multirow, graphicx}
begin{document}
begin{figure}[!ht]
centeringCenterFloatBoxes
floatsetup{floatrowsep = qquad}
begin{floatrow}[2]
ffigbox[FBwidth]{caption*{Konrad Klapheck: emph{Les Liaisons Dangereuses} (1968)}}{includegraphics[scale=0.35]{klapheck1}}
killfloatstyle
ttabbox{ begin{tabular}{| c | c |c | }
hline
small
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}}{ caption{Uniformity machine specifications}label{tab2}}
end{floatrow}
end{figure}
end{document}
You can use the floatrow
environment:
documentclass{book}
usepackage{geometry}
usepackage{subcaption, floatrow, multirow, graphicx}
begin{document}
begin{figure}[!ht]
centeringCenterFloatBoxes
floatsetup{floatrowsep = qquad}
begin{floatrow}[2]
ffigbox[FBwidth]{caption*{Konrad Klapheck: emph{Les Liaisons Dangereuses} (1968)}}{includegraphics[scale=0.35]{klapheck1}}
killfloatstyle
ttabbox{ begin{tabular}{| c | c |c | }
hline
small
textbf{Parameter} & textbf{Value} & textbf{Unit} \
hline
Dimension (wxdxh) & 1 725x2 800x2 500 & mm \
hline
Weight & 3 100 & kg\
hline
Rim diameter & 13 - 25 & in\
hline
multirow{3}{*}{Electrical requirements} & 3 & Phase\
& 400 & V \
& 50 & Hz \
& 35 & A \
hline
Pneumatic requirements & 600 & kPa\
hline
Cycle time & 20 & s\
hline
Cost & NUMBER & EUR \
hline
end{tabular}}{ caption{Uniformity machine specifications}label{tab2}}
end{floatrow}
end{figure}
end{document}
edited 5 hours ago
samcarter
86.7k795279
86.7k795279
answered 6 hours ago
BernardBernard
167k769194
167k769194
add a comment |
add a comment |
Maria is a new contributor. Be nice, and check out our Code of Conduct.
Maria is a new contributor. Be nice, and check out our Code of Conduct.
Maria is a new contributor. Be nice, and check out our Code of Conduct.
Maria 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%2f469837%2fimage-side-by-side-with-table-keeps-on-not-working%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
2
Welcome to TeX.SE. Which of the seven answers given in the link you provided did you try to implement?
– Mico
7 hours ago