Longtable with repeating headers and horizontal rules The 2019 Stack Overflow Developer Survey...

Is there a way to generate uniformly distributed points on a sphere from a fixed amount of random real numbers per point?

Did the new image of black hole confirm the general theory of relativity?

Word for: a synonym with a positive connotation?

How do I design a circuit to convert a 100 mV and 50 Hz sine wave to a square wave?

How did passengers keep warm on sail ships?

Why not take a picture of a closer black hole?

how can a perfect fourth interval be considered either consonant or dissonant?

What do I do when my TA workload is more than expected?

Accepted by European university, rejected by all American ones I applied to? Possible reasons?

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

A phrase ”follow into" in a context

Is this wall load bearing? Blueprints and photos attached

Why did Peik Lin say, "I'm not an animal"?

Why can't wing-mounted spoilers be used to steepen approaches?

How to make Illustrator type tool selection automatically adapt with text length

How do you keep chess fun when your opponent constantly beats you?

Huge performance difference of the command find with and without using %M option to show permissions

Sub-subscripts in strings cause different spacings than subscripts

Intergalactic human space ship encounters another ship, character gets shunted off beyond known universe, reality starts collapsing

Single author papers against my advisor's will?

Do ℕ, mathbb{N}, BbbN, symbb{N} effectively differ, and is there a "canonical" specification of the naturals?

Why can't devices on different VLANs, but on the same subnet, communicate?

What force causes entropy to increase?

What is the padding with red substance inside of steak packaging?



Longtable with repeating headers and horizontal rules



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Do we need more moderators?Using multicolumn with booktabspgfplotstable; longtable with caption and repeating headerlongtable in beamer environment (lacks headers/footers)Textwidth longtable with centered headerswhy in the second row, the second column is taller than the otherProblem with longtable headersHow to get a “thousands” separator in `spreadtab` (wrapping `longtable`)?Vertical alignment in longtable headersLongtable and tabular caption vertical and horizontal alignmentProblem with longtable and \Superfluous headers and footers when using longtable in revtex4












0















I am trying to make a longtable, that has repeating headers. Also, each row has rules. In the second page, however, the rule repeats twice.It looks unpolished. How do I fix this?



MWE



documentclass[11pt, a4paper, oneside]{memoir}
usepackage{longtable}
usepackage{booktabs}
usepackage{array}
usepackage{arydshln}
setlengthdashlinedash{0.2pt}
setlengthdashlinegap{1.5pt}
setlengtharrayrulewidth{0.3pt}

begin{document}
begin{longtable}{l}
toprule
Title \
midrule
endfirsthead
toprule
Title \
midrule
endhead
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ bottomrule

end{longtable}
end{document}


enter image description here



enter image description here



The Economist too uses rules



Economist










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • This is a known feature of longtable and has nothing to do with array, booktabs or memoir, so I deleted the tags

    – user31729
    Aug 20 '17 at 8:27













  • You should also ask yourself what exactly you're trying to achieve with all those hddashline directives. The longtable will look a lot cleaner (or, to use your phrase, more polished) if all, or at least most, of these directives are simply omitted. Your readers will thank you.

    – Mico
    Aug 20 '17 at 8:33













  • Mico, The confusion comes from the MWE. My actual data is several columns wide. I have added a screen-shot. Do you still suggest that omitting rules will improve readability?

    – AK16
    Aug 20 '17 at 8:38













  • see answer for long table in tex.stackexchange.com/questions/387308/…

    – Zarko
    Aug 20 '17 at 8:46











  • @AK16 - Are you familiar with the Latin proverb, "Quod licet Iovis, non licet bovis"? Speaking for myself here, I doubt the table from The Economist magazine would be less legible had all dashed lines been omitted. :-)

    – Mico
    Aug 20 '17 at 8:55
















0















I am trying to make a longtable, that has repeating headers. Also, each row has rules. In the second page, however, the rule repeats twice.It looks unpolished. How do I fix this?



MWE



documentclass[11pt, a4paper, oneside]{memoir}
usepackage{longtable}
usepackage{booktabs}
usepackage{array}
usepackage{arydshln}
setlengthdashlinedash{0.2pt}
setlengthdashlinegap{1.5pt}
setlengtharrayrulewidth{0.3pt}

begin{document}
begin{longtable}{l}
toprule
Title \
midrule
endfirsthead
toprule
Title \
midrule
endhead
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ bottomrule

