Align numbers in table with scientific notation and minus sign
Clash Royale CLAN TAG#URR8PPP
up vote
6
down vote
favorite
I would like the numbers to be aligned by multiplication signs on this table. I have tried to use the option table-format
in what it looks like the right way to me, but actually I haven't found any explanation about it in the booktabs documentation.
Are there other options I could use? And do you also know where to find a good documentation about them?
documentclassarticle
usepackagebooktabs
usepackagesiunitx
begindocument
begintable[h!]
centering
begintabularlS[table-format=-1.1e-1]S[table-format=-1.1e-1]
toprule
& $m$ & $q$ \
midrule
Total death toll & num-9.8e-5 & num2.0e-1 \
Climatic hazards & num-1.0e-4 & num2.1e-1 \
Earthquakes & num6.0e-6 & num-1.1e-2 \
Mass movements & num-1.8e-8 & num5.1e-5 \
Volcanic hazards & num-2.7e-7 & num5.4e-4 \
bottomrule
endtabular
captionFit parameters for death toll per population and per year for the classes of geohazards.
labelt1
endtable
enddocument
siunitx booktabs
New contributor
Elisa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
6
down vote
favorite
I would like the numbers to be aligned by multiplication signs on this table. I have tried to use the option table-format
in what it looks like the right way to me, but actually I haven't found any explanation about it in the booktabs documentation.
Are there other options I could use? And do you also know where to find a good documentation about them?
documentclassarticle
usepackagebooktabs
usepackagesiunitx
begindocument
begintable[h!]
centering
begintabularlS[table-format=-1.1e-1]S[table-format=-1.1e-1]
toprule
& $m$ & $q$ \
midrule
Total death toll & num-9.8e-5 & num2.0e-1 \
Climatic hazards & num-1.0e-4 & num2.1e-1 \
Earthquakes & num6.0e-6 & num-1.1e-2 \
Mass movements & num-1.8e-8 & num5.1e-5 \
Volcanic hazards & num-2.7e-7 & num5.4e-4 \
bottomrule
endtabular
captionFit parameters for death toll per population and per year for the classes of geohazards.
labelt1
endtable
enddocument
siunitx booktabs
New contributor
Elisa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
up vote
6
down vote
favorite
up vote
6
down vote
favorite
I would like the numbers to be aligned by multiplication signs on this table. I have tried to use the option table-format
in what it looks like the right way to me, but actually I haven't found any explanation about it in the booktabs documentation.
Are there other options I could use? And do you also know where to find a good documentation about them?
documentclassarticle
usepackagebooktabs
usepackagesiunitx
begindocument
begintable[h!]
centering
begintabularlS[table-format=-1.1e-1]S[table-format=-1.1e-1]
toprule
& $m$ & $q$ \
midrule
Total death toll & num-9.8e-5 & num2.0e-1 \
Climatic hazards & num-1.0e-4 & num2.1e-1 \
Earthquakes & num6.0e-6 & num-1.1e-2 \
Mass movements & num-1.8e-8 & num5.1e-5 \
Volcanic hazards & num-2.7e-7 & num5.4e-4 \
bottomrule
endtabular
captionFit parameters for death toll per population and per year for the classes of geohazards.
labelt1
endtable
enddocument
siunitx booktabs
New contributor
Elisa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I would like the numbers to be aligned by multiplication signs on this table. I have tried to use the option table-format
in what it looks like the right way to me, but actually I haven't found any explanation about it in the booktabs documentation.
Are there other options I could use? And do you also know where to find a good documentation about them?
documentclassarticle
usepackagebooktabs
usepackagesiunitx
begindocument
begintable[h!]
centering
begintabularlS[table-format=-1.1e-1]S[table-format=-1.1e-1]
toprule
& $m$ & $q$ \
midrule
Total death toll & num-9.8e-5 & num2.0e-1 \
Climatic hazards & num-1.0e-4 & num2.1e-1 \
Earthquakes & num6.0e-6 & num-1.1e-2 \
Mass movements & num-1.8e-8 & num5.1e-5 \
Volcanic hazards & num-2.7e-7 & num5.4e-4 \
bottomrule
endtabular
captionFit parameters for death toll per population and per year for the classes of geohazards.
labelt1
endtable
enddocument
siunitx booktabs
siunitx booktabs
New contributor
Elisa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Elisa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Elisa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 2 hours ago


