Specifying a starting column with colortbl package and xcolor

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












5















I have a table that I have attempted to set up as follows (contrived example):



% Preview source code

%% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[english]article
usepackage[T1]fontenc
usepackage[latin9]inputenc
usepackagegeometry
geometryverbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm
usepackagearray
usepackagemultirow
usepackagegraphicx

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
providecommandtabularnewline\

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
usepackage[table]xcolor %for use in color links
usepackagecolortbl

makeatother

usepackagebabel
begindocument
noindent beginflushleft
rowcolors3gray!20%
begintabularccccccc
& & multicolumn5cLorem ipsum dolor sit amettabularnewline
& & Header & Header & Header & Header & Headertabularnewline
multirow8*cellcolorwhiterotatebox90Lorem ipsum & Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
endtabularrowcolors2
parendflushleft
enddocument


Apologies in advance for this being generated code, but a commenter below asked for a complete compilable example instead of just the tabular snippet that I had had originally posted. Hopefully this will make it clearer, but I apologize in advance if it has obfuscated the problem.



Anyways, this renders as:



Table



As seen, the sideways header that I am using on the left side of the table gets overwritten by the color of the row, interrupting the text.



What I would like to do is have that entire first column containing the left row header be white on all rows, which I tried to do by adding cellcolorwhite to the multirow cell, but as the image indicates, it only cleared the top gray strip in that cell, and didn't do anything to the rest of the first column.



How can I get the full text of the header to show up correctly?










share|improve this question
























  • Can you please make your code snippet compilable, then we have not to guess what you are doing?

    – Kurt
    Mar 10 at 21:27











  • I provided only a snippet because that was all that was relevant. I have now pasted a full sample document as generated by the TeX editor I am using

    – Mark
    Mar 10 at 21:33















5















I have a table that I have attempted to set up as follows (contrived example):



% Preview source code

%% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[english]article
usepackage[T1]fontenc
usepackage[latin9]inputenc
usepackagegeometry
geometryverbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm
usepackagearray
usepackagemultirow
usepackagegraphicx

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
providecommandtabularnewline\

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
usepackage[table]xcolor %for use in color links
usepackagecolortbl

makeatother

usepackagebabel
begindocument
noindent beginflushleft
rowcolors3gray!20%
begintabularccccccc
& & multicolumn5cLorem ipsum dolor sit amettabularnewline
& & Header & Header & Header & Header & Headertabularnewline
multirow8*cellcolorwhiterotatebox90Lorem ipsum & Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
endtabularrowcolors2
parendflushleft
enddocument


Apologies in advance for this being generated code, but a commenter below asked for a complete compilable example instead of just the tabular snippet that I had had originally posted. Hopefully this will make it clearer, but I apologize in advance if it has obfuscated the problem.



Anyways, this renders as:



Table



As seen, the sideways header that I am using on the left side of the table gets overwritten by the color of the row, interrupting the text.



What I would like to do is have that entire first column containing the left row header be white on all rows, which I tried to do by adding cellcolorwhite to the multirow cell, but as the image indicates, it only cleared the top gray strip in that cell, and didn't do anything to the rest of the first column.



How can I get the full text of the header to show up correctly?










share|improve this question
























  • Can you please make your code snippet compilable, then we have not to guess what you are doing?

    – Kurt
    Mar 10 at 21:27











  • I provided only a snippet because that was all that was relevant. I have now pasted a full sample document as generated by the TeX editor I am using

    – Mark
    Mar 10 at 21:33













5












5








5








I have a table that I have attempted to set up as follows (contrived example):



% Preview source code

%% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[english]article
usepackage[T1]fontenc
usepackage[latin9]inputenc
usepackagegeometry
geometryverbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm
usepackagearray
usepackagemultirow
usepackagegraphicx

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
providecommandtabularnewline\

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
usepackage[table]xcolor %for use in color links
usepackagecolortbl

makeatother

usepackagebabel
begindocument
noindent beginflushleft
rowcolors3gray!20%
begintabularccccccc
& & multicolumn5cLorem ipsum dolor sit amettabularnewline
& & Header & Header & Header & Header & Headertabularnewline
multirow8*cellcolorwhiterotatebox90Lorem ipsum & Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
endtabularrowcolors2
parendflushleft
enddocument


Apologies in advance for this being generated code, but a commenter below asked for a complete compilable example instead of just the tabular snippet that I had had originally posted. Hopefully this will make it clearer, but I apologize in advance if it has obfuscated the problem.