end{longtable}
end{document}


enter image description here



enter image description here



The Economist too uses rules



Economist










share|improve this question
















bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
















  • This is a known feature of longtable and has nothing to do with array, booktabs or memoir, so I deleted the tags

    – user31729
    Aug 20 '17 at 8:27













  • You should also ask yourself what exactly you're trying to achieve with all those hddashline directives. The longtable will look a lot cleaner (or, to use your phrase, more polished) if all, or at least most, of these directives are simply omitted. Your readers will thank you.

    – Mico
    Aug 20 '17 at 8:33













  • Mico, The confusion comes from the MWE. My actual data is several columns wide. I have added a screen-shot. Do you still suggest that omitting rules will improve readability?

    – AK16
    Aug 20 '17 at 8:38













  • see answer for long table in tex.stackexchange.com/questions/387308/…

    – Zarko
    Aug 20 '17 at 8:46











  • @AK16 - Are you familiar with the Latin proverb, "Quod licet Iovis, non licet bovis"? Speaking for myself here, I doubt the table from The Economist magazine would be less legible had all dashed lines been omitted. :-)

    – Mico
    Aug 20 '17 at 8:55














0












0








0


0






I am trying to make a longtable, that has repeating headers. Also, each row has rules. In the second page, however, the rule repeats twice.It looks unpolished. How do I fix this?



MWE



documentclass[11pt, a4paper, oneside]{memoir}
usepackage{longtable}
usepackage{booktabs}
usepackage{array}
usepackage{arydshln}
setlengthdashlinedash{0.2pt}
setlengthdashlinegap{1.5pt}
setlengtharrayrulewidth{0.3pt}

begin{document}
begin{longtable}{l}
toprule
Title \
midrule
endfirsthead
toprule
Title \
midrule
endhead
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ bottomrule

end{longtable}
end{document}


enter image description here



enter image description here



The Economist too uses rules



Economist










share|improve this question
















I am trying to make a longtable, that has repeating headers. Also, each row has rules. In the second page, however, the rule repeats twice.It looks unpolished. How do I fix this?



MWE



documentclass[11pt, a4paper, oneside]{memoir}
usepackage{longtable}
usepackage{booktabs}
usepackage{array}
usepackage{arydshln}
setlengthdashlinedash{0.2pt}
setlengthdashlinegap{1.5pt}
setlengtharrayrulewidth{0.3pt}

begin{document}
begin{longtable}{l}
toprule
Title \
midrule
endfirsthead
toprule
Title \
midrule
endhead
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ bottomrule

end{longtable}
end{document}


enter image description here



enter image description here



The Economist too uses rules



Economist







tables longtable






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Aug 20 '17 at 8:47







AK16

















asked Aug 20 '17 at 8:23









AK16AK16

11529




11529





bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 6 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • This is a known feature of longtable and has nothing to do with array, booktabs or memoir, so I deleted the tags

    – user31729
    Aug 20 '17 at 8:27













  • You should also ask yourself what exactly you're trying to achieve with all those hddashline directives. The longtable will look a lot cleaner (or, to use your phrase, more polished) if all, or at least most, of these directives are simply omitted. Your readers will thank you.

    – Mico
    Aug 20 '17 at 8:33













  • Mico, The confusion comes from the MWE. My actual data is several columns wide. I have added a screen-shot. Do you still suggest that omitting rules will improve readability?

    – AK16
    Aug 20 '17 at 8:38













  • see answer for long table in tex.stackexchange.com/questions/387308/…

    – Zarko
    Aug 20 '17 at 8:46











  • @AK16 - Are you familiar with the Latin proverb, "Quod licet Iovis, non licet bovis"? Speaking for myself here, I doubt the table from The Economist magazine would be less legible had all dashed lines been omitted. :-)

    – Mico
    Aug 20 '17 at 8:55



















  • This is a known feature of longtable and has nothing to do with array, booktabs or memoir, so I deleted the tags

    – user31729
    Aug 20 '17 at 8:27













  • You should also ask yourself what exactly you're trying to achieve with all those hddashline directives. The longtable will look a lot cleaner (or, to use your phrase, more polished) if all, or at least most, of these directives are simply omitted. Your readers will thank you.

    – Mico
    Aug 20 '17 at 8:33













  • Mico, The confusion comes from the MWE. My actual data is several columns wide. I have added a screen-shot. Do you still suggest that omitting rules will improve readability?

    – AK16
    Aug 20 '17 at 8:38













  • see answer for long table in tex.stackexchange.com/questions/387308/…

    – Zarko
    Aug 20 '17 at 8:46











  • @AK16 - Are you familiar with the Latin proverb, "Quod licet Iovis, non licet bovis"? Speaking for myself here, I doubt the table from The Economist magazine would be less legible had all dashed lines been omitted. :-)

    – Mico
    Aug 20 '17 at 8:55

