Elisa
334
334
New contributor
Elisa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Elisa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Elisa is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
You have nearly got it! You need to remove the num...
and just have the number.
See example below. For package documentation I like to use CTAN
documentclassarticle
usepackagebooktabs
usepackagesiunitx
begindocument
begintable[h!]
centering
begintabularlS[table-format=-1.1e-1]S[table-format=-1.1e-1]
toprule
& $m$ & $q$ \
midrule
Total death toll & -9.8e-5 & 2.0e-1 \
Climatic hazards & -1.0e-4 & 2.1e-1 \
Earthquakes & 6.0e-6 & -1.1e-2 \
Mass movements & -1.8e-8 & 5.1e-5 \
Volcanic hazards & -2.7e-7 & 5.4e-4 \
bottomrule
endtabular
captionFit parameters for death toll per population and per year for the classes of geohazards.
labelt1
endtable
enddocument
Thank you! I think I have just found out that 'S' columns are already made for numbers in thenum
format...
– Elisa
3 mins ago
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
You have nearly got it! You need to remove the num...
and just have the number.
See example below. For package documentation I like to use CTAN
documentclassarticle
usepackagebooktabs
usepackagesiunitx
begindocument
begintable[h!]
centering
begintabularlS[table-format=-1.1e-1]S[table-format=-1.1e-1]
toprule
& $m$ & $q$ \
midrule
Total death toll & -9.8e-5 & 2.0e-1 \
Climatic hazards & -1.0e-4 & 2.1e-1 \
Earthquakes & 6.0e-6 & -1.1e-2 \
Mass movements & -1.8e-8 & 5.1e-5 \
Volcanic hazards & -2.7e-7 & 5.4e-4 \
bottomrule
endtabular
captionFit parameters for death toll per population and per year for the classes of geohazards.
labelt1
endtable
enddocument
Thank you! I think I have just found out that 'S' columns are already made for numbers in thenum
format...
– Elisa
3 mins ago
add a comment |Â
up vote
4
down vote
accepted
You have nearly got it! You need to remove the num...
and just have the number.
See example below. For package documentation I like to use CTAN
documentclassarticle
usepackagebooktabs
usepackagesiunitx
begindocument
begintable[h!]
centering
begintabularlS[table-format=-1.1e-1]S[table-format=-1.1e-1]
toprule
& $m$ & $q$ \
midrule
Total death toll & -9.8e-5 & 2.0e-1 \
Climatic hazards & -1.0e-4 & 2.1e-1 \
Earthquakes & 6.0e-6 & -1.1e-2 \
Mass movements & -1.8e-8 & 5.1e-5 \
Volcanic hazards & -2.7e-7 & 5.4e-4 \
bottomrule
endtabular
captionFit parameters for death toll per population and per year for the classes of geohazards.
labelt1
endtable
enddocument
Thank you! I think I have just found out that 'S' columns are already made for numbers in thenum
format...
– Elisa
3 mins ago
add a comment |Â
up vote
4
down vote
accepted
up vote
4
down vote
accepted
You have nearly got it! You need to remove the num...
and just have the number.
See example below. For package documentation I like to use CTAN
documentclassarticle
usepackagebooktabs
usepackagesiunitx
begindocument
begintable[h!]
centering
begintabularlS[table-format=-1.1e-1]S[table-format=-1.1e-1]
toprule
& $m$ & $q$ \
midrule
Total death toll & -9.8e-5 & 2.0e-1 \
Climatic hazards & -1.0e-4 & 2.1e-1 \
Earthquakes & 6.0e-6 & -1.1e-2 \
Mass movements & -1.8e-8 & 5.1e-5 \
Volcanic hazards & -2.7e-7 & 5.4e-4 \
bottomrule
endtabular
captionFit parameters for death toll per population and per year for the classes of geohazards.
labelt1
endtable
enddocument
You have nearly got it! You need to remove the num...
and just have the number.
See example below. For package documentation I like to use CTAN
documentclassarticle
usepackagebooktabs
usepackagesiunitx
begindocument
begintable[h!]
centering
begintabularlS[table-format=-1.1e-1]S[table-format=-1.1e-1]
toprule
& $m$ & $q$ \
midrule
Total death toll & -9.8e-5 & 2.0e-1 \
Climatic hazards & -1.0e-4 & 2.1e-1 \
Earthquakes & 6.0e-6 & -1.1e-2 \
Mass movements & -1.8e-8 & 5.1e-5 \
Volcanic hazards & -2.7e-7 & 5.4e-4 \
bottomrule
endtabular
captionFit parameters for death toll per population and per year for the classes of geohazards.
labelt1
endtable
enddocument
answered 1 hour ago
Jon
3186
3186
Thank you! I think I have just found out that 'S' columns are already made for numbers in thenum
format...
– Elisa
3 mins ago
add a comment |Â
Thank you! I think I have just found out that 'S' columns are already made for numbers in thenum
format...
– Elisa
3 mins ago
Thank you! I think I have just found out that 'S' columns are already made for numbers in the
num
format...– Elisa
3 mins ago
Thank you! I think I have just found out that 'S' columns are already made for numbers in the
num
format...– Elisa
3 mins ago
add a comment |Â
Elisa is a new contributor. Be nice, and check out our Code of Conduct.
Elisa is a new contributor. Be nice, and check out our Code of Conduct.
Elisa is a new contributor. Be nice, and check out our Code of Conduct.
Elisa 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
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f458957%2falign-numbers-in-table-with-scientific-notation-and-minus-sign%23new-answer', 'question_page');
);
Post as a guest
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
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
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