Color alternating groups (5) of rows in Table gray and whiteAdobe Reader and xcolor within a table breaks the line renderDoes something like rowcolors exist for groups of rows?How to get multiple multirows in a table?Table rows alternating between column and notes-rowHow to create groups of table rows with alternating colors?Latex: rowcolor in tabular not respecting table widthHow do I prevent cellcolor from over effect of hlinetabu package - gaps in vertical linesBest way to add space between columns with alternating colored rowsColor rows in tableDoes something like rowcolors exist for groups of rows?Color table rows and columns
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
Is domain driven design an anti-SQL pattern?
Could a US political party gain complete control over the government by removing checks & balances?
Why do we use polarized capacitors?
Where to refill my bottle in India?
Finding files for which a command fails
Check if two datetimes are between two others
Does it makes sense to buy a cycle to learn riding?
What is GPS' 19 year rollover and does it present a cybersecurity issue?
What is the meaning of "of trouble" in the following sentence?
Crop image to path created in TikZ?
Copycat chess is back
New order #4: World
Why was the "bread communication" in the arena of Catching Fire left out in the movie?
What are the advantages and disadvantages of running one shots compared to campaigns?
Some basic questions on halt and move in Turing machines
Is this food a bread or a loaf?
Need help identifying/translating a plaque in Tangier, Morocco
Are objects structures and/or vice versa?
Does the average primeness of natural numbers tend to zero?
What is the command to reset a PC without deleting any files
What do the Banks children have against barley water?
Does a dangling wire really electrocute me if I'm standing in water?
Why is the design of haulage companies so “special”?
Color alternating groups (5) of rows in Table gray and white
Adobe Reader and xcolor within a table breaks the line renderDoes something like rowcolors exist for groups of rows?How to get multiple multirows in a table?Table rows alternating between column and notes-rowHow to create groups of table rows with alternating colors?Latex: rowcolor in tabular not respecting table widthHow do I prevent cellcolor from over effect of hlinetabu package - gaps in vertical linesBest way to add space between columns with alternating colored rowsColor rows in tableDoes something like rowcolors exist for groups of rows?Color table rows and columns
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
usepackagebooktabs% table utilities
usepackagesiunitx% number and symbol alignment
usepackagegraphicx
newcommandVRule[1][arrayrulewidth]vrule width #1
makeatletter
newcommandgroupedRowColors[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@oddrowcolorgdefCT@row@colorCT@color#4%
@ifxempty#5%
def@evenrowcolor@norowcolor%
def@evenrowcolorgdefCT@row@colorCT@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
begindocument
thispagestyleempty
belowrulesep=0pt
aboverulesep=0pt
heavyrulewidth=2pt
begintable[t!]
begintabular[l]
toprule
multicolumn4!VRule[2pt]l!VRule[2pt]\
multicolumn4!VRule[2pt]l!VRule[2pt]textbfDaterule.8in.1pt hspace.69in textbfCrewrule2.4in.1pthspace1.2in textbfPagerule.2in.1pt textbfofrule.25in.1pt \
multicolumn4!VRule[2pt]l!VRule[2pt]\
multicolumn4!VRule[2pt]l!VRule[2pt]textbfSpeciesrule.95in.1pthfill textbfLocationrule.95in.1pthfill textbfProjectrule.95in.1pt\
multicolumn4!VRule[2pt]l!VRule[2pt]\
bottomrule
endtabular
endtable
vspace*-2.75baselineskip
begincentering
begintable[bh!]
groupedRowColors51gray!20white %<------line that is supposed to color by group
begintabularp2.46in!VRule[2pt]
toprule
textbfCount & textbfPIT Tag # & textbfLength(TL) & textbfComments\
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
multicolumn4!VRule[2pt]l!VRule[2pt]textbfScannedrule.6in.1pthfill textbfEnteredrule.6in.1pthfill textbfCheckedrule.6in.1pthfill textbfDouble Checkedrule.6in.1pt\
bottomrule
endtabular
endtable
endcentering
vspace*-1baselineskip
smalltextittextbf* Max 40 fish per sheethspace.5intextbfNotes:
enddocument
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
usepackagebooktabs% table utilities
usepackagesiunitx% number and symbol alignment
usepackagegraphicx
newcommandVRule[1][arrayrulewidth]vrule width #1
makeatletter
newcommandgroupedRowColors[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@oddrowcolorgdefCT@row@colorCT@color#4%
@ifxempty#5%
def@evenrowcolor@norowcolor%
def@evenrowcolorgdefCT@row@colorCT@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
begindocument
thispagestyleempty
belowrulesep=0pt
aboverulesep=0pt
heavyrulewidth=2pt
begintable[t!]
begintabular[l]
toprule
multicolumn4!VRule[2pt]l!VRule[2pt]\
multicolumn4!VRule[2pt]l!VRule[2pt]textbfDaterule.8in.1pt hspace.69in textbfCrewrule2.4in.1pthspace1.2in textbfPagerule.2in.1pt textbfofrule.25in.1pt \
multicolumn4!VRule[2pt]l!VRule[2pt]\
multicolumn4!VRule[2pt]l!VRule[2pt]textbfSpeciesrule.95in.1pthfill textbfLocationrule.95in.1pthfill textbfProjectrule.95in.1pt\
multicolumn4!VRule[2pt]l!VRule[2pt]\
bottomrule
endtabular
endtable
vspace*-2.75baselineskip
begincentering
begintable[bh!]
groupedRowColors51gray!20white %<------line that is supposed to color by group
begintabularp2.46in!VRule[2pt]
toprule
textbfCount & textbfPIT Tag # & textbfLength(TL) & textbfComments\
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
multicolumn4!VRule[2pt]l!VRule[2pt]textbfScannedrule.6in.1pthfill textbfEnteredrule.6in.1pthfill textbfCheckedrule.6in.1pthfill textbfDouble Checkedrule.6in.1pt\
bottomrule
endtabular
endtable
endcentering
vspace*-1baselineskip
smalltextittextbf* Max 40 fish per sheethspace.5intextbfNotes:
enddocument
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
1 hour ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
1 hour 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
1 hour 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
usepackagebooktabs% table utilities
usepackagesiunitx% number and symbol alignment
usepackagegraphicx
newcommandVRule[1][arrayrulewidth]vrule width #1
makeatletter
newcommandgroupedRowColors[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@oddrowcolorgdefCT@row@colorCT@color#4%
@ifxempty#5%
def@evenrowcolor@norowcolor%
def@evenrowcolorgdefCT@row@colorCT@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
begindocument
thispagestyleempty
belowrulesep=0pt
aboverulesep=0pt
heavyrulewidth=2pt
begintable[t!]
begintabular[l]
toprule
multicolumn4!VRule[2pt]l!VRule[2pt]\
multicolumn4!VRule[2pt]l!VRule[2pt]textbfDaterule.8in.1pt hspace.69in textbfCrewrule2.4in.1pthspace1.2in textbfPagerule.2in.1pt textbfofrule.25in.1pt \
multicolumn4!VRule[2pt]l!VRule[2pt]\
multicolumn4!VRule[2pt]l!VRule[2pt]textbfSpeciesrule.95in.1pthfill textbfLocationrule.95in.1pthfill textbfProjectrule.95in.1pt\
multicolumn4!VRule[2pt]l!VRule[2pt]\
bottomrule
endtabular
endtable
vspace*-2.75baselineskip
begincentering
begintable[bh!]
groupedRowColors51gray!20white %<------line that is supposed to color by group
begintabularp2.46in!VRule[2pt]
toprule
textbfCount & textbfPIT Tag # & textbfLength(TL) & textbfComments\
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
multicolumn4!VRule[2pt]l!VRule[2pt]textbfScannedrule.6in.1pthfill textbfEnteredrule.6in.1pthfill textbfCheckedrule.6in.1pthfill textbfDouble Checkedrule.6in.1pt\
bottomrule
endtabular
endtable
endcentering
vspace*-1baselineskip
smalltextittextbf* Max 40 fish per sheethspace.5intextbfNotes:
enddocument
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
usepackagebooktabs% table utilities
usepackagesiunitx% number and symbol alignment
usepackagegraphicx
newcommandVRule[1][arrayrulewidth]vrule width #1
makeatletter
newcommandgroupedRowColors[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@oddrowcolorgdefCT@row@colorCT@color#4%
@ifxempty#5%
def@evenrowcolor@norowcolor%
def@evenrowcolorgdefCT@row@colorCT@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
begindocument
thispagestyleempty
belowrulesep=0pt
aboverulesep=0pt
heavyrulewidth=2pt
begintable[t!]
begintabular[l]
toprule
multicolumn4!VRule[2pt]l!VRule[2pt]\
multicolumn4!VRule[2pt]l!VRule[2pt]textbfDaterule.8in.1pt hspace.69in textbfCrewrule2.4in.1pthspace1.2in textbfPagerule.2in.1pt textbfofrule.25in.1pt \
multicolumn4!VRule[2pt]l!VRule[2pt]\
multicolumn4!VRule[2pt]l!VRule[2pt]textbfSpeciesrule.95in.1pthfill textbfLocationrule.95in.1pthfill textbfProjectrule.95in.1pt\
multicolumn4!VRule[2pt]l!VRule[2pt]\
bottomrule
endtabular
endtable
vspace*-2.75baselineskip
begincentering
begintable[bh!]
groupedRowColors51gray!20white %<------line that is supposed to color by group
begintabularp2.46in!VRule[2pt]
toprule
textbfCount & textbfPIT Tag # & textbfLength(TL) & textbfComments\
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
multicolumn4!VRule[2pt]l!VRule[2pt]textbfScannedrule.6in.1pthfill textbfEnteredrule.6in.1pthfill textbfCheckedrule.6in.1pthfill textbfDouble Checkedrule.6in.1pt\
bottomrule
endtabular
endtable
endcentering
vspace*-1baselineskip
smalltextittextbf* Max 40 fish per sheethspace.5intextbfNotes:
enddocument
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 1 hour 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
1 hour ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
1 hour 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
1 hour 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
1 hour ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
1 hour 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
1 hour 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
1 hour 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
1 hour ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
1 hour ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
1 hour 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
1 hour 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
1 hour 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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
1 hour ago
Okay, wierd I'm using Adobe acrobat reader DC latest version. What pdf reader are you using
– OliverFishCode
1 hour 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
1 hour ago