Specifying a starting column with colortbl package and xcolor












4















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}
usepackage{geometry}
geometry{verbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm}
usepackage{array}
usepackage{multirow}
usepackage{graphicx}

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
providecommand{tabularnewline}{\}

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

makeatother

usepackage{babel}
begin{document}
noindent begin{flushleft}
rowcolors{3}{gray!20}{}%
begin{tabular}{ccccccc}
& & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
& & Header & Header & Header & Header & Headertabularnewline
multirow{8}{*}{cellcolor{white}rotatebox{90}{Lorem ipsum}} & Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
end{tabular}rowcolors{2}{}{}
parend{flushleft}
end{document}


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 cellcolor{white} 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
    6 hours ago











  • 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
    6 hours ago
















4















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}
usepackage{geometry}
geometry{verbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm}
usepackage{array}
usepackage{multirow}
usepackage{graphicx}

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
providecommand{tabularnewline}{\}

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

makeatother

usepackage{babel}
begin{document}
noindent begin{flushleft}
rowcolors{3}{gray!20}{}%
begin{tabular}{ccccccc}
& & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
& & Header & Header & Header & Header & Headertabularnewline
multirow{8}{*}{cellcolor{white}rotatebox{90}{Lorem ipsum}} & Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
end{tabular}rowcolors{2}{}{}
parend{flushleft}
end{document}


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 cellcolor{white} 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
    6 hours ago











  • 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
    6 hours ago














4












4








4








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}
usepackage{geometry}
geometry{verbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm}
usepackage{array}
usepackage{multirow}
usepackage{graphicx}

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
providecommand{tabularnewline}{\}

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

makeatother

usepackage{babel}
begin{document}
noindent begin{flushleft}
rowcolors{3}{gray!20}{}%
begin{tabular}{ccccccc}
& & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
& & Header & Header & Header & Header & Headertabularnewline
multirow{8}{*}{cellcolor{white}rotatebox{90}{Lorem ipsum}} & Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
end{tabular}rowcolors{2}{}{}
parend{flushleft}
end{document}


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 cellcolor{white} 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}
usepackage{geometry}
geometry{verbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm}
usepackage{array}
usepackage{multirow}
usepackage{graphicx}

makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
providecommand{tabularnewline}{\}

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

makeatother

usepackage{babel}
begin{document}
noindent begin{flushleft}
rowcolors{3}{gray!20}{}%
begin{tabular}{ccccccc}
& & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
& & Header & Header & Header & Header & Headertabularnewline
multirow{8}{*}{cellcolor{white}rotatebox{90}{Lorem ipsum}} & Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
& Content & ### & ### & ### & ### & ###tabularnewline
end{tabular}rowcolors{2}{}{}
parend{flushleft}
end{document}


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 cellcolor{white} 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 6 hours ago







Mark

















asked 6 hours ago









MarkMark

1504




1504













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

    – Kurt
    6 hours ago











  • 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
    6 hours ago



















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

    – Kurt
    6 hours ago











  • 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
    6 hours ago

















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

– Kurt
6 hours ago





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

– Kurt
6 hours ago













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
6 hours ago





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
6 hours ago










2 Answers
2






active

oldest

votes


















3














Using multirow is the cause of your troubles.



documentclass{article}
usepackage{graphicx}
usepackage[table]{xcolor} %for use in color links

begin{document}

begin{flushleft}
begin{tabular}{@{}c}
rotatebox[origin=c]{90}{Lorem ipsumhspace{2dimexprhtstrutbox+dpstrutbox}}
end{tabular}%
rowcolors{3}{gray!20}{}%
begin{tabular}{cccccc}
& multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
& Header & Header & Header & Header & Headertabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
Content & ### & ### & ### & ### & ###tabularnewline
end{tabular}rowcolors{2}{}{}
end{flushleft}

end{document}


I have reduced the document to the minimum necessary.