Anyways, this renders as:



Table



As seen, the sideways header that I am using on the left side of the table gets overwritten by the color of the row, interrupting the text.



What I would like to do is have that entire first column containing the left row header be white on all rows, which I tried to do by adding cellcolorwhite to the multirow cell, but as the image indicates, it only cleared the top gray strip in that cell, and didn't do anything to the rest of the first column.



How can I get the full text of the header to show up correctly?










share|improve this question
















I have a table that I have attempted to set up as follows (contrived example):



% Preview source code

%% LyX 2.3.2-2 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
documentclass[english]article
usepackage[T1]fontenc
usepackage[latin9]inputenc
usepackagegeometry
geometryverbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm
usepackagearray
usepackagemultirow
usepackagegraphicx

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
providecommandtabularnewline\

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
usepackage[table]xcolor %for use in color links
usepackagecolortbl

makeatother

usepackagebabel
begindocument
noindent beginflushleft
rowcolors3gray!20%
begintabularccccccc
& & multicolumn5cLorem ipsum dolor sit amettabularnewline
& & Header & Header & Header & Header & Headertabularnewline
multirow8*cellcolorwhiterotatebox90Lorem ipsum & Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
endtabularrowcolors2
parendflushleft
enddocument


Apologies in advance for this being generated code, but a commenter below asked for a complete compilable example instead of just the tabular snippet that I had had originally posted. Hopefully this will make it clearer, but I apologize in advance if it has obfuscated the problem.



Anyways, this renders as:



Table



As seen, the sideways header that I am using on the left side of the table gets overwritten by the color of the row, interrupting the text.



What I would like to do is have that entire first column containing the left row header be white on all rows, which I tried to do by adding cellcolorwhite to the multirow cell, but as the image indicates, it only cleared the top gray strip in that cell, and didn't do anything to the rest of the first column.



How can I get the full text of the header to show up correctly?







tables rotating colortbl rowcolor cellcolor






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 10 at 21:37







Mark

















asked Mar 10 at 21:23









MarkMark

1604




1604












  • Can you please make your code snippet compilable, then we have not to guess what you are doing?

    – Kurt
    Mar 10 at 21:27











  • I provided only a snippet because that was all that was relevant. I have now pasted a full sample document as generated by the TeX editor I am using

    – Mark
    Mar 10 at 21:33

















  • Can you please make your code snippet compilable, then we have not to guess what you are doing?

    – Kurt
    Mar 10 at 21:27











  • I provided only a snippet because that was all that was relevant. I have now pasted a full sample document as generated by the TeX editor I am using

    – Mark
    Mar 10 at 21:33
















Can you please make your code snippet compilable, then we have not to guess what you are doing?

– Kurt
Mar 10 at 21:27





Can you please make your code snippet compilable, then we have not to guess what you are doing?

– Kurt
Mar 10 at 21:27













I provided only a snippet because that was all that was relevant. I have now pasted a full sample document as generated by the TeX editor I am using

– Mark
Mar 10 at 21:33





I provided only a snippet because that was all that was relevant. I have now pasted a full sample document as generated by the TeX editor I am using

– Mark
Mar 10 at 21:33










2 Answers
2






active

oldest

votes


















5














Using multirow is the cause of your troubles.



documentclassarticle
usepackagegraphicx
usepackage[table]xcolor %for use in color links

begindocument

beginflushleft
begintabular@c
rotatebox[origin=c]90Lorem ipsumhspace2dimexprhtstrutbox+dpstrutbox
endtabular%
rowcolors3gray!20%
begintabularcccccc
& multicolumn5cLorem ipsum dolor sit amettabularnewline
& Header & Header & Header & Header & Headertabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
endtabularrowcolors2
endflushleft

enddocument


I have reduced the document to the minimum necessary.



Note that noindentbeginflushleft is nonsense, because it just adds unwanted vertical space (a blank line). Also parendflushleft is not necessary.



enter image description here



What does the strange hspace command? It adds the vertical size of the two header rows.