This is a known feature of longtable and has nothing to do with array, booktabs or memoir, so I deleted the tags

– user31729
Aug 20 '17 at 8:27







This is a known feature of longtable and has nothing to do with array, booktabs or memoir, so I deleted the tags

– user31729
Aug 20 '17 at 8:27















You should also ask yourself what exactly you're trying to achieve with all those hddashline directives. The longtable will look a lot cleaner (or, to use your phrase, more polished) if all, or at least most, of these directives are simply omitted. Your readers will thank you.

– Mico
Aug 20 '17 at 8:33







You should also ask yourself what exactly you're trying to achieve with all those hddashline directives. The longtable will look a lot cleaner (or, to use your phrase, more polished) if all, or at least most, of these directives are simply omitted. Your readers will thank you.

– Mico
Aug 20 '17 at 8:33















Mico, The confusion comes from the MWE. My actual data is several columns wide. I have added a screen-shot. Do you still suggest that omitting rules will improve readability?

– AK16
Aug 20 '17 at 8:38







Mico, The confusion comes from the MWE. My actual data is several columns wide. I have added a screen-shot. Do you still suggest that omitting rules will improve readability?

– AK16
Aug 20 '17 at 8:38















see answer for long table in tex.stackexchange.com/questions/387308/…

– Zarko
Aug 20 '17 at 8:46





see answer for long table in tex.stackexchange.com/questions/387308/…

– Zarko
Aug 20 '17 at 8:46













@AK16 - Are you familiar with the Latin proverb, "Quod licet Iovis, non licet bovis"? Speaking for myself here, I doubt the table from The Economist magazine would be less legible had all dashed lines been omitted. :-)

– Mico
Aug 20 '17 at 8:55





@AK16 - Are you familiar with the Latin proverb, "Quod licet Iovis, non licet bovis"? Speaking for myself here, I doubt the table from The Economist magazine would be less legible had all dashed lines been omitted. :-)

– Mico
Aug 20 '17 at 8:55










1 Answer
1






active

oldest

votes


















0














I kinda stumbled on a solution. It may have drawbacks but it works for me.



Adding these 2 lines removed the problem



setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}


The MWE now becomes



documentclass[11pt, a4paper, oneside]{memoir}
usepackage{longtable}
usepackage{booktabs}
usepackage{array}
usepackage{arydshln}
setlengthdashlinedash{0.2pt}
setlengthdashlinegap{1.5pt}
setlengtharrayrulewidth{0.3pt}
setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}

begin{document}
begin{longtable}{l}
toprule
Title \
midrule
endfirsthead
toprule
Title \
midrule
endhead
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ bottomrule

end{longtable}
end{document}


Page 2 output is shown:



Output






share|improve this answer



















  • 1





    at me it works fine without setlength{aboverulesep}{0pt} setlength{belowrulesep}{0pt}. probably you have installed outdated packages. upgrade it! and not forget, that longtable need to be compiled at least twice that it gain final format.

    – Zarko
    Jan 17 '18 at 15:26














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%2f387321%2flongtable-with-repeating-headers-and-horizontal-rules%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














I kinda stumbled on a solution. It may have drawbacks but it works for me.



Adding these 2 lines removed the problem



setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}


The MWE now becomes



documentclass[11pt, a4paper, oneside]{memoir}
usepackage{longtable}
usepackage{booktabs}
usepackage{array}
usepackage{arydshln}
setlengthdashlinedash{0.2pt}
setlengthdashlinegap{1.5pt}
setlengtharrayrulewidth{0.3pt}
setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}

begin{document}
begin{longtable}{l}
toprule
Title \
midrule
endfirsthead
toprule
Title \
midrule
endhead
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ bottomrule

end{longtable}
end{document}


Page 2 output is shown:



Output






