One large number in table with decimalsHow to use siunitx and tabularx together?number separator formatting...

How can I portion out frozen cookie dough?

Help! My Character is too much for her story!

Why are partial PostgreSQL HASH indices not smaller than full indices?

Short story about an infectious indestructible metal bar?

Other authors are notified except me, good or bad sign?

Do I need a return ticket to Canada if I'm a Japanese National?

School performs periodic password audits. Is my password compromised?

Why do phishing e-mails use faked e-mail addresses instead of the real one?

How do property taxes on school district bonds work?

Unidentified signals on FT8 frequencies

What exactly is the meaning of "fine wine"?

Why is my explanation wrong?

Can I challenge the interviewer to give me a proper technical feedback?

Create chunks from an array

std::string vs const std::string& vs std::string_view

What can I do if someone tampers with my SSH public key?

How do you make a gun that shoots melee weapons and/or swords?

Is this Paypal Github SDK reference really a dangerous site?

Book where society has been split into 2 with a wall down the middle where one side embraced high tech whereas other side were totally against tech

Precision notation for voltmeters

How to recover against Snake as a heavyweight character?

How to educate team mate to take screenshots for bugs with out unwanted stuff

Draw this image in the TIKZ package

How spaceships determine each other's mass in space?



One large number in table with decimals


How to use siunitx and tabularx together?number separator formatting with ragged right positioning using siunitx, R, Hmisc::latexAlign decimal marker with thousands separator using siunitxScientific Notation Only For Large Numbersusing the package siunitxAlignment in tables using siunitxDuplicate decimal marker (siunitx)Problem aligning decimals in multi-column tableWrong value with Decimals and Uncertainty in siunitxAlign large numbers and small ones on comma and decimal point













1















I am using siunitx to align numbers in a column. Problem is I got by intention one row at the beginning which is a large number, indicated by ',' per 1,000. See the following example.



What I would like to achieve:



1) Align the decimals to the decimal point '.' This is row 2, 3 and 4.



2) center the big numbers, i.e. row 1 and 5 in this example. When I tested different options, the large numbers where always either too much to the left or too much to the right. If possible, they should simply be centered. I believe that makes the most sense in terms of formatting.



Is it possible?



documentclass{article}
usepackage{siunitx}

sisetup{%
input-ignore={,},
input-decimal-markers = {.},
table-format = 2.2,
table-number-alignment = center,
}%

begin{document}
begin{tabular}{SS}
row & alignToDec \
row1: & 19,000,000.0 \
row2: & 12.38 \
row3: & 1.97 \
row4: & 91.01 \
row5: & 87,000,000.0 \
end{tabular}
end{document}








share


















  • 3





    Try adding a pair of braces around the large numbers.

    – Bernard
    3 mins ago
















1















I am using siunitx to align numbers in a column. Problem is I got by intention one row at the beginning which is a large number, indicated by ',' per 1,000. See the following example.



What I would like to achieve:



1) Align the decimals to the decimal point '.' This is row 2, 3 and 4.



2) center the big numbers, i.e. row 1 and 5 in this example. When I tested different options, the large numbers where always either too much to the left or too much to the right. If possible, they should simply be centered. I believe that makes the most sense in terms of formatting.



Is it possible?



documentclass{article}
usepackage{siunitx}

sisetup{%
input-ignore={,},
input-decimal-markers = {.},
table-format = 2.2,
table-number-alignment = center,
}%

begin{document}
begin{tabular}{SS}
row & alignToDec \
row1: & 19,000,000.0 \
row2: & 12.38 \
row3: & 1.97 \
row4: & 91.01 \
row5: & 87,000,000.0 \
end{tabular}
end{document}








share


















  • 3





    Try adding a pair of braces around the large numbers.

    – Bernard
    3 mins ago














1












1








1








I am using siunitx to align numbers in a column. Problem is I got by intention one row at the beginning which is a large number, indicated by ',' per 1,000. See the following example.



What I would like to achieve:



1) Align the decimals to the decimal point '.' This is row 2, 3 and 4.



2) center the big numbers, i.e. row 1 and 5 in this example. When I tested different options, the large numbers where always either too much to the left or too much to the right. If possible, they should simply be centered. I believe that makes the most sense in terms of formatting.



Is it possible?



documentclass{article}
usepackage{siunitx}

sisetup{%
input-ignore={,},
input-decimal-markers = {.},
table-format = 2.2,
table-number-alignment = center,
}%

begin{document}
begin{tabular}{SS}
row & alignToDec \
row1: & 19,000,000.0 \
row2: & 12.38 \
row3: & 1.97 \
row4: & 91.01 \
row5: & 87,000,000.0 \
end{tabular}
end{document}








share














I am using siunitx to align numbers in a column. Problem is I got by intention one row at the beginning which is a large number, indicated by ',' per 1,000. See the following example.



What I would like to achieve:



1) Align the decimals to the decimal point '.' This is row 2, 3 and 4.



2) center the big numbers, i.e. row 1 and 5 in this example. When I tested different options, the large numbers where always either too much to the left or too much to the right. If possible, they should simply be centered. I believe that makes the most sense in terms of formatting.



Is it possible?



documentclass{article}
usepackage{siunitx}

sisetup{%
input-ignore={,},
input-decimal-markers = {.},
table-format = 2.2,
table-number-alignment = center,
}%

begin{document}
begin{tabular}{SS}
row & alignToDec \
row1: & 19,000,000.0 \
row2: & 12.38 \
row3: & 1.97 \
row4: & 91.01 \
row5: & 87,000,000.0 \
end{tabular}
end{document}






luatex siunitx





share












share










share



share










asked 8 mins ago









ghxghx

204




204








  • 3





    Try adding a pair of braces around the large numbers.

    – Bernard
    3 mins ago














  • 3





    Try adding a pair of braces around the large numbers.

    – Bernard
    3 mins ago








3




3





Try adding a pair of braces around the large numbers.

– Bernard
3 mins ago





Try adding a pair of braces around the large numbers.

– Bernard
3 mins ago










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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478492%2fone-large-number-in-table-with-decimals%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
















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478492%2fone-large-number-in-table-with-decimals%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

Castillo d'Acher Características Menú de navegación

Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...