Align column where each cell has two decimals with siunitx Unicorn Meta Zoo #1: Why another...

Is a 5 watt UHF/VHF handheld considered QRP?

Did the Roman Empire have penal colonies?

Seek and ye shall find

How would this chord from "Rocket Man" be analyzed?

Do I need to protect SFP ports and optics from dust/contaminants? If so, how?

What is this word supposed to be?

Is Electric Central Heating worth it if using Solar Panels?

How to translate "red flag" into Spanish?

What is the ongoing value of the Kanban board to the developers as opposed to management

What is the term for a person whose job is to place products on shelves in stores?

What to do with someone that cheated their way through university and a PhD program?

Why did Israel vote against lifting the American embargo on Cuba?

finding a tangent line to a parabola

What is the best way to deal with NPC-NPC combat?

Retract an already submitted recommendation letter (written for an undergrad student)

Error: Syntax error. Missing ')' for CASE Statement

c++ diamond problem - How to call base method only once

Is Bran literally the world's memory?

Expansion//Explosion and Siren Stormtamer

How to get even lighting when using flash for group photos near wall?

Is accepting an invalid credit card number a security issue?

Justification for leaving new position after a short time

Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?

A Paper Record is What I Hamper



Align column where each cell has two decimals with siunitx



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar ManaraLaTeX's datatool package together with siunitxAlignment in Siunitx with Comma separatorsUsing one group separator for integer part and another for decimal part (siunitx)Using Rowstyle with S-column of siunitxsiunitx: Bold single numeric cells with turned off alignmentDuplicate decimal marker (siunitx)Problem aligning decimals in multi-column tableProblems with column width and text alignment using siunitxAlign large numbers and small ones on comma and decimal pointError using math in siunitx table












6















I also want to align the second column.
The problem is, that there can't be two numbers in one cell
Is there a way to align the second column via digits even if there are more decimals?
I also used the input-ignore option to ignore the commas



usepackage{tabular}
usepackage{siunitx}

begin{document}
begin{tabular}{@{}
S[table-format=1.2]
l
@{}}
{Radius} & {Luminosity}\
0.30 & [-195.728, 213.571] \
0.000 & [-2465.825, -1234.722] \
0.648 & [-35.587, 22.432] \
end{tabular}
end{document}









share|improve this question









New contributor