share|improve this answer






























    4














    In the following code, I have added a cellcolorwhite command to all the cells that are in a gray row and should actually have a white background. I have also shifted the multirow command from the first row to the last row and used -8 instead of 8:



    documentclass[english]article
    usepackage[T1]fontenc
    usepackage[latin9]inputenc
    usepackagegeometry
    geometryverbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm
    usepackagearray
    usepackagemultirow
    usepackagegraphicx

    usepackage[table]xcolor


    begindocument
    noindent
    beginflushleft
    rowcolors3gray!20%
    begintabularccccccc
    & & multicolumn5cLorem ipsum dolor sit amettabularnewline
    & & Header & Header & Header & Header & Headertabularnewline
    cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
    & Content & ### & ### & ### & ### & ###tabularnewline
    cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
    & Content & ### & ### & ### & ### & ###tabularnewline
    cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
    & Content & ### & ### & ### & ### & ###tabularnewline
    cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
    multirow-8*rotatebox90Lorem ipsum & Content & ### & ### & ### & ### & ###tabularnewline
    endtabular
    parendflushleft
    enddocument


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



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f478784%2fspecifying-a-starting-column-with-colortbl-package-and-xcolor%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      5














      Using multirow is the cause of your troubles.



      documentclassarticle
      usepackagegraphicx
      usepackage[table]xcolor %for use in color links

      begindocument

      beginflushleft
      begintabular@c
      rotatebox[origin=c]90Lorem ipsumhspace2dimexprhtstrutbox+dpstrutbox
      endtabular%
      rowcolors3gray!20%
      begintabularcccccc
      & multicolumn5cLorem ipsum dolor sit amettabularnewline
      & Header & Header & Header & Header & Headertabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      endtabularrowcolors2
      endflushleft

      enddocument


      I have reduced the document to the minimum necessary.



      Note that noindentbeginflushleft is nonsense, because it just adds unwanted vertical space (a blank line). Also parendflushleft is not necessary.



      enter image description here



      What does the strange hspace command? It adds the vertical size of the two header rows.






      share|improve this answer



























        5














        Using multirow is the cause of your troubles.



        documentclassarticle
        usepackagegraphicx
        usepackage[table]xcolor %for use in color links

        begindocument

        beginflushleft
        begintabular@c
        rotatebox[origin=c]90Lorem ipsumhspace2dimexprhtstrutbox+dpstrutbox
        endtabular%
        rowcolors3gray!20%
        begintabularcccccc
        & multicolumn5cLorem ipsum dolor sit amettabularnewline
        & Header & Header & Header & Header & Headertabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        endtabularrowcolors2
        endflushleft

        enddocument


        I have reduced the document to the minimum necessary.



        Note that noindentbeginflushleft is nonsense, because it just adds unwanted vertical space (a blank line). Also parendflushleft is not necessary.



        enter image description here



        What does the strange hspace command? It adds the vertical size of the two header rows.






        share|improve this answer

























          5












          5








          5







          Using multirow is the cause of your troubles.



          documentclassarticle
          usepackagegraphicx
          usepackage[table]xcolor %for use in color links

          begindocument

          beginflushleft
          begintabular@c
          rotatebox[origin=c]90Lorem ipsumhspace2dimexprhtstrutbox+dpstrutbox
          endtabular%
          rowcolors3gray!20%
          begintabularcccccc
          & multicolumn5cLorem ipsum dolor sit amettabularnewline
          & Header & Header & Header & Header & Headertabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          endtabularrowcolors2
          endflushleft

          enddocument


          I have reduced the document to the minimum necessary.



          Note that noindentbeginflushleft is nonsense, because it just adds unwanted vertical space (a blank line). Also parendflushleft is not necessary.



          enter image description here



          What does the strange hspace command? It adds the vertical size of the two header rows.






          share|improve this answer













          Using multirow is the cause of your troubles.



          documentclassarticle
          usepackagegraphicx
          usepackage[table]xcolor %for use in color links

          begindocument

          beginflushleft
          begintabular@c
          rotatebox[origin=c]90Lorem ipsumhspace2dimexprhtstrutbox+dpstrutbox
          endtabular%
          rowcolors3gray!20%
          begintabularcccccc
          & multicolumn5cLorem ipsum dolor sit amettabularnewline
          & Header & Header & Header & Header & Headertabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          endtabularrowcolors2
          endflushleft

          enddocument


          I have reduced the document to the minimum necessary.



          Note that noindentbeginflushleft is nonsense, because it just adds unwanted vertical space (a blank line). Also parendflushleft is not necessary.



          enter image description here



          What does the strange hspace command? It adds the vertical size of the two header rows.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 10 at 22:23









          egregegreg

          732k8919303254




          732k8919303254





















              4














              In the following code, I have added a cellcolorwhite command to all the cells that are in a gray row and should actually have a white background. I have also shifted the multirow command from the first row to the last row and used -8 instead of 8:



              documentclass[english]article
              usepackage[T1]fontenc
              usepackage[latin9]inputenc
              usepackagegeometry
              geometryverbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm
              usepackagearray
              usepackagemultirow
              usepackagegraphicx

              usepackage[table]xcolor


              begindocument
              noindent
              beginflushleft
              rowcolors3gray!20%
              begintabularccccccc
              & & multicolumn5cLorem ipsum dolor sit amettabularnewline
              & & Header & Header & Header & Header & Headertabularnewline
              cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
              & Content & ### & ### & ### & ### & ###tabularnewline
              cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
              & Content & ### & ### & ### & ### & ###tabularnewline
              cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
              & Content & ### & ### & ### & ### & ###tabularnewline
              cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
              multirow-8*rotatebox90Lorem ipsum & Content & ### & ### & ### & ### & ###tabularnewline
              endtabular
              parendflushleft
              enddocument


              enter image description here






              share|improve this answer



























                4














                In the following code, I have added a cellcolorwhite command to all the cells that are in a gray row and should actually have a white background. I have also shifted the multirow command from the first row to the last row and used -8 instead of 8:



                documentclass[english]article
                usepackage[T1]fontenc
                usepackage[latin9]inputenc
                usepackagegeometry
                geometryverbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm
                usepackagearray
                usepackagemultirow
                usepackagegraphicx

                usepackage[table]xcolor


                begindocument
                noindent
                beginflushleft
                rowcolors3gray!20%
                begintabularccccccc
                & & multicolumn5cLorem ipsum dolor sit amettabularnewline
                & & Header & Header & Header & Header & Headertabularnewline
                cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                & Content & ### & ### & ### & ### & ###tabularnewline
                cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                & Content & ### & ### & ### & ### & ###tabularnewline
                cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                & Content & ### & ### & ### & ### & ###tabularnewline
                cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                multirow-8*rotatebox90Lorem ipsum & Content & ### & ### & ### & ### & ###tabularnewline
                endtabular
                parendflushleft
                enddocument


                enter image description here






                share|improve this answer

























                  4












                  4








                  4







                  In the following code, I have added a cellcolorwhite command to all the cells that are in a gray row and should actually have a white background. I have also shifted the multirow command from the first row to the last row and used -8 instead of 8:



                  documentclass[english]article
                  usepackage[T1]fontenc
                  usepackage[latin9]inputenc
                  usepackagegeometry
                  geometryverbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm
                  usepackagearray
                  usepackagemultirow
                  usepackagegraphicx

                  usepackage[table]xcolor


                  begindocument
                  noindent
                  beginflushleft
                  rowcolors3gray!20%
                  begintabularccccccc
                  & & multicolumn5cLorem ipsum dolor sit amettabularnewline
                  & & Header & Header & Header & Header & Headertabularnewline
                  cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                  multirow-8*rotatebox90Lorem ipsum & Content & ### & ### & ### & ### & ###tabularnewline
                  endtabular
                  parendflushleft
                  enddocument


                  enter image description here






                  share|improve this answer













                  In the following code, I have added a cellcolorwhite command to all the cells that are in a gray row and should actually have a white background. I have also shifted the multirow command from the first row to the last row and used -8 instead of 8:



                  documentclass[english]article
                  usepackage[T1]fontenc
                  usepackage[latin9]inputenc
                  usepackagegeometry
                  geometryverbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm
                  usepackagearray
                  usepackagemultirow
                  usepackagegraphicx

                  usepackage[table]xcolor


                  begindocument
                  noindent
                  beginflushleft
                  rowcolors3gray!20%
                  begintabularccccccc
                  & & multicolumn5cLorem ipsum dolor sit amettabularnewline
                  & & Header & Header & Header & Header & Headertabularnewline
                  cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolorwhite & Content & ### & ### & ### & ### & ###tabularnewline
                  multirow-8*rotatebox90Lorem ipsum & Content & ### & ### & ### & ### & ###tabularnewline
                  endtabular
                  parendflushleft
                  enddocument


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 10 at 21:45









                  leandriisleandriis

                  11.2k1733




                  11.2k1733



























                      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%2f478784%2fspecifying-a-starting-column-with-colortbl-package-and-xcolor%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

                      How to check contact read email or not when send email to Individual?

                      Bahrain

                      Postfix configuration issue with fips on centos 7; mailgun relay