Centering a single row with tabularx The Next CEO of Stack OverflowCentering in tabularx and X...

Break Away Valves for Launch

Is it okay to majorly distort historical facts while writing a fiction story?

What is the value of α and β in a triangle?

How to avoid supervisors with prejudiced views?

How to count occurrences of text in a file?

Chain wire methods together in Lightning Web Components

Flying from Cape Town to England and return to another province

Does increasing your ability score affect your main stat?

Unreliable Magic - Is it worth it?

Why the difference in type-inference over the as-pattern in two similar function definitions?

What was the first Unix version to run on a microcomputer?

Can we say or write : "No, it'sn't"?

Where do students learn to solve polynomial equations these days?

Is there a difference between "Fahrstuhl" and "Aufzug"

Can MTA send mail via a relay without being told so?

What steps are necessary to read a Modern SSD in Medieval Europe?

Is there a way to save my career from absolute disaster?

A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See

Is there always a complete, orthogonal set of unitary matrices?

Newlines in BSD sed vs gsed

Beveled cylinder cutout

Is micro rebar a better way to reinforce concrete than rebar?

Recycling old answers

How a 64-bit process virtual address space is divided in Linux?



Centering a single row with tabularx



The Next CEO of Stack OverflowCentering in tabularx and X columnsSetting single row height with multirowIncrease row height of tabularxTabularx with multi-column and multi-rowA single row background colourSingle column TabularxTabularx centering with width more than textwidthWrapping table around tabularx reduces row heightBoth horizontal and vertical centering in tabularx?Horizontal centering in tabularx cells












2















I'm back with more table issues!



I am trying to center the top row on the following table (the one that reads "Center This"). I have been trouble shooting a few solutions here on tex but can't seem to get it right.



documentclass[format=acmsmall, anonymous=true]{acmart}
usepackage{array,tabularx,ragged2e,booktabs}

