Emphasize numbers in tablesAlign numbers by decimal point using siunitx and bfseriessiunitx: aligning numbers by decimal points in tables doesn't work for bolded or italicized numbersNumbers in tables: align by decimal point *and* flush right?Aligning multiple tablesAligning multiple tabu tablesaligning question numbers, paragraphsAlign numbers and separated uncertainties in tables with S columnsaligning numbers with brackets in tablesText aligning like numbers aligningHow to align the the numbers horizontally?long list set of numbers
Why is my 401k manager recommending me to save more?
What type of education should I select in this form?
Why did the Middle Kingdom stop building pyramid tombs?
When does it become illegal to exchange bitcoin for cash?
Confusion in understanding the behavior of inductor in RL circuit with DC source
How far can gerrymandering go?
Can I hire several veteran soldiers to accompany me?
Is this house-rule removing the increased effect of cantrips at higher character levels balanced?
Is it theoretically possible to hack printer using scanner tray?
Is there a word for the act of simultaneously pulling and twisting an object?
Installed software from source, how to say yum not to install it from package?
Are all notation equal by derivatives?
Why should I allow multiple IP addresses on a website for a single session?
Cannot overlay, because ListPlot does not draw same X range despite the same PlotRange
Why are symbols not written in words?
usage of y" not just for locations?
*p++->str : Understanding evaluation of ->
What is this fluorinated organic substance?
Simplify the code
"Best practices" for formulating MIPs
Sentences with no verb, but an ablative
Displace Mesh along Curve on single axis
Variable declaration inside main loop
Why is the saxophone not common in classical repertoire?
Emphasize numbers in tables
Align numbers by decimal point using siunitx and bfseriessiunitx: aligning numbers by decimal points in tables doesn't work for bolded or italicized numbersNumbers in tables: align by decimal point *and* flush right?Aligning multiple tablesAligning multiple tabu tablesaligning question numbers, paragraphsAlign numbers and separated uncertainties in tables with S columnsaligning numbers with brackets in tablesText aligning like numbers aligningHow to align the the numbers horizontally?long list set of numbers
I want to have some numbers in my table bold. But get some troubles with the decimal points of the numbers. Here is my code for it:
begindocument
begintable[htbp]
centering
caption
begintabularS
toprule
multicolumn1rmultirow2[2]*$r$ & multicolumn1rmultirow2[2]*$IC_1$ & multicolumn1rmultirow2[2]*$IC_2$ & multicolumn1rmultirow2[2]*$IC_3$ & multicolumn1rmultirow2[2]*$IC_1$ & multicolumn1rmultirow2[2]*$IC_2$ & multicolumn1rmultirow2[2]*$IC_3$ & multicolumn1cmultirow2[2]*$mu_i$ \
multicolumn1r & & & multicolumn1r & & & multicolumn1r & \
midrule
1 & 0.60 & 0.65 & 0.65 & 0.61 & 0.66 & $mathbf0.79$ & 0.40 \
2 & 0.45 & 0.55 & 0.55 & 0.46 & 0.56 & 0.84 & 0.15 \
3 & 0.35 & 0.49 & 0.50 & 0.37 & 0.52 & 0.93 & 0.10 \
4 & 0.26 & 0.45 & 0.45 & 0.28 & 0.48 & 1.02 & 0.10 \
toprule
endtabular%
labeltab:addlabel%
endtable%
enddocument
Is there some general solutions, which can be used for other tables as well? Thank you!
horizontal-alignment
add a comment |
I want to have some numbers in my table bold. But get some troubles with the decimal points of the numbers. Here is my code for it:
begindocument
begintable[htbp]
centering
caption
begintabularS
toprule
multicolumn1rmultirow2[2]*$r$ & multicolumn1rmultirow2[2]*$IC_1$ & multicolumn1rmultirow2[2]*$IC_2$ & multicolumn1rmultirow2[2]*$IC_3$ & multicolumn1rmultirow2[2]*$IC_1$ & multicolumn1rmultirow2[2]*$IC_2$ & multicolumn1rmultirow2[2]*$IC_3$ & multicolumn1cmultirow2[2]*$mu_i$ \
multicolumn1r & & & multicolumn1r & & & multicolumn1r & \
midrule
1 & 0.60 & 0.65 & 0.65 & 0.61 & 0.66 & $mathbf0.79$ & 0.40 \
2 & 0.45 & 0.55 & 0.55 & 0.46 & 0.56 & 0.84 & 0.15 \
3 & 0.35 & 0.49 & 0.50 & 0.37 & 0.52 & 0.93 & 0.10 \
4 & 0.26 & 0.45 & 0.45 & 0.28 & 0.48 & 1.02 & 0.10 \
toprule
endtabular%
labeltab:addlabel%
endtable%
enddocument
Is there some general solutions, which can be used for other tables as well? Thank you!
horizontal-alignment
Potential duplicate: Align numbers by decimal point using siunitx and bfseries
– barbara beeton
10 hours ago
add a comment |
I want to have some numbers in my table bold. But get some troubles with the decimal points of the numbers. Here is my code for it:
begindocument
begintable[htbp]
centering
caption
begintabularS
toprule
multicolumn1rmultirow2[2]*$r$ & multicolumn1rmultirow2[2]*$IC_1$ & multicolumn1rmultirow2[2]*$IC_2$ & multicolumn1rmultirow2[2]*$IC_3$ & multicolumn1rmultirow2[2]*$IC_1$ & multicolumn1rmultirow2[2]*$IC_2$ & multicolumn1rmultirow2[2]*$IC_3$ & multicolumn1cmultirow2[2]*$mu_i$ \
multicolumn1r & & & multicolumn1r & & & multicolumn1r & \
midrule
1 & 0.60 & 0.65 & 0.65 & 0.61 & 0.66 & $mathbf0.79$ & 0.40 \
2 & 0.45 & 0.55 & 0.55 & 0.46 & 0.56 & 0.84 & 0.15 \
3 & 0.35 & 0.49 & 0.50 & 0.37 & 0.52 & 0.93 & 0.10 \
4 & 0.26 & 0.45 & 0.45 & 0.28 & 0.48 & 1.02 & 0.10 \
toprule
endtabular%
labeltab:addlabel%
endtable%
enddocument
Is there some general solutions, which can be used for other tables as well? Thank you!
horizontal-alignment
I want to have some numbers in my table bold. But get some troubles with the decimal points of the numbers. Here is my code for it:
begindocument
begintable[htbp]
centering
caption
begintabularS
toprule
multicolumn1rmultirow2[2]*$r$ & multicolumn1rmultirow2[2]*$IC_1$ & multicolumn1rmultirow2[2]*$IC_2$ & multicolumn1rmultirow2[2]*$IC_3$ & multicolumn1rmultirow2[2]*$IC_1$ & multicolumn1rmultirow2[2]*$IC_2$ & multicolumn1rmultirow2[2]*$IC_3$ & multicolumn1cmultirow2[2]*$mu_i$ \
multicolumn1r & & & multicolumn1r & & & multicolumn1r & \
midrule
1 & 0.60 & 0.65 & 0.65 & 0.61 & 0.66 & $mathbf0.79$ & 0.40 \
2 & 0.45 & 0.55 & 0.55 & 0.46 & 0.56 & 0.84 & 0.15 \
3 & 0.35 & 0.49 & 0.50 & 0.37 & 0.52 & 0.93 & 0.10 \
4 & 0.26 & 0.45 & 0.45 & 0.28 & 0.48 & 1.02 & 0.10 \
toprule
endtabular%
labeltab:addlabel%
endtable%
enddocument
Is there some general solutions, which can be used for other tables as well? Thank you!
horizontal-alignment
horizontal-alignment
edited 10 hours ago
egreg
752k89 gold badges1971 silver badges3311 bronze badges
752k89 gold badges1971 silver badges3311 bronze badges
asked 10 hours ago
alixalix
432 bronze badges
432 bronze badges
Potential duplicate: Align numbers by decimal point using siunitx and bfseries
– barbara beeton
10 hours ago
add a comment |
Potential duplicate: Align numbers by decimal point using siunitx and bfseries
– barbara beeton
10 hours ago
Potential duplicate: Align numbers by decimal point using siunitx and bfseries
– barbara beeton
10 hours ago
Potential duplicate: Align numbers by decimal point using siunitx and bfseries
– barbara beeton
10 hours ago
add a comment |
1 Answer
1
active
oldest
votes
Use the proper siunitx
feature:
documentclassarticle
usepackagesiunitx,booktabs,caption
begindocument
begintable[htbp]
centering
captionlabeltab:addlabel
begintabular
r
*7S[table-format=1.2]
toprule
addlinespace[6pt]
$r$ & $IC_1$ & $IC_2$ & $IC_3$ & $IC_1$ & $IC_2$ & $IC_3$ & $mu_i$ \
addlinespace[3pt]
midrule
1 & 0.60 & 0.65 & 0.65 & 0.61 & 0.66 & bfseries 0.79 & 0.40 \
2 & 0.45 & 0.55 & 0.55 & 0.46 & 0.56 & 0.84 & 0.15 \
3 & 0.35 & 0.49 & 0.50 & 0.37 & 0.52 & 0.93 & 0.10 \
4 & 0.26 & 0.45 & 0.45 & 0.28 & 0.48 & 1.02 & 0.10 \
bottomrule
endtabular
endtable
enddocument
I removed the multirow
tricks; if you really want more vertical space before and after the column headers, use addlinespace
as shown; but it's not required and I wouldn't do it.
thank u for your reply. just for understanding: u defined 7 columns with the S command from package siunitx and u defined manually the table-format with 1.2, which should indicate one number infront of the decimal point and 2 numbers after the decimal point? thank you
– alix
10 hours ago
@alix correctly deduced.
– Skillmon
10 hours ago
@alix Yes; only specifyingS
gives a default, which might not be good for the specific table.
– egreg
10 hours ago
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
);
);
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%2f498068%2femphasize-numbers-in-tables%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
Use the proper siunitx
feature:
documentclassarticle
usepackagesiunitx,booktabs,caption
begindocument
begintable[htbp]
centering
captionlabeltab:addlabel
begintabular
r
*7S[table-format=1.2]
toprule
addlinespace[6pt]
$r$ & $IC_1$ & $IC_2$ & $IC_3$ & $IC_1$ & $IC_2$ & $IC_3$ & $mu_i$ \
addlinespace[3pt]
midrule
1 & 0.60 & 0.65 & 0.65 & 0.61 & 0.66 & bfseries 0.79 & 0.40 \
2 & 0.45 & 0.55 & 0.55 & 0.46 & 0.56 & 0.84 & 0.15 \
3 & 0.35 & 0.49 & 0.50 & 0.37 & 0.52 & 0.93 & 0.10 \
4 & 0.26 & 0.45 & 0.45 & 0.28 & 0.48 & 1.02 & 0.10 \
bottomrule
endtabular
endtable
enddocument
I removed the multirow
tricks; if you really want more vertical space before and after the column headers, use addlinespace
as shown; but it's not required and I wouldn't do it.
thank u for your reply. just for understanding: u defined 7 columns with the S command from package siunitx and u defined manually the table-format with 1.2, which should indicate one number infront of the decimal point and 2 numbers after the decimal point? thank you
– alix
10 hours ago
@alix correctly deduced.
– Skillmon
10 hours ago
@alix Yes; only specifyingS
gives a default, which might not be good for the specific table.
– egreg
10 hours ago
add a comment |
Use the proper siunitx
feature:
documentclassarticle
usepackagesiunitx,booktabs,caption
begindocument
begintable[htbp]
centering
captionlabeltab:addlabel
begintabular
r
*7S[table-format=1.2]
toprule
addlinespace[6pt]
$r$ & $IC_1$ & $IC_2$ & $IC_3$ & $IC_1$ & $IC_2$ & $IC_3$ & $mu_i$ \
addlinespace[3pt]
midrule
1 & 0.60 & 0.65 & 0.65 & 0.61 & 0.66 & bfseries 0.79 & 0.40 \
2 & 0.45 & 0.55 & 0.55 & 0.46 & 0.56 & 0.84 & 0.15 \
3 & 0.35 & 0.49 & 0.50 & 0.37 & 0.52 & 0.93 & 0.10 \
4 & 0.26 & 0.45 & 0.45 & 0.28 & 0.48 & 1.02 & 0.10 \
bottomrule
endtabular
endtable
enddocument
I removed the multirow
tricks; if you really want more vertical space before and after the column headers, use addlinespace
as shown; but it's not required and I wouldn't do it.
thank u for your reply. just for understanding: u defined 7 columns with the S command from package siunitx and u defined manually the table-format with 1.2, which should indicate one number infront of the decimal point and 2 numbers after the decimal point? thank you
– alix
10 hours ago
@alix correctly deduced.
– Skillmon
10 hours ago
@alix Yes; only specifyingS
gives a default, which might not be good for the specific table.
– egreg
10 hours ago
add a comment |
Use the proper siunitx
feature:
documentclassarticle
usepackagesiunitx,booktabs,caption
begindocument
begintable[htbp]
centering
captionlabeltab:addlabel
begintabular
r
*7S[table-format=1.2]
toprule
addlinespace[6pt]
$r$ & $IC_1$ & $IC_2$ & $IC_3$ & $IC_1$ & $IC_2$ & $IC_3$ & $mu_i$ \
addlinespace[3pt]
midrule
1 & 0.60 & 0.65 & 0.65 & 0.61 & 0.66 & bfseries 0.79 & 0.40 \
2 & 0.45 & 0.55 & 0.55 & 0.46 & 0.56 & 0.84 & 0.15 \
3 & 0.35 & 0.49 & 0.50 & 0.37 & 0.52 & 0.93 & 0.10 \
4 & 0.26 & 0.45 & 0.45 & 0.28 & 0.48 & 1.02 & 0.10 \
bottomrule
endtabular
endtable
enddocument
I removed the multirow
tricks; if you really want more vertical space before and after the column headers, use addlinespace
as shown; but it's not required and I wouldn't do it.
Use the proper siunitx
feature:
documentclassarticle
usepackagesiunitx,booktabs,caption
begindocument
begintable[htbp]
centering
captionlabeltab:addlabel
begintabular
r
*7S[table-format=1.2]
toprule
addlinespace[6pt]
$r$ & $IC_1$ & $IC_2$ & $IC_3$ & $IC_1$ & $IC_2$ & $IC_3$ & $mu_i$ \
addlinespace[3pt]
midrule
1 & 0.60 & 0.65 & 0.65 & 0.61 & 0.66 & bfseries 0.79 & 0.40 \
2 & 0.45 & 0.55 & 0.55 & 0.46 & 0.56 & 0.84 & 0.15 \
3 & 0.35 & 0.49 & 0.50 & 0.37 & 0.52 & 0.93 & 0.10 \
4 & 0.26 & 0.45 & 0.45 & 0.28 & 0.48 & 1.02 & 0.10 \
bottomrule
endtabular
endtable
enddocument
I removed the multirow
tricks; if you really want more vertical space before and after the column headers, use addlinespace
as shown; but it's not required and I wouldn't do it.
answered 10 hours ago
egregegreg
752k89 gold badges1971 silver badges3311 bronze badges
752k89 gold badges1971 silver badges3311 bronze badges
thank u for your reply. just for understanding: u defined 7 columns with the S command from package siunitx and u defined manually the table-format with 1.2, which should indicate one number infront of the decimal point and 2 numbers after the decimal point? thank you
– alix
10 hours ago
@alix correctly deduced.
– Skillmon
10 hours ago
@alix Yes; only specifyingS
gives a default, which might not be good for the specific table.
– egreg
10 hours ago
add a comment |
thank u for your reply. just for understanding: u defined 7 columns with the S command from package siunitx and u defined manually the table-format with 1.2, which should indicate one number infront of the decimal point and 2 numbers after the decimal point? thank you
– alix
10 hours ago
@alix correctly deduced.
– Skillmon
10 hours ago
@alix Yes; only specifyingS
gives a default, which might not be good for the specific table.
– egreg
10 hours ago
thank u for your reply. just for understanding: u defined 7 columns with the S command from package siunitx and u defined manually the table-format with 1.2, which should indicate one number infront of the decimal point and 2 numbers after the decimal point? thank you
– alix
10 hours ago
thank u for your reply. just for understanding: u defined 7 columns with the S command from package siunitx and u defined manually the table-format with 1.2, which should indicate one number infront of the decimal point and 2 numbers after the decimal point? thank you
– alix
10 hours ago
@alix correctly deduced.
– Skillmon
10 hours ago
@alix correctly deduced.
– Skillmon
10 hours ago
@alix Yes; only specifying
S
gives a default, which might not be good for the specific table.– egreg
10 hours ago
@alix Yes; only specifying
S
gives a default, which might not be good for the specific table.– egreg
10 hours ago
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.
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%2f498068%2femphasize-numbers-in-tables%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
Potential duplicate: Align numbers by decimal point using siunitx and bfseries
– barbara beeton
10 hours ago