Flo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    6















    I also want to align the second column.
    The problem is, that there can't be two numbers in one cell
    Is there a way to align the second column via digits even if there are more decimals?
    I also used the input-ignore option to ignore the commas



    usepackage{tabular}
    usepackage{siunitx}

    begin{document}
    begin{tabular}{@{}
    S[table-format=1.2]
    l
    @{}}
    {Radius} & {Luminosity}\
    0.30 & [-195.728, 213.571] \
    0.000 & [-2465.825, -1234.722] \
    0.648 & [-35.587, 22.432] \
    end{tabular}
    end{document}









    share|improve this question









    New contributor




    Flo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      6












      6








      6








      I also want to align the second column.
      The problem is, that there can't be two numbers in one cell
      Is there a way to align the second column via digits even if there are more decimals?
      I also used the input-ignore option to ignore the commas



      usepackage{tabular}
      usepackage{siunitx}

      begin{document}
      begin{tabular}{@{}
      S[table-format=1.2]
      l
      @{}}
      {Radius} & {Luminosity}\
      0.30 & [-195.728, 213.571] \
      0.000 & [-2465.825, -1234.722] \
      0.648 & [-35.587, 22.432] \
      end{tabular}
      end{document}









      share|improve this question









      New contributor




      Flo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I also want to align the second column.
      The problem is, that there can't be two numbers in one cell
      Is there a way to align the second column via digits even if there are more decimals?
      I also used the input-ignore option to ignore the commas



      usepackage{tabular}
      usepackage{siunitx}

      begin{document}
      begin{tabular}{@{}
      S[table-format=1.2]
      l
      @{}}
      {Radius} & {Luminosity}\
      0.30 & [-195.728, 213.571] \
      0.000 & [-2465.825, -1234.722] \
      0.648 & [-35.587, 22.432] \
      end{tabular}
      end{document}






      tables align siunitx






      share|improve this question









      New contributor




      Flo 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




      Flo 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








      edited 16 hours ago









      Bernard

      177k779211




      177k779211






      New contributor




      Flo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 17 hours ago









      FloFlo

      311




      311




      New contributor




      Flo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Flo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Flo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          3 Answers
          3






          active

          oldest

          votes


















          6














          You can split into two columns and inject the brackets:



          documentclass{article}

          usepackage{siunitx,booktabs}

          NewDocumentCommand{lbr}{}{[thinspace}
          NewDocumentCommand{rbr}{}{]}

          begin{document}

          begin{tabular}{
          S[table-format=1.3]
          >{lbr}S[table-format=-4.3,table-space-text-pre=lbr]
          @{, }
          S[table-format=-4.3,table-space-text-post=rbr]<{rbr}
          }
          toprule
          {Radius} & multicolumn{2}{c}{Luminosity}\
          midrule
          0.30 & -195.728 & 213.571 \
          0.000 & -2465.825 & -1234.722 \
          0.648 & -35.587 & 22.432 \
          bottomrule
          end{tabular}
          end{document}


          enter image description here



          A small final note: NewDocumentCommand is provided by xparse, which is loaded by siunitx. Using it, lbr becomes a “protected” command, so it can be used as a “text-pre” in an S column.






          share|improve this answer


























          • I rejected the edit adding xparse to the list of loaded packages on the grounds that I verified that the example compiles without it since siunitx already loads xparse. There might be merit in mentioning that NewDocumentCommand is a xparse command and that siunitx loads xparse, but this should probably happen in a comment and not in an uncommented edit.

            – moewe
            14 hours ago






          • 1





            @moewe Thanks; I added a final comment with a short explanation.

            – egreg
            14 hours ago



















          5














          Split it into two columns:



          documentclass{article}

          usepackage{siunitx}

          begin{document}
          begin{tabular}{@{}
          S[table-format=1.3]
          @{space[thinspace}
          S[table-format=-4.3]
          @{,space}
          S[table-format=-4.3]
          @{thinspace]}
          @{}}
          multicolumn{1}{c}{Radius} & multicolumn{2}{c}{Luminosity}\
          0.30 & -195.728 & 213.571 \
          0.000 & -2465.825 & -1234.722 \
          0.648 & -35.587 & 22.432 \
          end{tabular}
          end{document}


          enter image description here






          share|improve this answer








          New contributor




          user186389 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





















          • Rather than space[thinspace, use hspace{2tabcolsep}[thinspace so as to restore the standard intercolumn spacing.

            – egreg
            16 hours ago













          • @egreg Thanks for your suggestion, but this would misalign the header

            – user186389
            16 hours ago











          • Yes, you need to add the same material in multicolumn{1}{@{}c@{hspace*{2tabcolsep}phantom[thinspace}{Radius}. Possibly better is to inject the material with >{[thinspace}

            – egreg
            16 hours ago













          • @egreg File ended while scanning use of multicolumn.

            – user186389
            16 hours ago











          • @egreg >{[thinspace} will mess with siunitx alignment

            – user186389
            16 hours ago



















          1














          A variant layout:



          documentclass{article}

          usepackage{siunitx}

          begin{document}

          setlength{extrarowheight}{2pt}
          begin{tabular}{@{}
          S[table-format=1.3]
          >{[,}S[table-format=-4.3, table-space-text-pre = {[}, table-align-text-pre=false]<{{,}}
          @{enspace}
          S[table-format=-4.3, table-space-text-post ={]}]
          <{$!$]}
          @{}}
          {Radius} & multicolumn{2}{c}{Luminosity}\
          0.30 & -195.728 & 213.571 \
          0.000 & -2465.825 & -1234.722 \
          0.648 & -35.587 & 22.432 \
          end{tabular}

          end{document}


          enter image description here






          share|improve this answer
























            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',
            autoActivateHeartbeat: false,
            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
            });


            }
            });






            Flo 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%2f487349%2falign-column-where-each-cell-has-two-decimals-with-siunitx%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            6














            You can split into two columns and inject the brackets:



            documentclass{article}

            usepackage{siunitx,booktabs}

            NewDocumentCommand{lbr}{}{[thinspace}
            NewDocumentCommand{rbr}{}{]}

            begin{document}

            begin{tabular}{
            S[table-format=1.3]
            >{lbr}S[table-format=-4.3,table-space-text-pre=lbr]
            @{, }
            S[table-format=-4.3,table-space-text-post=rbr]<{rbr}
            }
            toprule
            {Radius} & multicolumn{2}{c}{Luminosity}\
            midrule
            0.30 & -195.728 & 213.571 \
            0.000 & -2465.825 & -1234.722 \
            0.648 & -35.587 & 22.432 \
            bottomrule
            end{tabular}
            end{document}


            enter image description here



            A small final note: NewDocumentCommand is provided by xparse, which is loaded by siunitx. Using it, lbr becomes a “protected” command, so it can be used as a “text-pre” in an S column.






            share|improve this answer


























            • I rejected the edit adding xparse to the list of loaded packages on the grounds that I verified that the example compiles without it since siunitx already loads xparse. There might be merit in mentioning that NewDocumentCommand is a xparse command and that siunitx loads xparse, but this should probably happen in a comment and not in an uncommented edit.

              – moewe
              14 hours ago






            • 1





              @moewe Thanks; I added a final comment with a short explanation.

              – egreg
              14 hours ago
















            6














            You can split into two columns and inject the brackets:



            documentclass{article}

            usepackage{siunitx,booktabs}

            NewDocumentCommand{lbr}{}{[thinspace}
            NewDocumentCommand{rbr}{}{]}

            begin{document}

            begin{tabular}{
            S[table-format=1.3]
            >{lbr}S[table-format=-4.3,table-space-text-pre=lbr]
            @{, }
            S[table-format=-4.3,table-space-text-post=rbr]<{rbr}
            }
            toprule
            {Radius} & multicolumn{2}{c}{Luminosity}\
            midrule
            0.30 & -195.728 & 213.571 \
            0.000 & -2465.825 & -1234.722 \
            0.648 & -35.587 & 22.432 \
            bottomrule
            end{tabular}
            end{document}


            enter image description here



            A small final note: NewDocumentCommand is provided by xparse, which is loaded by siunitx. Using it, lbr becomes a “protected” command, so it can be used as a “text-pre” in an S column.






            share|improve this answer


























            • I rejected the edit adding xparse to the list of loaded packages on the grounds that I verified that the example compiles without it since siunitx already loads xparse. There might be merit in mentioning that NewDocumentCommand is a xparse command and that siunitx loads xparse, but this should probably happen in a comment and not in an uncommented edit.

              – moewe
              14 hours ago






            • 1





              @moewe Thanks; I added a final comment with a short explanation.

              – egreg
              14 hours ago














            6












            6








            6







            You can split into two columns and inject the brackets:



            documentclass{article}

            usepackage{siunitx,booktabs}

            NewDocumentCommand{lbr}{}{[thinspace}
            NewDocumentCommand{rbr}{}{]}

            begin{document}

            begin{tabular}{
            S[table-format=1.3]
            >{lbr}S[table-format=-4.3,table-space-text-pre=lbr]
            @{, }
            S[table-format=-4.3,table-space-text-post=rbr]<{rbr}
            }
            toprule
            {Radius} & multicolumn{2}{c}{Luminosity}\
            midrule
            0.30 & -195.728 & 213.571 \
            0.000 & -2465.825 & -1234.722 \
            0.648 & -35.587 & 22.432 \
            bottomrule
            end{tabular}
            end{document}


            enter image description here



            A small final note: NewDocumentCommand is provided by xparse, which is loaded by siunitx. Using it, lbr becomes a “protected” command, so it can be used as a “text-pre” in an S column.






            share|improve this answer















            You can split into two columns and inject the brackets:



            documentclass{article}

            usepackage{siunitx,booktabs}

            NewDocumentCommand{lbr}{}{[thinspace}
            NewDocumentCommand{rbr}{}{]}

            begin{document}

            begin{tabular}{
            S[table-format=1.3]
            >{lbr}S[table-format=-4.3,table-space-text-pre=lbr]
            @{, }
            S[table-format=-4.3,table-space-text-post=rbr]<{rbr}
            }
            toprule
            {Radius} & multicolumn{2}{c}{Luminosity}\
            midrule
            0.30 & -195.728 & 213.571 \
            0.000 & -2465.825 & -1234.722 \
            0.648 & -35.587 & 22.432 \
            bottomrule
            end{tabular}
            end{document}


            enter image description here



            A small final note: NewDocumentCommand is provided by xparse, which is loaded by siunitx. Using it, lbr becomes a “protected” command, so it can be used as a “text-pre” in an S column.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited 14 hours ago

























            answered 16 hours ago









            egregegreg

            736k8919353262




            736k8919353262













            • I rejected the edit adding xparse to the list of loaded packages on the grounds that I verified that the example compiles without it since siunitx already loads xparse. There might be merit in mentioning that NewDocumentCommand is a xparse command and that siunitx loads xparse, but this should probably happen in a comment and not in an uncommented edit.

              – moewe
              14 hours ago






            • 1





              @moewe Thanks; I added a final comment with a short explanation.

              – egreg
              14 hours ago



















            • I rejected the edit adding xparse to the list of loaded packages on the grounds that I verified that the example compiles without it since siunitx already loads xparse. There might be merit in mentioning that NewDocumentCommand is a xparse command and that siunitx loads xparse, but this should probably happen in a comment and not in an uncommented edit.

              – moewe
              14 hours ago






            • 1





              @moewe Thanks; I added a final comment with a short explanation.

              – egreg
              14 hours ago

















            I rejected the edit adding xparse to the list of loaded packages on the grounds that I verified that the example compiles without it since siunitx already loads xparse. There might be merit in mentioning that NewDocumentCommand is a xparse command and that siunitx loads xparse, but this should probably happen in a comment and not in an uncommented edit.

            – moewe
            14 hours ago





            I rejected the edit adding xparse to the list of loaded packages on the grounds that I verified that the example compiles without it since siunitx already loads xparse. There might be merit in mentioning that NewDocumentCommand is a xparse command and that siunitx loads xparse, but this should probably happen in a comment and not in an uncommented edit.

            – moewe
            14 hours ago




            1




            1





            @moewe Thanks; I added a final comment with a short explanation.

            – egreg
            14 hours ago





            @moewe Thanks; I added a final comment with a short explanation.

            – egreg
            14 hours ago











            5














            Split it into two columns:



            documentclass{article}

            usepackage{siunitx}

            begin{document}
            begin{tabular}{@{}
            S[table-format=1.3]
            @{space[thinspace}
            S[table-format=-4.3]
            @{,space}
            S[table-format=-4.3]
            @{thinspace]}
            @{}}
            multicolumn{1}{c}{Radius} & multicolumn{2}{c}{Luminosity}\
            0.30 & -195.728 & 213.571 \
            0.000 & -2465.825 & -1234.722 \
            0.648 & -35.587 & 22.432 \
            end{tabular}
            end{document}


            enter image description here






            share|improve this answer








            New contributor




            user186389 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















            • Rather than space[thinspace, use hspace{2tabcolsep}[thinspace so as to restore the standard intercolumn spacing.

              – egreg
              16 hours ago













            • @egreg Thanks for your suggestion, but this would misalign the header

              – user186389
              16 hours ago











            • Yes, you need to add the same material in multicolumn{1}{@{}c@{hspace*{2tabcolsep}phantom[thinspace}{Radius}. Possibly better is to inject the material with >{[thinspace}

              – egreg
              16 hours ago













            • @egreg File ended while scanning use of multicolumn.

              – user186389
              16 hours ago











            • @egreg >{[thinspace} will mess with siunitx alignment

              – user186389
              16 hours ago
















            5














            Split it into two columns:



            documentclass{article}

            usepackage{siunitx}

            begin{document}
            begin{tabular}{@{}
            S[table-format=1.3]
            @{space[thinspace}
            S[table-format=-4.3]
            @{,space}
            S[table-format=-4.3]
            @{thinspace]}
            @{}}
            multicolumn{1}{c}{Radius} & multicolumn{2}{c}{Luminosity}\
            0.30 & -195.728 & 213.571 \
            0.000 & -2465.825 & -1234.722 \
            0.648 & -35.587 & 22.432 \
            end{tabular}
            end{document}


            enter image description here






            share|improve this answer








            New contributor




            user186389 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





















            • Rather than space[thinspace, use hspace{2tabcolsep}[thinspace so as to restore the standard intercolumn spacing.

              – egreg
              16 hours ago













            • @egreg Thanks for your suggestion, but this would misalign the header

              – user186389
              16 hours ago











            • Yes, you need to add the same material in multicolumn{1}{@{}c@{hspace*{2tabcolsep}phantom[thinspace}{Radius}. Possibly better is to inject the material with >{[thinspace}

              – egreg
              16 hours ago













            • @egreg File ended while scanning use of multicolumn.

              – user186389
              16 hours ago











            • @egreg >{[thinspace} will mess with siunitx alignment

              – user186389
              16 hours ago














            5












            5








            5







            Split it into two columns:



            documentclass{article}

            usepackage{siunitx}

            begin{document}
            begin{tabular}{@{}
            S[table-format=1.3]
            @{space[thinspace}
            S[table-format=-4.3]
            @{,space}
            S[table-format=-4.3]
            @{thinspace]}
            @{}}
            multicolumn{1}{c}{Radius} & multicolumn{2}{c}{Luminosity}\
            0.30 & -195.728 & 213.571 \
            0.000 & -2465.825 & -1234.722 \
            0.648 & -35.587 & 22.432 \
            end{tabular}
            end{document}


            enter image description here






            share|improve this answer








            New contributor




            user186389 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.










            Split it into two columns:



            documentclass{article}

            usepackage{siunitx}

            begin{document}
            begin{tabular}{@{}
            S[table-format=1.3]
            @{space[thinspace}
            S[table-format=-4.3]
            @{,space}
            S[table-format=-4.3]
            @{thinspace]}
            @{}}
            multicolumn{1}{c}{Radius} & multicolumn{2}{c}{Luminosity}\
            0.30 & -195.728 & 213.571 \
            0.000 & -2465.825 & -1234.722 \
            0.648 & -35.587 & 22.432 \
            end{tabular}
            end{document}


            enter image description here







            share|improve this answer








            New contributor




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



            share|improve this answer






            New contributor




            user186389 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.









            answered 17 hours ago









            user186389user186389

            1428




            1428




            New contributor




            user186389 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.





            New contributor





            user186389 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.






            user186389 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.













            • Rather than space[thinspace, use hspace{2tabcolsep}[thinspace so as to restore the standard intercolumn spacing.

              – egreg
              16 hours ago













            • @egreg Thanks for your suggestion, but this would misalign the header

              – user186389
              16 hours ago











            • Yes, you need to add the same material in multicolumn{1}{@{}c@{hspace*{2tabcolsep}phantom[thinspace}{Radius}. Possibly better is to inject the material with >{[thinspace}

              – egreg
              16 hours ago













            • @egreg File ended while scanning use of multicolumn.

              – user186389
              16 hours ago











            • @egreg >{[thinspace} will mess with siunitx alignment

              – user186389
              16 hours ago



















            • Rather than space[thinspace, use hspace{2tabcolsep}[thinspace so as to restore the standard intercolumn spacing.

              – egreg
              16 hours ago













            • @egreg Thanks for your suggestion, but this would misalign the header

              – user186389
              16 hours ago











            • Yes, you need to add the same material in multicolumn{1}{@{}c@{hspace*{2tabcolsep}phantom[thinspace}{Radius}. Possibly better is to inject the material with >{[thinspace}

              – egreg
              16 hours ago













            • @egreg File ended while scanning use of multicolumn.

              – user186389
              16 hours ago











            • @egreg >{[thinspace} will mess with siunitx alignment

              – user186389
              16 hours ago

















            Rather than space[thinspace, use hspace{2tabcolsep}[thinspace so as to restore the standard intercolumn spacing.

            – egreg
            16 hours ago







            Rather than space[thinspace, use hspace{2tabcolsep}[thinspace so as to restore the standard intercolumn spacing.

            – egreg
            16 hours ago















            @egreg Thanks for your suggestion, but this would misalign the header

            – user186389
            16 hours ago





            @egreg Thanks for your suggestion, but this would misalign the header

            – user186389
            16 hours ago













            Yes, you need to add the same material in multicolumn{1}{@{}c@{hspace*{2tabcolsep}phantom[thinspace}{Radius}. Possibly better is to inject the material with >{[thinspace}

            – egreg
            16 hours ago







            Yes, you need to add the same material in multicolumn{1}{@{}c@{hspace*{2tabcolsep}phantom[thinspace}{Radius}. Possibly better is to inject the material with >{[thinspace}

            – egreg
            16 hours ago















            @egreg File ended while scanning use of multicolumn.

            – user186389
            16 hours ago





            @egreg File ended while scanning use of multicolumn.

            – user186389
            16 hours ago













            @egreg >{[thinspace} will mess with siunitx alignment

            – user186389
            16 hours ago





            @egreg >{[thinspace} will mess with siunitx alignment

            – user186389
            16 hours ago











            1














            A variant layout:



            documentclass{article}

            usepackage{siunitx}

            begin{document}

            setlength{extrarowheight}{2pt}
            begin{tabular}{@{}
            S[table-format=1.3]
            >{[,}S[table-format=-4.3, table-space-text-pre = {[}, table-align-text-pre=false]<{{,}}
            @{enspace}
            S[table-format=-4.3, table-space-text-post ={]}]
            <{$!$]}
            @{}}
            {Radius} & multicolumn{2}{c}{Luminosity}\
            0.30 & -195.728 & 213.571 \
            0.000 & -2465.825 & -1234.722 \
            0.648 & -35.587 & 22.432 \
            end{tabular}

            end{document}


            enter image description here






            share|improve this answer




























              1














              A variant layout:



              documentclass{article}

              usepackage{siunitx}

              begin{document}

              setlength{extrarowheight}{2pt}
              begin{tabular}{@{}
              S[table-format=1.3]
              >{[,}S[table-format=-4.3, table-space-text-pre = {[}, table-align-text-pre=false]<{{,}}
              @{enspace}
              S[table-format=-4.3, table-space-text-post ={]}]
              <{$!$]}
              @{}}
              {Radius} & multicolumn{2}{c}{Luminosity}\
              0.30 & -195.728 & 213.571 \
              0.000 & -2465.825 & -1234.722 \
              0.648 & -35.587 & 22.432 \
              end{tabular}

              end{document}


              enter image description here






              share|improve this answer


























                1












                1








                1







                A variant layout:



                documentclass{article}

                usepackage{siunitx}

                begin{document}

                setlength{extrarowheight}{2pt}
                begin{tabular}{@{}
                S[table-format=1.3]
                >{[,}S[table-format=-4.3, table-space-text-pre = {[}, table-align-text-pre=false]<{{,}}
                @{enspace}
                S[table-format=-4.3, table-space-text-post ={]}]
                <{$!$]}
                @{}}
                {Radius} & multicolumn{2}{c}{Luminosity}\
                0.30 & -195.728 & 213.571 \
                0.000 & -2465.825 & -1234.722 \
                0.648 & -35.587 & 22.432 \
                end{tabular}

                end{document}


                enter image description here






                share|improve this answer













                A variant layout:



                documentclass{article}

                usepackage{siunitx}

                begin{document}

                setlength{extrarowheight}{2pt}
                begin{tabular}{@{}
                S[table-format=1.3]
                >{[,}S[table-format=-4.3, table-space-text-pre = {[}, table-align-text-pre=false]<{{,}}
                @{enspace}
                S[table-format=-4.3, table-space-text-post ={]}]
                <{$!$]}
                @{}}
                {Radius} & multicolumn{2}{c}{Luminosity}\
                0.30 & -195.728 & 213.571 \
                0.000 & -2465.825 & -1234.722 \
                0.648 & -35.587 & 22.432 \
                end{tabular}

                end{document}


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 16 hours ago









                BernardBernard

                177k779211




                177k779211






















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










                    draft saved

                    draft discarded


















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













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












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
















                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f487349%2falign-column-where-each-cell-has-two-decimals-with-siunitx%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

                    Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...

                    Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

                    VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...