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


My unsatisfying result










share|improve this question

























    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























      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













      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













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 8 at 10:51









      Elisa

      334




      334




















          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


          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
            Nov 8 at 12:59










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



          );













           

          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















          Required, but never shown

























          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


          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
            Nov 8 at 12:59














          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


          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
            Nov 8 at 12:59












          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


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















          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

















           

          draft saved


          draft discarded















































           


          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















          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

          𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

          Edmonton

          Crossroads (UK TV series)