begin{table}
centering
begin{tabularx}{linewidth}{lrlr}
hline
rowcolor[HTML]{EFEFEF}
multicolumn{4}{X}{cellcolor[HTML]{EFEFEF}
textbf{Center This}} \ hline
textit{textbf{}} & textit{textbf{#}} & textit{textbf{}} & textit{textbf{#}} \ hline
rowcolor[HTML]{EFEFEF}
textit{N} & 28,191 & textit{textbf{N}} & 36,466,751 \
textit{textbf{N}} & 1,864,879 & textit{N} & 28,060 \
rowcolor[HTML]{EFEFEF}
textit{N} & 20,332 & textit{textbf{N}} & 2,780,477 \
textit{N} & 223,125 & textit{N} & 156,596 \
rowcolor[HTML]{EFEFEF}
textit{N} & 855,370 & textit{N} & 103,620 \
textit{N} & 97,971 & textit{N} & 12,592 \
rowcolor[HTML]{EFEFEF}
textit{N} & 597,320 & textit{N} & 5,933,800 \
textit{N} & 592,703 & textit{N} & 26,060 \
rowcolor[HTML]{EFEFEF}
textit{N} & 6,379,367 & textit{textbf{N}} & 843,139 \
textit{N} & 3,132,240 & textit{N} & 132,380 \
rowcolor[HTML]{EFEFEF}
textit{N} & 84,780 & textit{textbf{N}} & 452,743 \
textit{N} & 236,082 & textit{N} & 7,849,435 \
rowcolor[HTML]{EFEFEF}
textit{textbf{N}} & 1,990,117 & textit{N} & 171,539 \
textit{N} & 6,884,437 & textit{textbf{N}} & 41,269,789 \ hline
\
end{tabularx}
caption{....}
vspace{-5mm}
end{table}
FloatBarrier








share



























    2















    I'm back with more table issues!



    I am trying to center the top row on the following table (the one that reads "Center This"). I have been trouble shooting a few solutions here on tex but can't seem to get it right.



    documentclass[format=acmsmall, anonymous=true]{acmart}
    usepackage{array,tabularx,ragged2e,booktabs}

    begin{table}
    centering
    begin{tabularx}{linewidth}{lrlr}
    hline
    rowcolor[HTML]{EFEFEF}
    multicolumn{4}{X}{cellcolor[HTML]{EFEFEF}
    textbf{Center This}} \ hline
    textit{textbf{}} & textit{textbf{#}} & textit{textbf{}} & textit{textbf{#}} \ hline
    rowcolor[HTML]{EFEFEF}
    textit{N} & 28,191 & textit{textbf{N}} & 36,466,751 \
    textit{textbf{N}} & 1,864,879 & textit{N} & 28,060 \
    rowcolor[HTML]{EFEFEF}
    textit{N} & 20,332 & textit{textbf{N}} & 2,780,477 \
    textit{N} & 223,125 & textit{N} & 156,596 \
    rowcolor[HTML]{EFEFEF}
    textit{N} & 855,370 & textit{N} & 103,620 \
    textit{N} & 97,971 & textit{N} & 12,592 \
    rowcolor[HTML]{EFEFEF}
    textit{N} & 597,320 & textit{N} & 5,933,800 \
    textit{N} & 592,703 & textit{N} & 26,060 \
    rowcolor[HTML]{EFEFEF}
    textit{N} & 6,379,367 & textit{textbf{N}} & 843,139 \
    textit{N} & 3,132,240 & textit{N} & 132,380 \
    rowcolor[HTML]{EFEFEF}
    textit{N} & 84,780 & textit{textbf{N}} & 452,743 \
    textit{N} & 236,082 & textit{N} & 7,849,435 \
    rowcolor[HTML]{EFEFEF}
    textit{textbf{N}} & 1,990,117 & textit{N} & 171,539 \
    textit{N} & 6,884,437 & textit{textbf{N}} & 41,269,789 \ hline
    \
    end{tabularx}
    caption{....}
    vspace{-5mm}
    end{table}
    FloatBarrier








    share

























      2












      2








      2








      I'm back with more table issues!



      I am trying to center the top row on the following table (the one that reads "Center This"). I have been trouble shooting a few solutions here on tex but can't seem to get it right.



      documentclass[format=acmsmall, anonymous=true]{acmart}
      usepackage{array,tabularx,ragged2e,booktabs}

      begin{table}
      centering
      begin{tabularx}{linewidth}{lrlr}
      hline
      rowcolor[HTML]{EFEFEF}
      multicolumn{4}{X}{cellcolor[HTML]{EFEFEF}
      textbf{Center This}} \ hline
      textit{textbf{}} & textit{textbf{#}} & textit{textbf{}} & textit{textbf{#}} \ hline
      rowcolor[HTML]{EFEFEF}
      textit{N} & 28,191 & textit{textbf{N}} & 36,466,751 \
      textit{textbf{N}} & 1,864,879 & textit{N} & 28,060 \
      rowcolor[HTML]{EFEFEF}
      textit{N} & 20,332 & textit{textbf{N}} & 2,780,477 \
      textit{N} & 223,125 & textit{N} & 156,596 \
      rowcolor[HTML]{EFEFEF}
      textit{N} & 855,370 & textit{N} & 103,620 \
      textit{N} & 97,971 & textit{N} & 12,592 \
      rowcolor[HTML]{EFEFEF}
      textit{N} & 597,320 & textit{N} & 5,933,800 \
      textit{N} & 592,703 & textit{N} & 26,060 \
      rowcolor[HTML]{EFEFEF}
      textit{N} & 6,379,367 & textit{textbf{N}} & 843,139 \
      textit{N} & 3,132,240 & textit{N} & 132,380 \
      rowcolor[HTML]{EFEFEF}
      textit{N} & 84,780 & textit{textbf{N}} & 452,743 \
      textit{N} & 236,082 & textit{N} & 7,849,435 \
      rowcolor[HTML]{EFEFEF}
      textit{textbf{N}} & 1,990,117 & textit{N} & 171,539 \
      textit{N} & 6,884,437 & textit{textbf{N}} & 41,269,789 \ hline
      \
      end{tabularx}
      caption{....}
      vspace{-5mm}
      end{table}
      FloatBarrier








      share














      I'm back with more table issues!



      I am trying to center the top row on the following table (the one that reads "Center This"). I have been trouble shooting a few solutions here on tex but can't seem to get it right.



      documentclass[format=acmsmall, anonymous=true]{acmart}
      usepackage{array,tabularx,ragged2e,booktabs}

      begin{table}
      centering
      begin{tabularx}{linewidth}{lrlr}
      hline
      rowcolor[HTML]{EFEFEF}
      multicolumn{4}{X}{cellcolor[HTML]{EFEFEF}
      textbf{Center This}} \ hline
      textit{textbf{}} & textit{textbf{#}} & textit{textbf{}} & textit{textbf{#}} \ hline
      rowcolor[HTML]{EFEFEF}
      textit{N} & 28,191 & textit{textbf{N}} & 36,466,751 \
      textit{textbf{N}} & 1,864,879 & textit{N} & 28,060 \
      rowcolor[HTML]{EFEFEF}
      textit{N} & 20,332 & textit{textbf{N}} & 2,780,477 \
      textit{N} & 223,125 & textit{N} & 156,596 \
      rowcolor[HTML]{EFEFEF}
      textit{N} & 855,370 & textit{N} & 103,620 \
      textit{N} & 97,971 & textit{N} & 12,592 \
      rowcolor[HTML]{EFEFEF}
      textit{N} & 597,320 & textit{N} & 5,933,800 \
      textit{N} & 592,703 & textit{N} & 26,060 \
      rowcolor[HTML]{EFEFEF}
      textit{N} & 6,379,367 & textit{textbf{N}} & 843,139 \
      textit{N} & 3,132,240 & textit{N} & 132,380 \
      rowcolor[HTML]{EFEFEF}
      textit{N} & 84,780 & textit{textbf{N}} & 452,743 \
      textit{N} & 236,082 & textit{N} & 7,849,435 \
      rowcolor[HTML]{EFEFEF}
      textit{textbf{N}} & 1,990,117 & textit{N} & 171,539 \
      textit{N} & 6,884,437 & textit{textbf{N}} & 41,269,789 \ hline
      \
      end{tabularx}
      caption{....}
      vspace{-5mm}
      end{table}
      FloatBarrier






      tables





      share












      share










      share



      share










      asked 5 mins ago









      cranbarriercranbarrier

      162




      162






















          1 Answer
          1






          active

          oldest

          votes


















          1














          Like this?



          documentclass[format=acmsmall, anonymous=true]{acmart}
          usepackage{array,tabularx,ragged2e,booktabs,colortbl}
          begin{document}
          begin{table}
          centering
          begin{tabularx}{linewidth}{lrlr}
          hline
          rowcolor[HTML]{EFEFEF}
          multicolumn{4}{X}{cellcolor[HTML]{EFEFEF}centering
          textbf{Center This}} \ hline
          textit{textbf{}} & textit{textbf{#}} & textit{textbf{}} & textit{textbf{#}} \ hline
          rowcolor[HTML]{EFEFEF}
          textit{N} & 28,191 & textit{textbf{N}} & 36,466,751 \
          textit{textbf{N}} & 1,864,879 & textit{N} & 28,060 \
          rowcolor[HTML]{EFEFEF}
          textit{N} & 20,332 & textit{textbf{N}} & 2,780,477 \
          textit{N} & 223,125 & textit{N} & 156,596 \
          rowcolor[HTML]{EFEFEF}
          textit{N} & 855,370 & textit{N} & 103,620 \
          textit{N} & 97,971 & textit{N} & 12,592 \
          rowcolor[HTML]{EFEFEF}
          textit{N} & 597,320 & textit{N} & 5,933,800 \
          textit{N} & 592,703 & textit{N} & 26,060 \
          rowcolor[HTML]{EFEFEF}
          textit{N} & 6,379,367 & textit{textbf{N}} & 843,139 \
          textit{N} & 3,132,240 & textit{N} & 132,380 \
          rowcolor[HTML]{EFEFEF}
          textit{N} & 84,780 & textit{textbf{N}} & 452,743 \
          textit{N} & 236,082 & textit{N} & 7,849,435 \
          rowcolor[HTML]{EFEFEF}
          textit{textbf{N}} & 1,990,117 & textit{N} & 171,539 \
          textit{N} & 6,884,437 & textit{textbf{N}} & 41,269,789 \ hline
          \
          end{tabularx}
          caption{....}
          vspace{-5mm}
          end{table}
          % FloatBarrier
          end{document}


          enter image description here





          share
























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


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f482334%2fcentering-a-single-row-with-tabularx%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









            1














            Like this?



            documentclass[format=acmsmall, anonymous=true]{acmart}
            usepackage{array,tabularx,ragged2e,booktabs,colortbl}
            begin{document}
            begin{table}
            centering
            begin{tabularx}{linewidth}{lrlr}
            hline
            rowcolor[HTML]{EFEFEF}
            multicolumn{4}{X}{cellcolor[HTML]{EFEFEF}centering
            textbf{Center This}} \ hline
            textit{textbf{}} & textit{textbf{#}} & textit{textbf{}} & textit{textbf{#}} \ hline
            rowcolor[HTML]{EFEFEF}
            textit{N} & 28,191 & textit{textbf{N}} & 36,466,751 \
            textit{textbf{N}} & 1,864,879 & textit{N} & 28,060 \
            rowcolor[HTML]{EFEFEF}
            textit{N} & 20,332 & textit{textbf{N}} & 2,780,477 \
            textit{N} & 223,125 & textit{N} & 156,596 \
            rowcolor[HTML]{EFEFEF}
            textit{N} & 855,370 & textit{N} & 103,620 \
            textit{N} & 97,971 & textit{N} & 12,592 \
            rowcolor[HTML]{EFEFEF}
            textit{N} & 597,320 & textit{N} & 5,933,800 \
            textit{N} & 592,703 & textit{N} & 26,060 \
            rowcolor[HTML]{EFEFEF}
            textit{N} & 6,379,367 & textit{textbf{N}} & 843,139 \
            textit{N} & 3,132,240 & textit{N} & 132,380 \
            rowcolor[HTML]{EFEFEF}
            textit{N} & 84,780 & textit{textbf{N}} & 452,743 \
            textit{N} & 236,082 & textit{N} & 7,849,435 \
            rowcolor[HTML]{EFEFEF}
            textit{textbf{N}} & 1,990,117 & textit{N} & 171,539 \
            textit{N} & 6,884,437 & textit{textbf{N}} & 41,269,789 \ hline
            \
            end{tabularx}
            caption{....}
            vspace{-5mm}
            end{table}
            % FloatBarrier
            end{document}


            enter image description here





            share




























              1














              Like this?



              documentclass[format=acmsmall, anonymous=true]{acmart}
              usepackage{array,tabularx,ragged2e,booktabs,colortbl}
              begin{document}
              begin{table}
              centering
              begin{tabularx}{linewidth}{lrlr}
              hline
              rowcolor[HTML]{EFEFEF}
              multicolumn{4}{X}{cellcolor[HTML]{EFEFEF}centering
              textbf{Center This}} \ hline
              textit{textbf{}} & textit{textbf{#}} & textit{textbf{}} & textit{textbf{#}} \ hline
              rowcolor[HTML]{EFEFEF}
              textit{N} & 28,191 & textit{textbf{N}} & 36,466,751 \
              textit{textbf{N}} & 1,864,879 & textit{N} & 28,060 \
              rowcolor[HTML]{EFEFEF}
              textit{N} & 20,332 & textit{textbf{N}} & 2,780,477 \
              textit{N} & 223,125 & textit{N} & 156,596 \
              rowcolor[HTML]{EFEFEF}
              textit{N} & 855,370 & textit{N} & 103,620 \
              textit{N} & 97,971 & textit{N} & 12,592 \
              rowcolor[HTML]{EFEFEF}
              textit{N} & 597,320 & textit{N} & 5,933,800 \
              textit{N} & 592,703 & textit{N} & 26,060 \
              rowcolor[HTML]{EFEFEF}
              textit{N} & 6,379,367 & textit{textbf{N}} & 843,139 \
              textit{N} & 3,132,240 & textit{N} & 132,380 \
              rowcolor[HTML]{EFEFEF}
              textit{N} & 84,780 & textit{textbf{N}} & 452,743 \
              textit{N} & 236,082 & textit{N} & 7,849,435 \
              rowcolor[HTML]{EFEFEF}
              textit{textbf{N}} & 1,990,117 & textit{N} & 171,539 \
              textit{N} & 6,884,437 & textit{textbf{N}} & 41,269,789 \ hline
              \
              end{tabularx}
              caption{....}
              vspace{-5mm}
              end{table}
              % FloatBarrier
              end{document}


              enter image description here





              share


























                1












                1








                1







                Like this?



                documentclass[format=acmsmall, anonymous=true]{acmart}
                usepackage{array,tabularx,ragged2e,booktabs,colortbl}
                begin{document}
                begin{table}
                centering
                begin{tabularx}{linewidth}{lrlr}
                hline
                rowcolor[HTML]{EFEFEF}
                multicolumn{4}{X}{cellcolor[HTML]{EFEFEF}centering
                textbf{Center This}} \ hline
                textit{textbf{}} & textit{textbf{#}} & textit{textbf{}} & textit{textbf{#}} \ hline
                rowcolor[HTML]{EFEFEF}
                textit{N} & 28,191 & textit{textbf{N}} & 36,466,751 \
                textit{textbf{N}} & 1,864,879 & textit{N} & 28,060 \
                rowcolor[HTML]{EFEFEF}
                textit{N} & 20,332 & textit{textbf{N}} & 2,780,477 \
                textit{N} & 223,125 & textit{N} & 156,596 \
                rowcolor[HTML]{EFEFEF}
                textit{N} & 855,370 & textit{N} & 103,620 \
                textit{N} & 97,971 & textit{N} & 12,592 \
                rowcolor[HTML]{EFEFEF}
                textit{N} & 597,320 & textit{N} & 5,933,800 \
                textit{N} & 592,703 & textit{N} & 26,060 \
                rowcolor[HTML]{EFEFEF}
                textit{N} & 6,379,367 & textit{textbf{N}} & 843,139 \
                textit{N} & 3,132,240 & textit{N} & 132,380 \
                rowcolor[HTML]{EFEFEF}
                textit{N} & 84,780 & textit{textbf{N}} & 452,743 \
                textit{N} & 236,082 & textit{N} & 7,849,435 \
                rowcolor[HTML]{EFEFEF}
                textit{textbf{N}} & 1,990,117 & textit{N} & 171,539 \
                textit{N} & 6,884,437 & textit{textbf{N}} & 41,269,789 \ hline
                \
                end{tabularx}
                caption{....}
                vspace{-5mm}
                end{table}
                % FloatBarrier
                end{document}


                enter image description here





                share













                Like this?



                documentclass[format=acmsmall, anonymous=true]{acmart}
                usepackage{array,tabularx,ragged2e,booktabs,colortbl}
                begin{document}
                begin{table}
                centering
                begin{tabularx}{linewidth}{lrlr}
                hline
                rowcolor[HTML]{EFEFEF}
                multicolumn{4}{X}{cellcolor[HTML]{EFEFEF}centering
                textbf{Center This}} \ hline
                textit{textbf{}} & textit{textbf{#}} & textit{textbf{}} & textit{textbf{#}} \ hline
                rowcolor[HTML]{EFEFEF}
                textit{N} & 28,191 & textit{textbf{N}} & 36,466,751 \
                textit{textbf{N}} & 1,864,879 & textit{N} & 28,060 \
                rowcolor[HTML]{EFEFEF}
                textit{N} & 20,332 & textit{textbf{N}} & 2,780,477 \
                textit{N} & 223,125 & textit{N} & 156,596 \
                rowcolor[HTML]{EFEFEF}
                textit{N} & 855,370 & textit{N} & 103,620 \
                textit{N} & 97,971 & textit{N} & 12,592 \
                rowcolor[HTML]{EFEFEF}
                textit{N} & 597,320 & textit{N} & 5,933,800 \
                textit{N} & 592,703 & textit{N} & 26,060 \
                rowcolor[HTML]{EFEFEF}
                textit{N} & 6,379,367 & textit{textbf{N}} & 843,139 \
                textit{N} & 3,132,240 & textit{N} & 132,380 \
                rowcolor[HTML]{EFEFEF}
                textit{N} & 84,780 & textit{textbf{N}} & 452,743 \
                textit{N} & 236,082 & textit{N} & 7,849,435 \
                rowcolor[HTML]{EFEFEF}
                textit{textbf{N}} & 1,990,117 & textit{N} & 171,539 \
                textit{N} & 6,884,437 & textit{textbf{N}} & 41,269,789 \ hline
                \
                end{tabularx}
                caption{....}
                vspace{-5mm}
                end{table}
                % FloatBarrier
                end{document}


                enter image description here






                share











                share


                share










                answered 2 mins ago









                marmotmarmot

                113k5145274




                113k5145274






























                    draft saved

                    draft discarded




















































                    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%2f482334%2fcentering-a-single-row-with-tabularx%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

                    IEEEtran - How to include ORCID in TeX/PDF with PdfLatexIs there a standard way to include ORCID in TeX /...

                    Cicindela nigrior Przypisy | Menu nawigacyjneCicindela varians unicolorManual for the Identification of the...

                    Glossaries-extra: Adding glossaries package to “Clas­sicTh­e­sis” template by Dr. André Miede v. 4.6 ...