Align numbers in table with scientific notation and minus sign
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
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
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
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
asked Nov 8 at 10:51
Elisa
334
334
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
5
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
Nov 8 at 12:59
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
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
Nov 8 at 12:59
add a comment |
up vote
5
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
Nov 8 at 12:59
add a comment |
up vote
5
down vote
accepted
up vote
5
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 Nov 8 at 11:33
Jon
33816
33816
Thank you! I think I have just found out that 'S' columns are already made for numbers in thenum
format...
– Elisa
Nov 8 at 12:59
add a comment |
Thank you! I think I have just found out that 'S' columns are already made for numbers in thenum
format...
– Elisa
Nov 8 at 12:59
Thank you! I think I have just found out that 'S' columns are already made for numbers in the
num
format...– Elisa
Nov 8 at 12:59
Thank you! I think I have just found out that 'S' columns are already made for numbers in the
num
format...– Elisa
Nov 8 at 12:59
add a comment |
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%2f458957%2falign-numbers-in-table-with-scientific-notation-and-minus-sign%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