Color alternating groups (5) of rows in Table gray and white
I am trying to color every other grouping of 5 rows light gray, starting with the first 5 rows.
I have attempted to use the solution posted here Does something like rowcolors exist for groups of rows?
. However, there are several problems. My original (uncolored; see below) looks great. However, when I try to color the rows (see below) the pdf looks terrible with missing rows and the printed version starts 1 row to late ( i.e., the first 5 line should be gray). So in summary I would like the pdf to look as nice as the printed and have the coloring start 1 row sooner. I have attached compilable code to reproduce the document and images of the output on my end below.
Code
documentclass[letterpaper,11pt,oneside, notitlepage]{article}% calls document type
usepackage[usenames, dvipsnames, table, xcdraw]{xcolor}
usepackage{booktabs}% table utilities
usepackage{siunitx}% number and symbol alignment
usepackage{graphicx}
newcommandVRule[1][arrayrulewidth]{vrule width #1}
makeatletter
newcommand{groupedRowColors}[5][0]{% [#1: offset], #2: group size, #3: start line, #4: color 1, #5: color 2
% copied from xcolor.sty
globalrownum=z@
global@rowcolorstrue
@ifxempty{#4}%
{def@oddrowcolor{@norowcolor}}%
{def@oddrowcolor{gdefCT@row@color{CT@color{#4}}}}%
@ifxempty{#5}%
{def@evenrowcolor{@norowcolor}}%
{def@evenrowcolor{gdefCT@row@color{CT@color{#5}}}}%
% simplified (no check for if@rowcmd)
def@rowcolors{%
if@rowcolors
noalign{%
relax
ifnumrownum<#3
@norowcolor
% I have changed this check:
else ifodd numexpr (rownum-#1)/#2relax
@oddrowcolor
else
@evenrowcolor
fi fi
}%
fi
}%
CT@everycr{@rowc@lorstheeverycr}%
ignorespaces
}
makeatother
usepackage[letterpaper,bindingoffset=-.35in,%
left=1in,right=1in,top=.25in,bottom=.25in,%
footskip=.15in]{geometry}
begin{document}
thispagestyle{empty}
belowrulesep=0pt
aboverulesep=0pt
heavyrulewidth=2pt
begin{table}[t!]
begin{tabular}[l]{|p{.6in}|p{2.46in}|p{1in}|p{2.46in}| }
toprule
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Date}rule{.8in}{.1pt} hspace{.69in} textbf{Crew}rule{2.4in}{.1pt}hspace{1.2in} textbf{Page}rule{.2in}{.1pt} textbf{of}rule{.25in}{.1pt}} \
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Species}rule{.95in}{.1pt}hfill textbf{Location}rule{.95in}{.1pt}hfill textbf{Project}rule{.95in}{.1pt}}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
bottomrule
end{tabular}
end{table}
vspace*{-2.75baselineskip}
begin{centering}
begin{table}[bh!]
groupedRowColors{5}{1}{gray!20}{white} %<------line that is supposed to color by group
begin{tabular}{!{VRule[2pt]}p{.6in}|p{2.46in}|p{1in}|p{2.46in}!{VRule[2pt]}}
toprule
textbf{Count} & textbf{PIT Tag #} & textbf{Length(TL)} & textbf{Comments}\
bottomrule
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
toprule
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Scanned}rule{.6in}{.1pt}hfill textbf{Entered}rule{.6in}{.1pt}hfill textbf{Checked}rule{.6in}{.1pt}hfill textbf{Double Checked}rule{.6in}{.1pt}}\
bottomrule
end{tabular}
end{table}
end{centering}
vspace*{-1baselineskip}
smalltextit{textbf{*} Max 40 fish per sheet}hspace{.5in}textbf{Notes:}
end{document}
This is what the original pdf looks like without coloring:
This is what it looks like after I apply the solution:
Printed
tables booktabs rowcolor
add a comment |
I am trying to color every other grouping of 5 rows light gray, starting with the first 5 rows.
I have attempted to use the solution posted here Does something like rowcolors exist for groups of rows?
. However, there are several problems. My original (uncolored; see below) looks great. However, when I try to color the rows (see below) the pdf looks terrible with missing rows and the printed version starts 1 row to late ( i.e., the first 5 line should be gray). So in summary I would like the pdf to look as nice as the printed and have the coloring start 1 row sooner. I have attached compilable code to reproduce the document and images of the output on my end below.
Code
documentclass[letterpaper,11pt,oneside, notitlepage]{article}% calls document type
usepackage[usenames, dvipsnames, table, xcdraw]{xcolor}
usepackage{booktabs}% table utilities
usepackage{siunitx}% number and symbol alignment
usepackage{graphicx}
newcommandVRule[1][arrayrulewidth]{vrule width #1}
makeatletter
newcommand{groupedRowColors}[5][0]{% [#1: offset], #2: group size, #3: start line, #4: color 1, #5: color 2
% copied from xcolor.sty
globalrownum=z@
global@rowcolorstrue
@ifxempty{#4}%
{def@oddrowcolor{@norowcolor}}%
{def@oddrowcolor{gdefCT@row@color{CT@color{#4}}}}%
@ifxempty{#5}%
{def@evenrowcolor{@norowcolor}}%
{def@evenrowcolor{gdefCT@row@color{CT@color{#5}}}}%
% simplified (no check for if@rowcmd)
def@rowcolors{%
if@rowcolors
noalign{%
relax
ifnumrownum<#3
@norowcolor
% I have changed this check:
else ifodd numexpr (rownum-#1)/#2relax
@oddrowcolor
else
@evenrowcolor
fi fi
}%
fi
}%
CT@everycr{@rowc@lorstheeverycr}%
ignorespaces
}
makeatother
usepackage[letterpaper,bindingoffset=-.35in,%
left=1in,right=1in,top=.25in,bottom=.25in,%
footskip=.15in]{geometry}
begin{document}
thispagestyle{empty}
belowrulesep=0pt
aboverulesep=0pt
heavyrulewidth=2pt
begin{table}[t!]
begin{tabular}[l]{|p{.6in}|p{2.46in}|p{1in}|p{2.46in}| }
toprule
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Date}rule{.8in}{.1pt} hspace{.69in} textbf{Crew}rule{2.4in}{.1pt}hspace{1.2in} textbf{Page}rule{.2in}{.1pt} textbf{of}rule{.25in}{.1pt}} \
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Species}rule{.95in}{.1pt}hfill textbf{Location}rule{.95in}{.1pt}hfill textbf{Project}rule{.95in}{.1pt}}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
bottomrule
end{tabular}
end{table}
vspace*{-2.75baselineskip}
begin{centering}
begin{table}[bh!]
groupedRowColors{5}{1}{gray!20}{white} %<------line that is supposed to color by group
begin{tabular}{!{VRule[2pt]}p{.6in}|p{2.46in}|p{1in}|p{2.46in}!{VRule[2pt]}}
toprule
textbf{Count} & textbf{PIT Tag #} & textbf{Length(TL)} & textbf{Comments}\
bottomrule
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
toprule
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Scanned}rule{.6in}{.1pt}hfill textbf{Entered}rule{.6in}{.1pt}hfill textbf{Checked}rule{.6in}{.1pt}hfill textbf{Double Checked}rule{.6in}{.1pt}}\
bottomrule
end{tabular}
end{table}
end{centering}
vspace*{-1baselineskip}
smalltextit{textbf{*} Max 40 fish per sheet}hspace{.5in}textbf{Notes:}
end{document}
This is what the original pdf looks like without coloring:
This is what it looks like after I apply the solution:
Printed
tables booktabs rowcolor
1
Regarding the missing lines in the pdf: This is most likely a viewer issue. If I compile your code and open the pdf I recieve the following result: i.stack.imgur.com/wRayl.png
– leandriis
7 hours ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
7 hours ago
1
The lines will get visible if you zoom in. More information can be found here: Adobe Reader and xcolor within a table breaks the line render
– leandriis
7 hours ago
add a comment |
I am trying to color every other grouping of 5 rows light gray, starting with the first 5 rows.
I have attempted to use the solution posted here Does something like rowcolors exist for groups of rows?
. However, there are several problems. My original (uncolored; see below) looks great. However, when I try to color the rows (see below) the pdf looks terrible with missing rows and the printed version starts 1 row to late ( i.e., the first 5 line should be gray). So in summary I would like the pdf to look as nice as the printed and have the coloring start 1 row sooner. I have attached compilable code to reproduce the document and images of the output on my end below.
Code
documentclass[letterpaper,11pt,oneside, notitlepage]{article}% calls document type
usepackage[usenames, dvipsnames, table, xcdraw]{xcolor}
usepackage{booktabs}% table utilities
usepackage{siunitx}% number and symbol alignment
usepackage{graphicx}
newcommandVRule[1][arrayrulewidth]{vrule width #1}
makeatletter
newcommand{groupedRowColors}[5][0]{% [#1: offset], #2: group size, #3: start line, #4: color 1, #5: color 2
% copied from xcolor.sty
globalrownum=z@
global@rowcolorstrue
@ifxempty{#4}%
{def@oddrowcolor{@norowcolor}}%
{def@oddrowcolor{gdefCT@row@color{CT@color{#4}}}}%
@ifxempty{#5}%
{def@evenrowcolor{@norowcolor}}%
{def@evenrowcolor{gdefCT@row@color{CT@color{#5}}}}%
% simplified (no check for if@rowcmd)
def@rowcolors{%
if@rowcolors
noalign{%
relax
ifnumrownum<#3
@norowcolor
% I have changed this check:
else ifodd numexpr (rownum-#1)/#2relax
@oddrowcolor
else
@evenrowcolor
fi fi
}%
fi
}%
CT@everycr{@rowc@lorstheeverycr}%
ignorespaces
}
makeatother
usepackage[letterpaper,bindingoffset=-.35in,%
left=1in,right=1in,top=.25in,bottom=.25in,%
footskip=.15in]{geometry}
begin{document}
thispagestyle{empty}
belowrulesep=0pt
aboverulesep=0pt
heavyrulewidth=2pt
begin{table}[t!]
begin{tabular}[l]{|p{.6in}|p{2.46in}|p{1in}|p{2.46in}| }
toprule
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Date}rule{.8in}{.1pt} hspace{.69in} textbf{Crew}rule{2.4in}{.1pt}hspace{1.2in} textbf{Page}rule{.2in}{.1pt} textbf{of}rule{.25in}{.1pt}} \
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Species}rule{.95in}{.1pt}hfill textbf{Location}rule{.95in}{.1pt}hfill textbf{Project}rule{.95in}{.1pt}}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
bottomrule
end{tabular}
end{table}
vspace*{-2.75baselineskip}
begin{centering}
begin{table}[bh!]
groupedRowColors{5}{1}{gray!20}{white} %<------line that is supposed to color by group
begin{tabular}{!{VRule[2pt]}p{.6in}|p{2.46in}|p{1in}|p{2.46in}!{VRule[2pt]}}
toprule
textbf{Count} & textbf{PIT Tag #} & textbf{Length(TL)} & textbf{Comments}\
bottomrule
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
toprule
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Scanned}rule{.6in}{.1pt}hfill textbf{Entered}rule{.6in}{.1pt}hfill textbf{Checked}rule{.6in}{.1pt}hfill textbf{Double Checked}rule{.6in}{.1pt}}\
bottomrule
end{tabular}
end{table}
end{centering}
vspace*{-1baselineskip}
smalltextit{textbf{*} Max 40 fish per sheet}hspace{.5in}textbf{Notes:}
end{document}
This is what the original pdf looks like without coloring:
This is what it looks like after I apply the solution:
Printed
tables booktabs rowcolor
I am trying to color every other grouping of 5 rows light gray, starting with the first 5 rows.
I have attempted to use the solution posted here Does something like rowcolors exist for groups of rows?
. However, there are several problems. My original (uncolored; see below) looks great. However, when I try to color the rows (see below) the pdf looks terrible with missing rows and the printed version starts 1 row to late ( i.e., the first 5 line should be gray). So in summary I would like the pdf to look as nice as the printed and have the coloring start 1 row sooner. I have attached compilable code to reproduce the document and images of the output on my end below.
Code
documentclass[letterpaper,11pt,oneside, notitlepage]{article}% calls document type
usepackage[usenames, dvipsnames, table, xcdraw]{xcolor}
usepackage{booktabs}% table utilities
usepackage{siunitx}% number and symbol alignment
usepackage{graphicx}
newcommandVRule[1][arrayrulewidth]{vrule width #1}
makeatletter
newcommand{groupedRowColors}[5][0]{% [#1: offset], #2: group size, #3: start line, #4: color 1, #5: color 2
% copied from xcolor.sty
globalrownum=z@
global@rowcolorstrue
@ifxempty{#4}%
{def@oddrowcolor{@norowcolor}}%
{def@oddrowcolor{gdefCT@row@color{CT@color{#4}}}}%
@ifxempty{#5}%
{def@evenrowcolor{@norowcolor}}%
{def@evenrowcolor{gdefCT@row@color{CT@color{#5}}}}%
% simplified (no check for if@rowcmd)
def@rowcolors{%
if@rowcolors
noalign{%
relax
ifnumrownum<#3
@norowcolor
% I have changed this check:
else ifodd numexpr (rownum-#1)/#2relax
@oddrowcolor
else
@evenrowcolor
fi fi
}%
fi
}%
CT@everycr{@rowc@lorstheeverycr}%
ignorespaces
}
makeatother
usepackage[letterpaper,bindingoffset=-.35in,%
left=1in,right=1in,top=.25in,bottom=.25in,%
footskip=.15in]{geometry}
begin{document}
thispagestyle{empty}
belowrulesep=0pt
aboverulesep=0pt
heavyrulewidth=2pt
begin{table}[t!]
begin{tabular}[l]{|p{.6in}|p{2.46in}|p{1in}|p{2.46in}| }
toprule
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Date}rule{.8in}{.1pt} hspace{.69in} textbf{Crew}rule{2.4in}{.1pt}hspace{1.2in} textbf{Page}rule{.2in}{.1pt} textbf{of}rule{.25in}{.1pt}} \
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Species}rule{.95in}{.1pt}hfill textbf{Location}rule{.95in}{.1pt}hfill textbf{Project}rule{.95in}{.1pt}}\
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{}\
bottomrule
end{tabular}
end{table}
vspace*{-2.75baselineskip}
begin{centering}
begin{table}[bh!]
groupedRowColors{5}{1}{gray!20}{white} %<------line that is supposed to color by group
begin{tabular}{!{VRule[2pt]}p{.6in}|p{2.46in}|p{1in}|p{2.46in}!{VRule[2pt]}}
toprule
textbf{Count} & textbf{PIT Tag #} & textbf{Length(TL)} & textbf{Comments}\
bottomrule
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
hline
& & & \
toprule
multicolumn{4}{!{VRule[2pt]}l!{VRule[2pt]}}{textbf{Scanned}rule{.6in}{.1pt}hfill textbf{Entered}rule{.6in}{.1pt}hfill textbf{Checked}rule{.6in}{.1pt}hfill textbf{Double Checked}rule{.6in}{.1pt}}\
bottomrule
end{tabular}
end{table}
end{centering}
vspace*{-1baselineskip}
smalltextit{textbf{*} Max 40 fish per sheet}hspace{.5in}textbf{Notes:}
end{document}
This is what the original pdf looks like without coloring:
This is what it looks like after I apply the solution:
Printed
tables booktabs rowcolor
tables booktabs rowcolor
asked 7 hours ago
OliverFishCodeOliverFishCode
566
566
1
Regarding the missing lines in the pdf: This is most likely a viewer issue. If I compile your code and open the pdf I recieve the following result: i.stack.imgur.com/wRayl.png
– leandriis
7 hours ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
7 hours ago
1
The lines will get visible if you zoom in. More information can be found here: Adobe Reader and xcolor within a table breaks the line render
– leandriis
7 hours ago
add a comment |
1
Regarding the missing lines in the pdf: This is most likely a viewer issue. If I compile your code and open the pdf I recieve the following result: i.stack.imgur.com/wRayl.png
– leandriis
7 hours ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
7 hours ago
1
The lines will get visible if you zoom in. More information can be found here: Adobe Reader and xcolor within a table breaks the line render
– leandriis
7 hours ago
1
1
Regarding the missing lines in the pdf: This is most likely a viewer issue. If I compile your code and open the pdf I recieve the following result: i.stack.imgur.com/wRayl.png
– leandriis
7 hours ago
Regarding the missing lines in the pdf: This is most likely a viewer issue. If I compile your code and open the pdf I recieve the following result: i.stack.imgur.com/wRayl.png
– leandriis
7 hours ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
7 hours ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
7 hours ago
1
1
The lines will get visible if you zoom in. More information can be found here: Adobe Reader and xcolor within a table breaks the line render
– leandriis
7 hours ago
The lines will get visible if you zoom in. More information can be found here: Adobe Reader and xcolor within a table breaks the line render
– leandriis
7 hours ago
add a comment |
0
active
oldest
votes
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483843%2fcolor-alternating-groups-5-of-rows-in-table-gray-and-white%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483843%2fcolor-alternating-groups-5-of-rows-in-table-gray-and-white%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
1
Regarding the missing lines in the pdf: This is most likely a viewer issue. If I compile your code and open the pdf I recieve the following result: i.stack.imgur.com/wRayl.png
– leandriis
7 hours ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
7 hours ago
1
The lines will get visible if you zoom in. More information can be found here: Adobe Reader and xcolor within a table breaks the line render
– leandriis
7 hours ago