share|improve this answer



















  • 1





    at me it works fine without setlength{aboverulesep}{0pt} setlength{belowrulesep}{0pt}. probably you have installed outdated packages. upgrade it! and not forget, that longtable need to be compiled at least twice that it gain final format.

    – Zarko
    Jan 17 '18 at 15:26


















0














I kinda stumbled on a solution. It may have drawbacks but it works for me.



Adding these 2 lines removed the problem



setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}


The MWE now becomes



documentclass[11pt, a4paper, oneside]{memoir}
usepackage{longtable}
usepackage{booktabs}
usepackage{array}
usepackage{arydshln}
setlengthdashlinedash{0.2pt}
setlengthdashlinegap{1.5pt}
setlengtharrayrulewidth{0.3pt}
setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}

begin{document}
begin{longtable}{l}
toprule
Title \
midrule
endfirsthead
toprule
Title \
midrule
endhead
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ bottomrule

end{longtable}
end{document}


Page 2 output is shown:



Output






share|improve this answer



















  • 1





    at me it works fine without setlength{aboverulesep}{0pt} setlength{belowrulesep}{0pt}. probably you have installed outdated packages. upgrade it! and not forget, that longtable need to be compiled at least twice that it gain final format.

    – Zarko
    Jan 17 '18 at 15:26
















0












0








0







I kinda stumbled on a solution. It may have drawbacks but it works for me.



Adding these 2 lines removed the problem



setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}


The MWE now becomes



documentclass[11pt, a4paper, oneside]{memoir}
usepackage{longtable}
usepackage{booktabs}
usepackage{array}
usepackage{arydshln}
setlengthdashlinedash{0.2pt}
setlengthdashlinegap{1.5pt}
setlengtharrayrulewidth{0.3pt}
setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}

begin{document}
begin{longtable}{l}
toprule
Title \
midrule
endfirsthead
toprule
Title \
midrule
endhead
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ bottomrule

end{longtable}
end{document}


Page 2 output is shown:



Output






share|improve this answer













I kinda stumbled on a solution. It may have drawbacks but it works for me.



Adding these 2 lines removed the problem



setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}


The MWE now becomes



documentclass[11pt, a4paper, oneside]{memoir}
usepackage{longtable}
usepackage{booktabs}
usepackage{array}
usepackage{arydshln}
setlengthdashlinedash{0.2pt}
setlengthdashlinegap{1.5pt}
setlengtharrayrulewidth{0.3pt}
setlength{aboverulesep}{0pt}
setlength{belowrulesep}{0pt}

begin{document}
begin{longtable}{l}
toprule
Title \
midrule
endfirsthead
toprule
Title \
midrule
endhead
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ hdashline
D \ hdashline
A \ hdashline
B \ hdashline
C \ bottomrule

end{longtable}
end{document}


Page 2 output is shown:



Output







share|improve this answer












share|improve this answer



share|improve this answer










answered Aug 20 '17 at 12:22









AK16AK16

11529




11529








  • 1





    at me it works fine without setlength{aboverulesep}{0pt} setlength{belowrulesep}{0pt}. probably you have installed outdated packages. upgrade it! and not forget, that longtable need to be compiled at least twice that it gain final format.

    – Zarko
    Jan 17 '18 at 15:26
















  • 1





    at me it works fine without setlength{aboverulesep}{0pt} setlength{belowrulesep}{0pt}. probably you have installed outdated packages. upgrade it! and not forget, that longtable need to be compiled at least twice that it gain final format.

    – Zarko
    Jan 17 '18 at 15:26










1




1





at me it works fine without setlength{aboverulesep}{0pt} setlength{belowrulesep}{0pt}. probably you have installed outdated packages. upgrade it! and not forget, that longtable need to be compiled at least twice that it gain final format.

– Zarko
Jan 17 '18 at 15:26







at me it works fine without setlength{aboverulesep}{0pt} setlength{belowrulesep}{0pt}. probably you have installed outdated packages. upgrade it! and not forget, that longtable need to be compiled at least twice that it gain final format.

– Zarko
Jan 17 '18 at 15:26




















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%2f387321%2flongtable-with-repeating-headers-and-horizontal-rules%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

Why does my Macbook overheat and use so much CPU and energy when on YouTube?Why do so many insist on using...

How to prevent page numbers from appearing on glossaries?How to remove a dot and a page number in the...

Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...