Note that noindentbegin{flushleft} is nonsense, because it just adds unwanted vertical space (a blank line). Also parend{flushleft} 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































    3














    In the following code, I have added a cellcolor{white} 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}
    usepackage{geometry}
    geometry{verbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm}
    usepackage{array}
    usepackage{multirow}
    usepackage{graphicx}

    usepackage[table]{xcolor}


    begin{document}
    noindent
    begin{flushleft}
    rowcolors{3}{gray!20}{}%
    begin{tabular}{ccccccc}
    & & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
    & & Header & Header & Header & Header & Headertabularnewline
    cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
    & Content & ### & ### & ### & ### & ###tabularnewline
    cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
    & Content & ### & ### & ### & ### & ###tabularnewline
    cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
    & Content & ### & ### & ### & ### & ###tabularnewline
    cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
    multirow{-8}{*}{rotatebox{90}{Lorem ipsum}} & Content & ### & ### & ### & ### & ###tabularnewline
    end{tabular}
    parend{flushleft}
    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
      });


      }
      });














      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









      3














      Using multirow is the cause of your troubles.



      documentclass{article}
      usepackage{graphicx}
      usepackage[table]{xcolor} %for use in color links

      begin{document}

      begin{flushleft}
      begin{tabular}{@{}c}
      rotatebox[origin=c]{90}{Lorem ipsumhspace{2dimexprhtstrutbox+dpstrutbox}}
      end{tabular}%
      rowcolors{3}{gray!20}{}%
      begin{tabular}{cccccc}
      & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
      & Header & Header & Header & Header & Headertabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      Content & ### & ### & ### & ### & ###tabularnewline
      end{tabular}rowcolors{2}{}{}
      end{flushleft}

      end{document}


      I have reduced the document to the minimum necessary.



      Note that noindentbegin{flushleft} is nonsense, because it just adds unwanted vertical space (a blank line). Also parend{flushleft} 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




























        3














        Using multirow is the cause of your troubles.



        documentclass{article}
        usepackage{graphicx}
        usepackage[table]{xcolor} %for use in color links

        begin{document}

        begin{flushleft}
        begin{tabular}{@{}c}
        rotatebox[origin=c]{90}{Lorem ipsumhspace{2dimexprhtstrutbox+dpstrutbox}}
        end{tabular}%
        rowcolors{3}{gray!20}{}%
        begin{tabular}{cccccc}
        & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
        & Header & Header & Header & Header & Headertabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        Content & ### & ### & ### & ### & ###tabularnewline
        end{tabular}rowcolors{2}{}{}
        end{flushleft}

        end{document}


        I have reduced the document to the minimum necessary.



        Note that noindentbegin{flushleft} is nonsense, because it just adds unwanted vertical space (a blank line). Also parend{flushleft} 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


























          3












          3








          3







          Using multirow is the cause of your troubles.



          documentclass{article}
          usepackage{graphicx}
          usepackage[table]{xcolor} %for use in color links

          begin{document}

          begin{flushleft}
          begin{tabular}{@{}c}
          rotatebox[origin=c]{90}{Lorem ipsumhspace{2dimexprhtstrutbox+dpstrutbox}}
          end{tabular}%
          rowcolors{3}{gray!20}{}%
          begin{tabular}{cccccc}
          & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
          & Header & Header & Header & Header & Headertabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          end{tabular}rowcolors{2}{}{}
          end{flushleft}

          end{document}


          I have reduced the document to the minimum necessary.



          Note that noindentbegin{flushleft} is nonsense, because it just adds unwanted vertical space (a blank line). Also parend{flushleft} 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.



          documentclass{article}
          usepackage{graphicx}
          usepackage[table]{xcolor} %for use in color links

          begin{document}

          begin{flushleft}
          begin{tabular}{@{}c}
          rotatebox[origin=c]{90}{Lorem ipsumhspace{2dimexprhtstrutbox+dpstrutbox}}
          end{tabular}%
          rowcolors{3}{gray!20}{}%
          begin{tabular}{cccccc}
          & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
          & Header & Header & Header & Header & Headertabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          Content & ### & ### & ### & ### & ###tabularnewline
          end{tabular}rowcolors{2}{}{}
          end{flushleft}

          end{document}


          I have reduced the document to the minimum necessary.



          Note that noindentbegin{flushleft} is nonsense, because it just adds unwanted vertical space (a blank line). Also parend{flushleft} 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 5 hours ago









          egregegreg

          725k8819193224




          725k8819193224























              3














              In the following code, I have added a cellcolor{white} 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}
              usepackage{geometry}
              geometry{verbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm}
              usepackage{array}
              usepackage{multirow}
              usepackage{graphicx}

              usepackage[table]{xcolor}


              begin{document}
              noindent
              begin{flushleft}
              rowcolors{3}{gray!20}{}%
              begin{tabular}{ccccccc}
              & & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
              & & Header & Header & Header & Header & Headertabularnewline
              cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
              & Content & ### & ### & ### & ### & ###tabularnewline
              cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
              & Content & ### & ### & ### & ### & ###tabularnewline
              cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
              & Content & ### & ### & ### & ### & ###tabularnewline
              cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
              multirow{-8}{*}{rotatebox{90}{Lorem ipsum}} & Content & ### & ### & ### & ### & ###tabularnewline
              end{tabular}
              parend{flushleft}
              end{document}


              enter image description here






              share|improve this answer




























                3














                In the following code, I have added a cellcolor{white} 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}
                usepackage{geometry}
                geometry{verbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm}
                usepackage{array}
                usepackage{multirow}
                usepackage{graphicx}

                usepackage[table]{xcolor}


                begin{document}
                noindent
                begin{flushleft}
                rowcolors{3}{gray!20}{}%
                begin{tabular}{ccccccc}
                & & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
                & & Header & Header & Header & Header & Headertabularnewline
                cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                & Content & ### & ### & ### & ### & ###tabularnewline
                cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                & Content & ### & ### & ### & ### & ###tabularnewline
                cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                & Content & ### & ### & ### & ### & ###tabularnewline
                cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                multirow{-8}{*}{rotatebox{90}{Lorem ipsum}} & Content & ### & ### & ### & ### & ###tabularnewline
                end{tabular}
                parend{flushleft}
                end{document}


                enter image description here






                share|improve this answer


























                  3












                  3








                  3







                  In the following code, I have added a cellcolor{white} 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}
                  usepackage{geometry}
                  geometry{verbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm}
                  usepackage{array}
                  usepackage{multirow}
                  usepackage{graphicx}

                  usepackage[table]{xcolor}


                  begin{document}
                  noindent
                  begin{flushleft}
                  rowcolors{3}{gray!20}{}%
                  begin{tabular}{ccccccc}
                  & & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
                  & & Header & Header & Header & Header & Headertabularnewline
                  cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                  multirow{-8}{*}{rotatebox{90}{Lorem ipsum}} & Content & ### & ### & ### & ### & ###tabularnewline
                  end{tabular}
                  parend{flushleft}
                  end{document}


                  enter image description here






                  share|improve this answer













                  In the following code, I have added a cellcolor{white} 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}
                  usepackage{geometry}
                  geometry{verbose,tmargin=0.25in,bmargin=0.25cm,lmargin=0.25cm,rmargin=0.25cm}
                  usepackage{array}
                  usepackage{multirow}
                  usepackage{graphicx}

                  usepackage[table]{xcolor}


                  begin{document}
                  noindent
                  begin{flushleft}
                  rowcolors{3}{gray!20}{}%
                  begin{tabular}{ccccccc}
                  & & multicolumn{5}{c}{Lorem ipsum dolor sit amet}tabularnewline
                  & & Header & Header & Header & Header & Headertabularnewline
                  cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                  & Content & ### & ### & ### & ### & ###tabularnewline
                  cellcolor{white} & Content & ### & ### & ### & ### & ###tabularnewline
                  multirow{-8}{*}{rotatebox{90}{Lorem ipsum}} & Content & ### & ### & ### & ### & ###tabularnewline
                  end{tabular}
                  parend{flushleft}
                  end{document}


                  enter image description here







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 6 hours ago









                  leandriisleandriis

                  9,7751530




                  9,7751530






























                      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

                      CARDNET

                      Boot-repair Failure: Unable to locate package grub-common:i386

                      濃尾地震