Align numbers in table with scientific notation and minus sign

The name of the pictureThe name of the pictureThe name of the pictureClash 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


My unsatisfying result










share|improve this question







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.























    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


    My unsatisfying result










    share|improve this question







    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.





















      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


      My unsatisfying result










      share|improve this question







      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


      My unsatisfying result







      siunitx booktabs






      share|improve this question







      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.











      share|improve this question







      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.









      share|improve this question




      share|improve this question






      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.




















          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


          enter image description here






          share|improve this answer




















          • 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










          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',
          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
          );



          );






          Elisa is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          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






























          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


          enter image description here






          share|improve this answer




















          • 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














          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


          enter image description here






          share|improve this answer




















          • 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












          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


          enter image description here






          share|improve this answer












          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


          enter image description here







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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 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















          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










          Elisa is a new contributor. Be nice, and check out our Code of Conduct.









           

          draft saved


          draft discarded


















          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.













           


          draft saved


          draft discarded














          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













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery