Center a table and figure on a page on the same line
up vote
1
down vote
favorite
So I am trying to make a page of a Latex document which has an image next to a table below another image. I was trying to use the subfigure command to center them, but due to the subfigure command automatically trying to call the caption command, this does not work. Is there any workaround, or better way of doing this?
I'm new to Latex, so I know this is probably not an elegant solution to begin with, and am open to suggestions.
The error I am getting back is:
! Package caption Error: setcaptionsubtype outside
float.
documentclass[twoside]{article} %Two-sided document. Required for fancyhf left and right page numbering scheme current.
usepackage{graphicx}
usepackage{fancyhdr} %Use the package fancy header/footer
usepackage[letterpaper,margin=0.5in,bottom=0.75in,top=0.7in]{geometry} %Ensure the paper is letterpaper.
usepackage{grffile}
usepackage{caption}
usepackage{float} %Float used to position graphics.
usepackage{lastpage209} %For last page
usepackage[table,x11names,dvipsnames,table]{xcolor}
usepackage{booktabs,array,arydshln}
usepackage[export]{adjustbox}
usepackage{subcaption}
begin{document}
begin{center}
begin{subfigure}{0.5textwidth}
includegraphics[trim={0 0 0 0},clip,width=2.5in]{{Q:/Assembly Metrology/Bench Figures/LWIR1/mtfstring_0 Degrees, Roll 0 Graph_Legend.pdf}}
captionsetup{labelformat=empty}
end{subfigure}
definecolor{Oddrows}{rgb}{ 0.84,0.84,0.84 }
definecolor{Evenrows}{rgb}{ 1,1,1 }
begin{subfigure}{0.5textwidth}
rowcolors{2}{Oddrows}{Evenrows}
begin{tabular}{ p{0.5in} p{0.5in}}
toprule
multicolumn{1}{>{centering}m{0.5in}}{textbf{Display Freq.}} &
multicolumn{1}{>{centering}m{0.5in}}{textbf{29.4}} \
midrule
raggedright Peak Tan. & centeringarraybackslash 62.4416 \
raggedright Peak Sag. & centeringarraybackslash 62.6273 \
raggedright Peak Avg. & centeringarraybackslash 62.5345 \
raggedright Best Pos. & centeringarraybackslash 1 \
bottomrule
end{tabular}
end{subfigure}
end{center}
end{document}
I've tried to cut out as much code as necessary, but know I am including more packages than I need to as I use them above this snippet of code, but am not familiar enough with Latex to be able to exclude them.
I am using PDFLatex to compile this.
tables pdftex subfloats
add a comment |
up vote
1
down vote
favorite
So I am trying to make a page of a Latex document which has an image next to a table below another image. I was trying to use the subfigure command to center them, but due to the subfigure command automatically trying to call the caption command, this does not work. Is there any workaround, or better way of doing this?
I'm new to Latex, so I know this is probably not an elegant solution to begin with, and am open to suggestions.
The error I am getting back is:
! Package caption Error: setcaptionsubtype outside
float.
documentclass[twoside]{article} %Two-sided document. Required for fancyhf left and right page numbering scheme current.
usepackage{graphicx}
usepackage{fancyhdr} %Use the package fancy header/footer
usepackage[letterpaper,margin=0.5in,bottom=0.75in,top=0.7in]{geometry} %Ensure the paper is letterpaper.
usepackage{grffile}
usepackage{caption}
usepackage{float} %Float used to position graphics.
usepackage{lastpage209} %For last page
usepackage[table,x11names,dvipsnames,table]{xcolor}
usepackage{booktabs,array,arydshln}
usepackage[export]{adjustbox}
usepackage{subcaption}
begin{document}
begin{center}
begin{subfigure}{0.5textwidth}
includegraphics[trim={0 0 0 0},clip,width=2.5in]{{Q:/Assembly Metrology/Bench Figures/LWIR1/mtfstring_0 Degrees, Roll 0 Graph_Legend.pdf}}
captionsetup{labelformat=empty}
end{subfigure}
definecolor{Oddrows}{rgb}{ 0.84,0.84,0.84 }
definecolor{Evenrows}{rgb}{ 1,1,1 }
begin{subfigure}{0.5textwidth}
rowcolors{2}{Oddrows}{Evenrows}
begin{tabular}{ p{0.5in} p{0.5in}}
toprule
multicolumn{1}{>{centering}m{0.5in}}{textbf{Display Freq.}} &
multicolumn{1}{>{centering}m{0.5in}}{textbf{29.4}} \
midrule
raggedright Peak Tan. & centeringarraybackslash 62.4416 \
raggedright Peak Sag. & centeringarraybackslash 62.6273 \
raggedright Peak Avg. & centeringarraybackslash 62.5345 \
raggedright Best Pos. & centeringarraybackslash 1 \
bottomrule
end{tabular}
end{subfigure}
end{center}
end{document}
I've tried to cut out as much code as necessary, but know I am including more packages than I need to as I use them above this snippet of code, but am not familiar enough with Latex to be able to exclude them.
I am using PDFLatex to compile this.
tables pdftex subfloats
welcome to tex.se!
– Zarko
Dec 7 at 14:55
add a comment |
up vote
1
down vote
favorite
up vote
1
down vote
favorite
So I am trying to make a page of a Latex document which has an image next to a table below another image. I was trying to use the subfigure command to center them, but due to the subfigure command automatically trying to call the caption command, this does not work. Is there any workaround, or better way of doing this?
I'm new to Latex, so I know this is probably not an elegant solution to begin with, and am open to suggestions.
The error I am getting back is:
! Package caption Error: setcaptionsubtype outside
float.
documentclass[twoside]{article} %Two-sided document. Required for fancyhf left and right page numbering scheme current.
usepackage{graphicx}
usepackage{fancyhdr} %Use the package fancy header/footer
usepackage[letterpaper,margin=0.5in,bottom=0.75in,top=0.7in]{geometry} %Ensure the paper is letterpaper.
usepackage{grffile}
usepackage{caption}
usepackage{float} %Float used to position graphics.
usepackage{lastpage209} %For last page
usepackage[table,x11names,dvipsnames,table]{xcolor}
usepackage{booktabs,array,arydshln}
usepackage[export]{adjustbox}
usepackage{subcaption}
begin{document}
begin{center}
begin{subfigure}{0.5textwidth}
includegraphics[trim={0 0 0 0},clip,width=2.5in]{{Q:/Assembly Metrology/Bench Figures/LWIR1/mtfstring_0 Degrees, Roll 0 Graph_Legend.pdf}}
captionsetup{labelformat=empty}
end{subfigure}
definecolor{Oddrows}{rgb}{ 0.84,0.84,0.84 }
definecolor{Evenrows}{rgb}{ 1,1,1 }
begin{subfigure}{0.5textwidth}
rowcolors{2}{Oddrows}{Evenrows}
begin{tabular}{ p{0.5in} p{0.5in}}
toprule
multicolumn{1}{>{centering}m{0.5in}}{textbf{Display Freq.}} &
multicolumn{1}{>{centering}m{0.5in}}{textbf{29.4}} \
midrule
raggedright Peak Tan. & centeringarraybackslash 62.4416 \
raggedright Peak Sag. & centeringarraybackslash 62.6273 \
raggedright Peak Avg. & centeringarraybackslash 62.5345 \
raggedright Best Pos. & centeringarraybackslash 1 \
bottomrule
end{tabular}
end{subfigure}
end{center}
end{document}
I've tried to cut out as much code as necessary, but know I am including more packages than I need to as I use them above this snippet of code, but am not familiar enough with Latex to be able to exclude them.
I am using PDFLatex to compile this.
tables pdftex subfloats
So I am trying to make a page of a Latex document which has an image next to a table below another image. I was trying to use the subfigure command to center them, but due to the subfigure command automatically trying to call the caption command, this does not work. Is there any workaround, or better way of doing this?
I'm new to Latex, so I know this is probably not an elegant solution to begin with, and am open to suggestions.
The error I am getting back is:
! Package caption Error: setcaptionsubtype outside
float.
documentclass[twoside]{article} %Two-sided document. Required for fancyhf left and right page numbering scheme current.
usepackage{graphicx}
usepackage{fancyhdr} %Use the package fancy header/footer
usepackage[letterpaper,margin=0.5in,bottom=0.75in,top=0.7in]{geometry} %Ensure the paper is letterpaper.
usepackage{grffile}
usepackage{caption}
usepackage{float} %Float used to position graphics.
usepackage{lastpage209} %For last page
usepackage[table,x11names,dvipsnames,table]{xcolor}
usepackage{booktabs,array,arydshln}
usepackage[export]{adjustbox}
usepackage{subcaption}
begin{document}
begin{center}
begin{subfigure}{0.5textwidth}
includegraphics[trim={0 0 0 0},clip,width=2.5in]{{Q:/Assembly Metrology/Bench Figures/LWIR1/mtfstring_0 Degrees, Roll 0 Graph_Legend.pdf}}
captionsetup{labelformat=empty}
end{subfigure}
definecolor{Oddrows}{rgb}{ 0.84,0.84,0.84 }
definecolor{Evenrows}{rgb}{ 1,1,1 }
begin{subfigure}{0.5textwidth}
rowcolors{2}{Oddrows}{Evenrows}
begin{tabular}{ p{0.5in} p{0.5in}}
toprule
multicolumn{1}{>{centering}m{0.5in}}{textbf{Display Freq.}} &
multicolumn{1}{>{centering}m{0.5in}}{textbf{29.4}} \
midrule
raggedright Peak Tan. & centeringarraybackslash 62.4416 \
raggedright Peak Sag. & centeringarraybackslash 62.6273 \
raggedright Peak Avg. & centeringarraybackslash 62.5345 \
raggedright Best Pos. & centeringarraybackslash 1 \
bottomrule
end{tabular}
end{subfigure}
end{center}
end{document}
I've tried to cut out as much code as necessary, but know I am including more packages than I need to as I use them above this snippet of code, but am not familiar enough with Latex to be able to exclude them.
I am using PDFLatex to compile this.
tables pdftex subfloats
tables pdftex subfloats
asked Dec 7 at 14:26
Colorful Ed
84
84
welcome to tex.se!
– Zarko
Dec 7 at 14:55
add a comment |
welcome to tex.se!
– Zarko
Dec 7 at 14:55
welcome to tex.se!
– Zarko
Dec 7 at 14:55
welcome to tex.se!
– Zarko
Dec 7 at 14:55
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
i suspect that you looking for the following result:
your code has more issues:
- path name should not have spaces (for their use you should use a special package, for it and its use search the site)
- code is full of clutter, so it is easy to lost in it
- purpose of
captionsetup
is not clear. in your mwe you not usecaption
i suggest not to use
subfugure
. instead it standardtabular
will do the job better:
documentclass[twoside]{article} %Two-sided document. Required for fancyhf left and right page numbering scheme current.
usepackage[letterpaper,
margin=0.5in,
bottom=0.75in,
top=0.7in]{geometry} %Ensure the
%usepackage{graphicx} % is loaded by adjustbox
%usepackage{fancyhdr} %Use the package fancy header/footer paper is letterpaper. not used in this mwe
%usepackage{grffile} % i haven't this package
usepackage{caption}
%usepackage{float} %Float used to position graphics. better not to use
usepackage{lastpage209} %For last page -- it is rather obsolete ...
usepackage[table,x11names,dvipsnames,table]{xcolor}
definecolor{Oddrows}{rgb}{ 0.84,0.84,0.84 }
definecolor{Evenrows}{rgb}{ 1,1,1 }
usepackage{booktabs,array,arydshln}
usepackage[export]{adjustbox}
usepackage{caption}
usepackage{subcaption}
usepackage{siunitx} % new, for nicer aligning of numbers in table
usepackage{etoolbox} % new, for making command bfseries robust
begin{document}
begin{center}
robustifybfseries % <---
begin{tabular}{cc}
includegraphics[trim={0 0 0 0},clip, valign=c, width=2.5in]{example-image-duck}
&
rowcolors{2}{Oddrows}{Evenrows}
begin{tabular}{>{raggedright}p{0.5in} S[table-format=2.4,
detect-weight]}
toprule
multicolumn{1}{c}{textbf{Display Freq.}}
& bfseries 29.4 \
midrule
Peak Tan. & 62.4416 \
Peak Sag. & 62.6273 \
Peak Avg. & 62.5345 \
Best Pos. & 1 \
bottomrule
end{tabular}
end{tabular}
end{center}
end{document}
Thank you Zarko. This is definitely what I was looking for. I had a question about the option in the tableS[table-format=2.4]
. What does this do? I also have one image and some formatting I left off of this which uses fancy header/footer.
– Colorful Ed
Dec 10 at 12:59
@ColorfulEd,S[table-format=2.4]
is definition for the second column style (S
columns are defined in thesiunitx
package). it reserved 2 integer and 4 decimal space for numbers, which are aligned at decimal point. if you not liked, you can replace it witc
column specifier and have all numbers centered. now i edit answer and make table more consistent (added are packageetoolbox
any second column header is now aligned at decimal point). if the answer solve your problem, you can accept it (by clicking on check mark at top left aide of the answer).
– Zarko
Dec 10 at 13:29
Got it. Thank you so much Zarko. I appreciate the help!
– Colorful Ed
Dec 10 at 13:57
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',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f463701%2fcenter-a-table-and-figure-on-a-page-on-the-same-line%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
i suspect that you looking for the following result:
your code has more issues:
- path name should not have spaces (for their use you should use a special package, for it and its use search the site)
- code is full of clutter, so it is easy to lost in it
- purpose of
captionsetup
is not clear. in your mwe you not usecaption
i suggest not to use
subfugure
. instead it standardtabular
will do the job better:
documentclass[twoside]{article} %Two-sided document. Required for fancyhf left and right page numbering scheme current.
usepackage[letterpaper,
margin=0.5in,
bottom=0.75in,
top=0.7in]{geometry} %Ensure the
%usepackage{graphicx} % is loaded by adjustbox
%usepackage{fancyhdr} %Use the package fancy header/footer paper is letterpaper. not used in this mwe
%usepackage{grffile} % i haven't this package
usepackage{caption}
%usepackage{float} %Float used to position graphics. better not to use
usepackage{lastpage209} %For last page -- it is rather obsolete ...
usepackage[table,x11names,dvipsnames,table]{xcolor}
definecolor{Oddrows}{rgb}{ 0.84,0.84,0.84 }
definecolor{Evenrows}{rgb}{ 1,1,1 }
usepackage{booktabs,array,arydshln}
usepackage[export]{adjustbox}
usepackage{caption}
usepackage{subcaption}
usepackage{siunitx} % new, for nicer aligning of numbers in table
usepackage{etoolbox} % new, for making command bfseries robust
begin{document}
begin{center}
robustifybfseries % <---
begin{tabular}{cc}
includegraphics[trim={0 0 0 0},clip, valign=c, width=2.5in]{example-image-duck}
&
rowcolors{2}{Oddrows}{Evenrows}
begin{tabular}{>{raggedright}p{0.5in} S[table-format=2.4,
detect-weight]}
toprule
multicolumn{1}{c}{textbf{Display Freq.}}
& bfseries 29.4 \
midrule
Peak Tan. & 62.4416 \
Peak Sag. & 62.6273 \
Peak Avg. & 62.5345 \
Best Pos. & 1 \
bottomrule
end{tabular}
end{tabular}
end{center}
end{document}
Thank you Zarko. This is definitely what I was looking for. I had a question about the option in the tableS[table-format=2.4]
. What does this do? I also have one image and some formatting I left off of this which uses fancy header/footer.
– Colorful Ed
Dec 10 at 12:59
@ColorfulEd,S[table-format=2.4]
is definition for the second column style (S
columns are defined in thesiunitx
package). it reserved 2 integer and 4 decimal space for numbers, which are aligned at decimal point. if you not liked, you can replace it witc
column specifier and have all numbers centered. now i edit answer and make table more consistent (added are packageetoolbox
any second column header is now aligned at decimal point). if the answer solve your problem, you can accept it (by clicking on check mark at top left aide of the answer).
– Zarko
Dec 10 at 13:29
Got it. Thank you so much Zarko. I appreciate the help!
– Colorful Ed
Dec 10 at 13:57
add a comment |
up vote
1
down vote
accepted
i suspect that you looking for the following result:
your code has more issues:
- path name should not have spaces (for their use you should use a special package, for it and its use search the site)
- code is full of clutter, so it is easy to lost in it
- purpose of
captionsetup
is not clear. in your mwe you not usecaption
i suggest not to use
subfugure
. instead it standardtabular
will do the job better:
documentclass[twoside]{article} %Two-sided document. Required for fancyhf left and right page numbering scheme current.
usepackage[letterpaper,
margin=0.5in,
bottom=0.75in,
top=0.7in]{geometry} %Ensure the
%usepackage{graphicx} % is loaded by adjustbox
%usepackage{fancyhdr} %Use the package fancy header/footer paper is letterpaper. not used in this mwe
%usepackage{grffile} % i haven't this package
usepackage{caption}
%usepackage{float} %Float used to position graphics. better not to use
usepackage{lastpage209} %For last page -- it is rather obsolete ...
usepackage[table,x11names,dvipsnames,table]{xcolor}
definecolor{Oddrows}{rgb}{ 0.84,0.84,0.84 }
definecolor{Evenrows}{rgb}{ 1,1,1 }
usepackage{booktabs,array,arydshln}
usepackage[export]{adjustbox}
usepackage{caption}
usepackage{subcaption}
usepackage{siunitx} % new, for nicer aligning of numbers in table
usepackage{etoolbox} % new, for making command bfseries robust
begin{document}
begin{center}
robustifybfseries % <---
begin{tabular}{cc}
includegraphics[trim={0 0 0 0},clip, valign=c, width=2.5in]{example-image-duck}
&
rowcolors{2}{Oddrows}{Evenrows}
begin{tabular}{>{raggedright}p{0.5in} S[table-format=2.4,
detect-weight]}
toprule
multicolumn{1}{c}{textbf{Display Freq.}}
& bfseries 29.4 \
midrule
Peak Tan. & 62.4416 \
Peak Sag. & 62.6273 \
Peak Avg. & 62.5345 \
Best Pos. & 1 \
bottomrule
end{tabular}
end{tabular}
end{center}
end{document}
Thank you Zarko. This is definitely what I was looking for. I had a question about the option in the tableS[table-format=2.4]
. What does this do? I also have one image and some formatting I left off of this which uses fancy header/footer.
– Colorful Ed
Dec 10 at 12:59
@ColorfulEd,S[table-format=2.4]
is definition for the second column style (S
columns are defined in thesiunitx
package). it reserved 2 integer and 4 decimal space for numbers, which are aligned at decimal point. if you not liked, you can replace it witc
column specifier and have all numbers centered. now i edit answer and make table more consistent (added are packageetoolbox
any second column header is now aligned at decimal point). if the answer solve your problem, you can accept it (by clicking on check mark at top left aide of the answer).
– Zarko
Dec 10 at 13:29
Got it. Thank you so much Zarko. I appreciate the help!
– Colorful Ed
Dec 10 at 13:57
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
i suspect that you looking for the following result:
your code has more issues:
- path name should not have spaces (for their use you should use a special package, for it and its use search the site)
- code is full of clutter, so it is easy to lost in it
- purpose of
captionsetup
is not clear. in your mwe you not usecaption
i suggest not to use
subfugure
. instead it standardtabular
will do the job better:
documentclass[twoside]{article} %Two-sided document. Required for fancyhf left and right page numbering scheme current.
usepackage[letterpaper,
margin=0.5in,
bottom=0.75in,
top=0.7in]{geometry} %Ensure the
%usepackage{graphicx} % is loaded by adjustbox
%usepackage{fancyhdr} %Use the package fancy header/footer paper is letterpaper. not used in this mwe
%usepackage{grffile} % i haven't this package
usepackage{caption}
%usepackage{float} %Float used to position graphics. better not to use
usepackage{lastpage209} %For last page -- it is rather obsolete ...
usepackage[table,x11names,dvipsnames,table]{xcolor}
definecolor{Oddrows}{rgb}{ 0.84,0.84,0.84 }
definecolor{Evenrows}{rgb}{ 1,1,1 }
usepackage{booktabs,array,arydshln}
usepackage[export]{adjustbox}
usepackage{caption}
usepackage{subcaption}
usepackage{siunitx} % new, for nicer aligning of numbers in table
usepackage{etoolbox} % new, for making command bfseries robust
begin{document}
begin{center}
robustifybfseries % <---
begin{tabular}{cc}
includegraphics[trim={0 0 0 0},clip, valign=c, width=2.5in]{example-image-duck}
&
rowcolors{2}{Oddrows}{Evenrows}
begin{tabular}{>{raggedright}p{0.5in} S[table-format=2.4,
detect-weight]}
toprule
multicolumn{1}{c}{textbf{Display Freq.}}
& bfseries 29.4 \
midrule
Peak Tan. & 62.4416 \
Peak Sag. & 62.6273 \
Peak Avg. & 62.5345 \
Best Pos. & 1 \
bottomrule
end{tabular}
end{tabular}
end{center}
end{document}
i suspect that you looking for the following result:
your code has more issues:
- path name should not have spaces (for their use you should use a special package, for it and its use search the site)
- code is full of clutter, so it is easy to lost in it
- purpose of
captionsetup
is not clear. in your mwe you not usecaption
i suggest not to use
subfugure
. instead it standardtabular
will do the job better:
documentclass[twoside]{article} %Two-sided document. Required for fancyhf left and right page numbering scheme current.
usepackage[letterpaper,
margin=0.5in,
bottom=0.75in,
top=0.7in]{geometry} %Ensure the
%usepackage{graphicx} % is loaded by adjustbox
%usepackage{fancyhdr} %Use the package fancy header/footer paper is letterpaper. not used in this mwe
%usepackage{grffile} % i haven't this package
usepackage{caption}
%usepackage{float} %Float used to position graphics. better not to use
usepackage{lastpage209} %For last page -- it is rather obsolete ...
usepackage[table,x11names,dvipsnames,table]{xcolor}
definecolor{Oddrows}{rgb}{ 0.84,0.84,0.84 }
definecolor{Evenrows}{rgb}{ 1,1,1 }
usepackage{booktabs,array,arydshln}
usepackage[export]{adjustbox}
usepackage{caption}
usepackage{subcaption}
usepackage{siunitx} % new, for nicer aligning of numbers in table
usepackage{etoolbox} % new, for making command bfseries robust
begin{document}
begin{center}
robustifybfseries % <---
begin{tabular}{cc}
includegraphics[trim={0 0 0 0},clip, valign=c, width=2.5in]{example-image-duck}
&
rowcolors{2}{Oddrows}{Evenrows}
begin{tabular}{>{raggedright}p{0.5in} S[table-format=2.4,
detect-weight]}
toprule
multicolumn{1}{c}{textbf{Display Freq.}}
& bfseries 29.4 \
midrule
Peak Tan. & 62.4416 \
Peak Sag. & 62.6273 \
Peak Avg. & 62.5345 \
Best Pos. & 1 \
bottomrule
end{tabular}
end{tabular}
end{center}
end{document}
edited Dec 10 at 13:30
answered Dec 7 at 14:48
Zarko
119k865155
119k865155
Thank you Zarko. This is definitely what I was looking for. I had a question about the option in the tableS[table-format=2.4]
. What does this do? I also have one image and some formatting I left off of this which uses fancy header/footer.
– Colorful Ed
Dec 10 at 12:59
@ColorfulEd,S[table-format=2.4]
is definition for the second column style (S
columns are defined in thesiunitx
package). it reserved 2 integer and 4 decimal space for numbers, which are aligned at decimal point. if you not liked, you can replace it witc
column specifier and have all numbers centered. now i edit answer and make table more consistent (added are packageetoolbox
any second column header is now aligned at decimal point). if the answer solve your problem, you can accept it (by clicking on check mark at top left aide of the answer).
– Zarko
Dec 10 at 13:29
Got it. Thank you so much Zarko. I appreciate the help!
– Colorful Ed
Dec 10 at 13:57
add a comment |
Thank you Zarko. This is definitely what I was looking for. I had a question about the option in the tableS[table-format=2.4]
. What does this do? I also have one image and some formatting I left off of this which uses fancy header/footer.
– Colorful Ed
Dec 10 at 12:59
@ColorfulEd,S[table-format=2.4]
is definition for the second column style (S
columns are defined in thesiunitx
package). it reserved 2 integer and 4 decimal space for numbers, which are aligned at decimal point. if you not liked, you can replace it witc
column specifier and have all numbers centered. now i edit answer and make table more consistent (added are packageetoolbox
any second column header is now aligned at decimal point). if the answer solve your problem, you can accept it (by clicking on check mark at top left aide of the answer).
– Zarko
Dec 10 at 13:29
Got it. Thank you so much Zarko. I appreciate the help!
– Colorful Ed
Dec 10 at 13:57
Thank you Zarko. This is definitely what I was looking for. I had a question about the option in the table
S[table-format=2.4]
. What does this do? I also have one image and some formatting I left off of this which uses fancy header/footer.– Colorful Ed
Dec 10 at 12:59
Thank you Zarko. This is definitely what I was looking for. I had a question about the option in the table
S[table-format=2.4]
. What does this do? I also have one image and some formatting I left off of this which uses fancy header/footer.– Colorful Ed
Dec 10 at 12:59
@ColorfulEd,
S[table-format=2.4]
is definition for the second column style (S
columns are defined in the siunitx
package). it reserved 2 integer and 4 decimal space for numbers, which are aligned at decimal point. if you not liked, you can replace it wit c
column specifier and have all numbers centered. now i edit answer and make table more consistent (added are package etoolbox
any second column header is now aligned at decimal point). if the answer solve your problem, you can accept it (by clicking on check mark at top left aide of the answer).– Zarko
Dec 10 at 13:29
@ColorfulEd,
S[table-format=2.4]
is definition for the second column style (S
columns are defined in the siunitx
package). it reserved 2 integer and 4 decimal space for numbers, which are aligned at decimal point. if you not liked, you can replace it wit c
column specifier and have all numbers centered. now i edit answer and make table more consistent (added are package etoolbox
any second column header is now aligned at decimal point). if the answer solve your problem, you can accept it (by clicking on check mark at top left aide of the answer).– Zarko
Dec 10 at 13:29
Got it. Thank you so much Zarko. I appreciate the help!
– Colorful Ed
Dec 10 at 13:57
Got it. Thank you so much Zarko. I appreciate the help!
– Colorful Ed
Dec 10 at 13:57
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2f463701%2fcenter-a-table-and-figure-on-a-page-on-the-same-line%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
welcome to tex.se!
– Zarko
Dec 7 at 14:55