Align column in table on Plus/minus symbol with values of varying length and left adjust header of first...
I would like the data in the "Confidence Limit" column to align on the plus/minus symbol. Here is a link to a similar but different question Aligning +- sign in table. However, the values in my data for this column also vary in length. Additionally, while the numbers in the first column are aligned the way I would like, I wish the header was left aligned.
Here is what the table currently looks like:
This is the code I used to generate the table:
documentclass[letterpaper,11pt,oneside, notitlepage]{article}% calls document type
usepackage[usenames, dvipsnames, table, xcdraw]{xcolor}
usepackage{booktabs}% table utilities
usepackage{siunitx}% number and symbol alignment
begin{document}
begin{table}[htb]
begin{tabular}{SSccc}
toprule
textbf{Mean} & textbf{Confidence Limit} & textbf{Year} & textbf{Broodstock Source} & textbf{Broodstock Type} \ hline
7816 & num{+-1477} & 2016 & Oak Creek & Wild Captive \
rowcolor[HTML]{EFEFEF}
4996 & num{+-262} & 2018 & Salt River & Wild Streamside \
5646 & num{+-328} & 2018 & Salt River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
1939 & num{+-157} & 2018 & Verde River & Wild Streamside \
2362 & num{+-239} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
4012 & num{+-671} & 2018 & Verde River & Wild Streamside \
900 & num{+-335} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
4820 & num{+-47} & 2018 & Verde River & Wild Streamside \
1008 & num{+-134} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
419 & num{+-427} & 2018 & Verde River & Wild Streamside \
2460 & num{+-290} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
1634 & num{+-715} & 2018 & Verde River & Wild Streamside \ bottomrule
end{tabular}
end{table}
end{document}
Any help is appreciated.
tables siunitx booktabs
add a comment |
I would like the data in the "Confidence Limit" column to align on the plus/minus symbol. Here is a link to a similar but different question Aligning +- sign in table. However, the values in my data for this column also vary in length. Additionally, while the numbers in the first column are aligned the way I would like, I wish the header was left aligned.
Here is what the table currently looks like:
This is the code I used to generate the table:
documentclass[letterpaper,11pt,oneside, notitlepage]{article}% calls document type
usepackage[usenames, dvipsnames, table, xcdraw]{xcolor}
usepackage{booktabs}% table utilities
usepackage{siunitx}% number and symbol alignment
begin{document}
begin{table}[htb]
begin{tabular}{SSccc}
toprule
textbf{Mean} & textbf{Confidence Limit} & textbf{Year} & textbf{Broodstock Source} & textbf{Broodstock Type} \ hline
7816 & num{+-1477} & 2016 & Oak Creek & Wild Captive \
rowcolor[HTML]{EFEFEF}
4996 & num{+-262} & 2018 & Salt River & Wild Streamside \
5646 & num{+-328} & 2018 & Salt River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
1939 & num{+-157} & 2018 & Verde River & Wild Streamside \
2362 & num{+-239} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
4012 & num{+-671} & 2018 & Verde River & Wild Streamside \
900 & num{+-335} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
4820 & num{+-47} & 2018 & Verde River & Wild Streamside \
1008 & num{+-134} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
419 & num{+-427} & 2018 & Verde River & Wild Streamside \
2460 & num{+-290} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
1634 & num{+-715} & 2018 & Verde River & Wild Streamside \ bottomrule
end{tabular}
end{table}
end{document}
Any help is appreciated.
tables siunitx booktabs
add a comment |
I would like the data in the "Confidence Limit" column to align on the plus/minus symbol. Here is a link to a similar but different question Aligning +- sign in table. However, the values in my data for this column also vary in length. Additionally, while the numbers in the first column are aligned the way I would like, I wish the header was left aligned.
Here is what the table currently looks like:
This is the code I used to generate the table:
documentclass[letterpaper,11pt,oneside, notitlepage]{article}% calls document type
usepackage[usenames, dvipsnames, table, xcdraw]{xcolor}
usepackage{booktabs}% table utilities
usepackage{siunitx}% number and symbol alignment
begin{document}
begin{table}[htb]
begin{tabular}{SSccc}
toprule
textbf{Mean} & textbf{Confidence Limit} & textbf{Year} & textbf{Broodstock Source} & textbf{Broodstock Type} \ hline
7816 & num{+-1477} & 2016 & Oak Creek & Wild Captive \
rowcolor[HTML]{EFEFEF}
4996 & num{+-262} & 2018 & Salt River & Wild Streamside \
5646 & num{+-328} & 2018 & Salt River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
1939 & num{+-157} & 2018 & Verde River & Wild Streamside \
2362 & num{+-239} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
4012 & num{+-671} & 2018 & Verde River & Wild Streamside \
900 & num{+-335} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
4820 & num{+-47} & 2018 & Verde River & Wild Streamside \
1008 & num{+-134} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
419 & num{+-427} & 2018 & Verde River & Wild Streamside \
2460 & num{+-290} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
1634 & num{+-715} & 2018 & Verde River & Wild Streamside \ bottomrule
end{tabular}
end{table}
end{document}
Any help is appreciated.
tables siunitx booktabs
I would like the data in the "Confidence Limit" column to align on the plus/minus symbol. Here is a link to a similar but different question Aligning +- sign in table. However, the values in my data for this column also vary in length. Additionally, while the numbers in the first column are aligned the way I would like, I wish the header was left aligned.
Here is what the table currently looks like:
This is the code I used to generate the table:
documentclass[letterpaper,11pt,oneside, notitlepage]{article}% calls document type
usepackage[usenames, dvipsnames, table, xcdraw]{xcolor}
usepackage{booktabs}% table utilities
usepackage{siunitx}% number and symbol alignment
begin{document}
begin{table}[htb]
begin{tabular}{SSccc}
toprule
textbf{Mean} & textbf{Confidence Limit} & textbf{Year} & textbf{Broodstock Source} & textbf{Broodstock Type} \ hline
7816 & num{+-1477} & 2016 & Oak Creek & Wild Captive \
rowcolor[HTML]{EFEFEF}
4996 & num{+-262} & 2018 & Salt River & Wild Streamside \
5646 & num{+-328} & 2018 & Salt River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
1939 & num{+-157} & 2018 & Verde River & Wild Streamside \
2362 & num{+-239} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
4012 & num{+-671} & 2018 & Verde River & Wild Streamside \
900 & num{+-335} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
4820 & num{+-47} & 2018 & Verde River & Wild Streamside \
1008 & num{+-134} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
419 & num{+-427} & 2018 & Verde River & Wild Streamside \
2460 & num{+-290} & 2018 & Verde River & Wild Streamside \
rowcolor[HTML]{EFEFEF}
1634 & num{+-715} & 2018 & Verde River & Wild Streamside \ bottomrule
end{tabular}
end{table}
end{document}
Any help is appreciated.
tables siunitx booktabs
tables siunitx booktabs
asked 34 mins ago
Devon OliverDevon Oliver
216
216
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478348%2falign-column-in-table-on-plus-minus-symbol-with-values-of-varying-length-and-lef%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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%2f478348%2falign-column-in-table-on-plus-minus-symbol-with-values-of-varying-length-and-lef%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