siunitx: literal period within a cell

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Today I started practicing with siunitx. It is a bit fun, but I arrive at some troubles.



I have a stats table where I want to have a literal period, meaning no estimate was obtained, in some cells. I also have some cells where the numbers might be wrapped in parentheses and a few where they have asterixes. I've solved those problems, so the mre below does not emphasize them.



It is not allowed to have a cell with "." by itself. I get the "invalid-value" error from siunitx.



One workaround is to wrap the period in a multicolumn, that does not give the error. But the output is not quite right either



documentclass[11pt,letterpaper,english]extarticle
usepackagelmodern
renewcommandsfdefaultlmss
renewcommandttdefaultlmtt

usepackagesiunitx
sisetup
input-symbols = ()*,
group-minimum-digits = 9


begindocument
begintabular
l
S[table-format=1.3, table-align-text-post=false]
S[table-format=1.3, table-align-text-post=false]

hline
hello &1.333 &33.222tabularnewline
goodbye &44.1 & multicolumn1c. tabularnewline
hline
endtabular

enddocument


But, as you expect, the period is not aligned.



siunitx with a period in a cell



I don't have a strong reason to require them to be aligned, but it would be fun if I could do it :)










share|improve this question

























    up vote
    2
    down vote

    favorite












    Today I started practicing with siunitx. It is a bit fun, but I arrive at some troubles.



    I have a stats table where I want to have a literal period, meaning no estimate was obtained, in some cells. I also have some cells where the numbers might be wrapped in parentheses and a few where they have asterixes. I've solved those problems, so the mre below does not emphasize them.



    It is not allowed to have a cell with "." by itself. I get the "invalid-value" error from siunitx.



    One workaround is to wrap the period in a multicolumn, that does not give the error. But the output is not quite right either



    documentclass[11pt,letterpaper,english]extarticle
    usepackagelmodern
    renewcommandsfdefaultlmss
    renewcommandttdefaultlmtt

    usepackagesiunitx
    sisetup
    input-symbols = ()*,
    group-minimum-digits = 9


    begindocument
    begintabular
    l
    S[table-format=1.3, table-align-text-post=false]
    S[table-format=1.3, table-align-text-post=false]

    hline
    hello &1.333 &33.222tabularnewline
    goodbye &44.1 & multicolumn1c. tabularnewline
    hline
    endtabular

    enddocument


    But, as you expect, the period is not aligned.



    siunitx with a period in a cell



    I don't have a strong reason to require them to be aligned, but it would be fun if I could do it :)










    share|improve this question























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      Today I started practicing with siunitx. It is a bit fun, but I arrive at some troubles.



      I have a stats table where I want to have a literal period, meaning no estimate was obtained, in some cells. I also have some cells where the numbers might be wrapped in parentheses and a few where they have asterixes. I've solved those problems, so the mre below does not emphasize them.



      It is not allowed to have a cell with "." by itself. I get the "invalid-value" error from siunitx.



      One workaround is to wrap the period in a multicolumn, that does not give the error. But the output is not quite right either



      documentclass[11pt,letterpaper,english]extarticle
      usepackagelmodern
      renewcommandsfdefaultlmss
      renewcommandttdefaultlmtt

      usepackagesiunitx
      sisetup
      input-symbols = ()*,
      group-minimum-digits = 9


      begindocument
      begintabular
      l
      S[table-format=1.3, table-align-text-post=false]
      S[table-format=1.3, table-align-text-post=false]

      hline
      hello &1.333 &33.222tabularnewline
      goodbye &44.1 & multicolumn1c. tabularnewline
      hline
      endtabular

      enddocument


      But, as you expect, the period is not aligned.



      siunitx with a period in a cell



      I don't have a strong reason to require them to be aligned, but it would be fun if I could do it :)










      share|improve this question













      Today I started practicing with siunitx. It is a bit fun, but I arrive at some troubles.



      I have a stats table where I want to have a literal period, meaning no estimate was obtained, in some cells. I also have some cells where the numbers might be wrapped in parentheses and a few where they have asterixes. I've solved those problems, so the mre below does not emphasize them.



      It is not allowed to have a cell with "." by itself. I get the "invalid-value" error from siunitx.



      One workaround is to wrap the period in a multicolumn, that does not give the error. But the output is not quite right either



      documentclass[11pt,letterpaper,english]extarticle
      usepackagelmodern
      renewcommandsfdefaultlmss
      renewcommandttdefaultlmtt

      usepackagesiunitx
      sisetup
      input-symbols = ()*,
      group-minimum-digits = 9


      begindocument
      begintabular
      l
      S[table-format=1.3, table-align-text-post=false]
      S[table-format=1.3, table-align-text-post=false]

      hline
      hello &1.333 &33.222tabularnewline
      goodbye &44.1 & multicolumn1c. tabularnewline
      hline
      endtabular

      enddocument


      But, as you expect, the period is not aligned.



      siunitx with a period in a cell



      I don't have a strong reason to require them to be aligned, but it would be fun if I could do it :)







      tables






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 51 mins ago









      pauljohn32

      297110




      297110




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          3
          down vote













          You could use a phantom.



          By the way, you declared table-format=1.3 but your numbers have 2 integer positions, I corrected in table-format=2.3, otherwise you have an Overfull hbox warning.



          documentclass[11pt,letterpaper,english]extarticle
          usepackagelmodern
          renewcommandsfdefaultlmss
          renewcommandttdefaultlmtt

          usepackagesiunitx
          sisetup
          input-symbols = ()*,
          group-minimum-digits = 9


          begindocument
          begintabular
          l
          S[table-format=2.3, table-align-text-post=false]
          S[table-format=2.3, table-align-text-post=false]

          hline
          hello &1.333 &33.222tabularnewline
          goodbye &44.1 & multicolumn1lphantom00. tabularnewline
          hline
          endtabular
          enddocument


          enter image description here






          share|improve this answer



























            up vote
            1
            down vote













            similarly to CarLaTeXanswer:



            documentclass[11pt,letterpaper,english]extarticle
            usepackagelmodern
            renewcommandsfdefaultlmss
            renewcommandttdefaultlmtt

            usepackagesiunitx
            sisetup
            input-symbols = ()*,
            group-minimum-digits = 9


            begindocument

            begintabular
            l
            S[table-format=2.3, table-align-text-post=false]
            S[table-format=2.3, table-align-text-post=false]

            hline
            hello & 1.333 & 33.222 tabularnewline
            goodbye & 44.1 & .hphantom2 tabularnewline
            hline
            endtabular

            enddocument


            enter image description here






            share|improve this answer






















            • ups, you are right! this one i prepare for another question ... :-(, i will correct this asap
              – Zarko
              22 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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f454445%2fsiunitx-literal-period-within-a-cell%23new-answer', 'question_page');

            );

            Post as a guest






























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            3
            down vote













            You could use a phantom.



            By the way, you declared table-format=1.3 but your numbers have 2 integer positions, I corrected in table-format=2.3, otherwise you have an Overfull hbox warning.



            documentclass[11pt,letterpaper,english]extarticle
            usepackagelmodern
            renewcommandsfdefaultlmss
            renewcommandttdefaultlmtt

            usepackagesiunitx
            sisetup
            input-symbols = ()*,
            group-minimum-digits = 9


            begindocument
            begintabular
            l
            S[table-format=2.3, table-align-text-post=false]
            S[table-format=2.3, table-align-text-post=false]

            hline
            hello &1.333 &33.222tabularnewline
            goodbye &44.1 & multicolumn1lphantom00. tabularnewline
            hline
            endtabular
            enddocument


            enter image description here






            share|improve this answer
























              up vote
              3
              down vote













              You could use a phantom.



              By the way, you declared table-format=1.3 but your numbers have 2 integer positions, I corrected in table-format=2.3, otherwise you have an Overfull hbox warning.



              documentclass[11pt,letterpaper,english]extarticle
              usepackagelmodern
              renewcommandsfdefaultlmss
              renewcommandttdefaultlmtt

              usepackagesiunitx
              sisetup
              input-symbols = ()*,
              group-minimum-digits = 9


              begindocument
              begintabular
              l
              S[table-format=2.3, table-align-text-post=false]
              S[table-format=2.3, table-align-text-post=false]

              hline
              hello &1.333 &33.222tabularnewline
              goodbye &44.1 & multicolumn1lphantom00. tabularnewline
              hline
              endtabular
              enddocument


              enter image description here






              share|improve this answer






















                up vote
                3
                down vote










                up vote
                3
                down vote









                You could use a phantom.



                By the way, you declared table-format=1.3 but your numbers have 2 integer positions, I corrected in table-format=2.3, otherwise you have an Overfull hbox warning.



                documentclass[11pt,letterpaper,english]extarticle
                usepackagelmodern
                renewcommandsfdefaultlmss
                renewcommandttdefaultlmtt

                usepackagesiunitx
                sisetup
                input-symbols = ()*,
                group-minimum-digits = 9


                begindocument
                begintabular
                l
                S[table-format=2.3, table-align-text-post=false]
                S[table-format=2.3, table-align-text-post=false]

                hline
                hello &1.333 &33.222tabularnewline
                goodbye &44.1 & multicolumn1lphantom00. tabularnewline
                hline
                endtabular
                enddocument


                enter image description here






                share|improve this answer












                You could use a phantom.



                By the way, you declared table-format=1.3 but your numbers have 2 integer positions, I corrected in table-format=2.3, otherwise you have an Overfull hbox warning.



                documentclass[11pt,letterpaper,english]extarticle
                usepackagelmodern
                renewcommandsfdefaultlmss
                renewcommandttdefaultlmtt

                usepackagesiunitx
                sisetup
                input-symbols = ()*,
                group-minimum-digits = 9


                begindocument
                begintabular
                l
                S[table-format=2.3, table-align-text-post=false]
                S[table-format=2.3, table-align-text-post=false]

                hline
                hello &1.333 &33.222tabularnewline
                goodbye &44.1 & multicolumn1lphantom00. tabularnewline
                hline
                endtabular
                enddocument


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 34 mins ago









                CarLaTeX

                25.8k443114




                25.8k443114




















                    up vote
                    1
                    down vote













                    similarly to CarLaTeXanswer:



                    documentclass[11pt,letterpaper,english]extarticle
                    usepackagelmodern
                    renewcommandsfdefaultlmss
                    renewcommandttdefaultlmtt

                    usepackagesiunitx
                    sisetup
                    input-symbols = ()*,
                    group-minimum-digits = 9


                    begindocument

                    begintabular
                    l
                    S[table-format=2.3, table-align-text-post=false]
                    S[table-format=2.3, table-align-text-post=false]

                    hline
                    hello & 1.333 & 33.222 tabularnewline
                    goodbye & 44.1 & .hphantom2 tabularnewline
                    hline
                    endtabular

                    enddocument


                    enter image description here






                    share|improve this answer






















                    • ups, you are right! this one i prepare for another question ... :-(, i will correct this asap
                      – Zarko
                      22 mins ago















                    up vote
                    1
                    down vote













                    similarly to CarLaTeXanswer:



                    documentclass[11pt,letterpaper,english]extarticle
                    usepackagelmodern
                    renewcommandsfdefaultlmss
                    renewcommandttdefaultlmtt

                    usepackagesiunitx
                    sisetup
                    input-symbols = ()*,
                    group-minimum-digits = 9


                    begindocument

                    begintabular
                    l
                    S[table-format=2.3, table-align-text-post=false]
                    S[table-format=2.3, table-align-text-post=false]

                    hline
                    hello & 1.333 & 33.222 tabularnewline
                    goodbye & 44.1 & .hphantom2 tabularnewline
                    hline
                    endtabular

                    enddocument


                    enter image description here






                    share|improve this answer






















                    • ups, you are right! this one i prepare for another question ... :-(, i will correct this asap
                      – Zarko
                      22 mins ago













                    up vote
                    1
                    down vote










                    up vote
                    1
                    down vote









                    similarly to CarLaTeXanswer:



                    documentclass[11pt,letterpaper,english]extarticle
                    usepackagelmodern
                    renewcommandsfdefaultlmss
                    renewcommandttdefaultlmtt

                    usepackagesiunitx
                    sisetup
                    input-symbols = ()*,
                    group-minimum-digits = 9


                    begindocument

                    begintabular
                    l
                    S[table-format=2.3, table-align-text-post=false]
                    S[table-format=2.3, table-align-text-post=false]

                    hline
                    hello & 1.333 & 33.222 tabularnewline
                    goodbye & 44.1 & .hphantom2 tabularnewline
                    hline
                    endtabular

                    enddocument


                    enter image description here






                    share|improve this answer














                    similarly to CarLaTeXanswer:



                    documentclass[11pt,letterpaper,english]extarticle
                    usepackagelmodern
                    renewcommandsfdefaultlmss
                    renewcommandttdefaultlmtt

                    usepackagesiunitx
                    sisetup
                    input-symbols = ()*,
                    group-minimum-digits = 9


                    begindocument

                    begintabular
                    l
                    S[table-format=2.3, table-align-text-post=false]
                    S[table-format=2.3, table-align-text-post=false]

                    hline
                    hello & 1.333 & 33.222 tabularnewline
                    goodbye & 44.1 & .hphantom2 tabularnewline
                    hline
                    endtabular

                    enddocument


                    enter image description here







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited 20 mins ago

























                    answered 27 mins ago









                    Zarko

                    114k863152




                    114k863152











                    • ups, you are right! this one i prepare for another question ... :-(, i will correct this asap
                      – Zarko
                      22 mins ago

















                    • ups, you are right! this one i prepare for another question ... :-(, i will correct this asap
                      – Zarko
                      22 mins ago
















                    ups, you are right! this one i prepare for another question ... :-(, i will correct this asap
                    – Zarko
                    22 mins ago





                    ups, you are right! this one i prepare for another question ... :-(, i will correct this asap
                    – Zarko
                    22 mins ago


















                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f454445%2fsiunitx-literal-period-within-a-cell%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Comments

                    Popular posts from this blog

                    Long meetings (6-7 hours a day): Being “babysat” by supervisor

                    What does second last employer means? [closed]

                    One-line joke