How to make a table on more than one page by using the table environment











up vote
22
down vote

favorite
6












EDIT Like some comments below are remarking the table environment doesn't allow tables over more than one page. However the solution works fine



I need to make a table over more than one page. The standard approach seems to be to use the ltablex environment. However, it doesn't work; also I assume that the table environment may also be required for the thesis template I work on (e.g. suppose for the capture).



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{tabularx}
usepackage{ltablex}
begin{document}

begin{table}
caption{Example of an table}
label{tab:daypack}
begin{tabularx}{linewidth}{@{}cX@{}}
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{tabularx}
end{table}

end{document}









share|improve this question




















  • 3




    A table environment can never be split across pages. The purpose of ltablex is exactly not using table.
    – egreg
    Mar 15 '14 at 23:10










  • @egreg Thank you. However, may it be possible to change the code in order to work over more then one page and to add before a empty table? Otherwise could you at least offer a working code without the table environment because it doesn't work for me?
    – alex
    Mar 15 '14 at 23:16















up vote
22
down vote

favorite
6












EDIT Like some comments below are remarking the table environment doesn't allow tables over more than one page. However the solution works fine



I need to make a table over more than one page. The standard approach seems to be to use the ltablex environment. However, it doesn't work; also I assume that the table environment may also be required for the thesis template I work on (e.g. suppose for the capture).



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{tabularx}
usepackage{ltablex}
begin{document}

begin{table}
caption{Example of an table}
label{tab:daypack}
begin{tabularx}{linewidth}{@{}cX@{}}
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{tabularx}
end{table}

end{document}









share|improve this question




















  • 3




    A table environment can never be split across pages. The purpose of ltablex is exactly not using table.
    – egreg
    Mar 15 '14 at 23:10










  • @egreg Thank you. However, may it be possible to change the code in order to work over more then one page and to add before a empty table? Otherwise could you at least offer a working code without the table environment because it doesn't work for me?
    – alex
    Mar 15 '14 at 23:16













up vote
22
down vote

favorite
6









up vote
22
down vote

favorite
6






6





EDIT Like some comments below are remarking the table environment doesn't allow tables over more than one page. However the solution works fine



I need to make a table over more than one page. The standard approach seems to be to use the ltablex environment. However, it doesn't work; also I assume that the table environment may also be required for the thesis template I work on (e.g. suppose for the capture).



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{tabularx}
usepackage{ltablex}
begin{document}

begin{table}
caption{Example of an table}
label{tab:daypack}
begin{tabularx}{linewidth}{@{}cX@{}}
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{tabularx}
end{table}

end{document}









share|improve this question















EDIT Like some comments below are remarking the table environment doesn't allow tables over more than one page. However the solution works fine



I need to make a table over more than one page. The standard approach seems to be to use the ltablex environment. However, it doesn't work; also I assume that the table environment may also be required for the thesis template I work on (e.g. suppose for the capture).



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{tabularx}
usepackage{ltablex}
begin{document}

begin{table}
caption{Example of an table}
label{tab:daypack}
begin{tabularx}{linewidth}{@{}cX@{}}
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{tabularx}
end{table}

end{document}






tables tabularx ltablex






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 9 '16 at 20:11









Gunelle

508




508










asked Mar 15 '14 at 23:08









alex

4411414




4411414








  • 3




    A table environment can never be split across pages. The purpose of ltablex is exactly not using table.
    – egreg
    Mar 15 '14 at 23:10










  • @egreg Thank you. However, may it be possible to change the code in order to work over more then one page and to add before a empty table? Otherwise could you at least offer a working code without the table environment because it doesn't work for me?
    – alex
    Mar 15 '14 at 23:16














  • 3




    A table environment can never be split across pages. The purpose of ltablex is exactly not using table.
    – egreg
    Mar 15 '14 at 23:10










  • @egreg Thank you. However, may it be possible to change the code in order to work over more then one page and to add before a empty table? Otherwise could you at least offer a working code without the table environment because it doesn't work for me?
    – alex
    Mar 15 '14 at 23:16








3




3




A table environment can never be split across pages. The purpose of ltablex is exactly not using table.
– egreg
Mar 15 '14 at 23:10




A table environment can never be split across pages. The purpose of ltablex is exactly not using table.
– egreg
Mar 15 '14 at 23:10












@egreg Thank you. However, may it be possible to change the code in order to work over more then one page and to add before a empty table? Otherwise could you at least offer a working code without the table environment because it doesn't work for me?
– alex
Mar 15 '14 at 23:16




@egreg Thank you. However, may it be possible to change the code in order to work over more then one page and to add before a empty table? Otherwise could you at least offer a working code without the table environment because it doesn't work for me?
– alex
Mar 15 '14 at 23:16










3 Answers
3






active

oldest

votes

















up vote
17
down vote



accepted










If you must combine tabularx and longtable, I prefer ltxtable to ltablex:



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{ltxtable}
begin{document}



LTXtable{textwidth}{t1.tex}


end{document}


where t1.tex is



begin{longtable}{@{}cX@{}}  
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{longtable}





share|improve this answer

















  • 1




    But ltablex is in Tex Live and MiKTeX. I'm not saying your package isn't superior (I've never used either) but it does require manual installation.
    – cfr
    Mar 16 '14 at 0:12






  • 1




    @cfr I didn't install it manually, just picked it from texlive default install
    – David Carlisle
    Mar 16 '14 at 0:15






  • 1




    How odd. I was just going by ctan.org/pkg/ltxtable in comparison with ctan.org/pkg/ltablex. I didn't check against my own installation (which does include it, as you say).
    – cfr
    Mar 16 '14 at 0:18










  • could you please expand on the preference of ltxtable over ltablex? The only difference I see is the first requiring a separate file but I fear I'm missing something such as they behaviour with labels or captions.
    – carandraug
    Sep 11 '15 at 13:40








  • 2




    @carandraug well partly it's that I wrote that one, but ltablex redefines all tabularx whether or not they are intended to break over a page, which can have some side effects sometimes.
    – David Carlisle
    Jan 3 '16 at 19:35


















up vote
21
down vote













With the correct code, it works fine. No table environment – a long table cannot possibly be a float, and the caption just after begin{tabularx}.



    documentclass[11pt]{article}
usepackage[utf8]{inputenc}
usepackage{booktabs}
usepackage{ltablex}

begin{document}

label{tab:daypack}
begin{tabularx}{linewidth}{@{}cX@{}}
caption{Example of an table}\
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead

$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{tabularx}

end{document}


enter image description here






share|improve this answer























  • Thank you! :) the result looks perfect. However, I try and try but in the original document i get ! LaTeX Error: There's no line here to end. Have you any idea why?
    – alex
    Mar 16 '14 at 1:13










  • Impossible to say without seeing the code and the .log. Probably you inserted a `` or a blankline just after the end of an environment. Usually, the .log tells you where this happens.
    – Bernard
    Mar 16 '14 at 1:43










  • Thank you very much. Somehow in ltablex seems to create trouble inside my template. Therefore I've chosen the proposal from David Carlisle. However, this solution works in an normal environment and is very elegant!
    – alex
    Mar 16 '14 at 2:35












  • How could one force the table to break at an specific line, @Bernard? Thank you.
    – pceccon
    Mar 31 '17 at 17:24










  • @Bernard That solution worked automagically
    – user877329
    Aug 6 '17 at 16:23


















up vote
4
down vote













Use longtable of the package longtable



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{tabularx}
usepackage{ltablex}
usepackage{longtable}
begin{document}

begin{longtable}{cc}
caption{Example of an table} \
textbf{Column 1} & textbf{Column 2} \[6pt]
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
end{longtable}

end{document}





share|improve this answer























  • Thank you very much! This solution is very similar (aside of alignment) to David Carlisle. However it works fine and I rated it positively. Have a nice day!
    – alex
    Mar 16 '14 at 2:43










  • We could extend possibilities of the longtable package by loading the tabu package, ctan.org/pkg/tabu. Then we would use the longtabu environment instead of longtable.
    – Malipivo
    Mar 16 '14 at 18:47













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',
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%2f165793%2fhow-to-make-a-table-on-more-than-one-page-by-using-the-table-environment%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
17
down vote



accepted










If you must combine tabularx and longtable, I prefer ltxtable to ltablex:



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{ltxtable}
begin{document}



LTXtable{textwidth}{t1.tex}


end{document}


where t1.tex is



begin{longtable}{@{}cX@{}}  
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{longtable}





share|improve this answer

















  • 1




    But ltablex is in Tex Live and MiKTeX. I'm not saying your package isn't superior (I've never used either) but it does require manual installation.
    – cfr
    Mar 16 '14 at 0:12






  • 1




    @cfr I didn't install it manually, just picked it from texlive default install
    – David Carlisle
    Mar 16 '14 at 0:15






  • 1




    How odd. I was just going by ctan.org/pkg/ltxtable in comparison with ctan.org/pkg/ltablex. I didn't check against my own installation (which does include it, as you say).
    – cfr
    Mar 16 '14 at 0:18










  • could you please expand on the preference of ltxtable over ltablex? The only difference I see is the first requiring a separate file but I fear I'm missing something such as they behaviour with labels or captions.
    – carandraug
    Sep 11 '15 at 13:40








  • 2




    @carandraug well partly it's that I wrote that one, but ltablex redefines all tabularx whether or not they are intended to break over a page, which can have some side effects sometimes.
    – David Carlisle
    Jan 3 '16 at 19:35















up vote
17
down vote



accepted










If you must combine tabularx and longtable, I prefer ltxtable to ltablex:



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{ltxtable}
begin{document}



LTXtable{textwidth}{t1.tex}


end{document}


where t1.tex is



begin{longtable}{@{}cX@{}}  
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{longtable}





share|improve this answer

















  • 1




    But ltablex is in Tex Live and MiKTeX. I'm not saying your package isn't superior (I've never used either) but it does require manual installation.
    – cfr
    Mar 16 '14 at 0:12






  • 1




    @cfr I didn't install it manually, just picked it from texlive default install
    – David Carlisle
    Mar 16 '14 at 0:15






  • 1




    How odd. I was just going by ctan.org/pkg/ltxtable in comparison with ctan.org/pkg/ltablex. I didn't check against my own installation (which does include it, as you say).
    – cfr
    Mar 16 '14 at 0:18










  • could you please expand on the preference of ltxtable over ltablex? The only difference I see is the first requiring a separate file but I fear I'm missing something such as they behaviour with labels or captions.
    – carandraug
    Sep 11 '15 at 13:40








  • 2




    @carandraug well partly it's that I wrote that one, but ltablex redefines all tabularx whether or not they are intended to break over a page, which can have some side effects sometimes.
    – David Carlisle
    Jan 3 '16 at 19:35













up vote
17
down vote



accepted







up vote
17
down vote



accepted






If you must combine tabularx and longtable, I prefer ltxtable to ltablex:



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{ltxtable}
begin{document}



LTXtable{textwidth}{t1.tex}


end{document}


where t1.tex is



begin{longtable}{@{}cX@{}}  
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{longtable}





share|improve this answer












If you must combine tabularx and longtable, I prefer ltxtable to ltablex:



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{ltxtable}
begin{document}



LTXtable{textwidth}{t1.tex}


end{document}


where t1.tex is



begin{longtable}{@{}cX@{}}  
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{longtable}






share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 15 '14 at 23:35









David Carlisle

477k3811061841




477k3811061841








  • 1




    But ltablex is in Tex Live and MiKTeX. I'm not saying your package isn't superior (I've never used either) but it does require manual installation.
    – cfr
    Mar 16 '14 at 0:12






  • 1




    @cfr I didn't install it manually, just picked it from texlive default install
    – David Carlisle
    Mar 16 '14 at 0:15






  • 1




    How odd. I was just going by ctan.org/pkg/ltxtable in comparison with ctan.org/pkg/ltablex. I didn't check against my own installation (which does include it, as you say).
    – cfr
    Mar 16 '14 at 0:18










  • could you please expand on the preference of ltxtable over ltablex? The only difference I see is the first requiring a separate file but I fear I'm missing something such as they behaviour with labels or captions.
    – carandraug
    Sep 11 '15 at 13:40








  • 2




    @carandraug well partly it's that I wrote that one, but ltablex redefines all tabularx whether or not they are intended to break over a page, which can have some side effects sometimes.
    – David Carlisle
    Jan 3 '16 at 19:35














  • 1




    But ltablex is in Tex Live and MiKTeX. I'm not saying your package isn't superior (I've never used either) but it does require manual installation.
    – cfr
    Mar 16 '14 at 0:12






  • 1




    @cfr I didn't install it manually, just picked it from texlive default install
    – David Carlisle
    Mar 16 '14 at 0:15






  • 1




    How odd. I was just going by ctan.org/pkg/ltxtable in comparison with ctan.org/pkg/ltablex. I didn't check against my own installation (which does include it, as you say).
    – cfr
    Mar 16 '14 at 0:18










  • could you please expand on the preference of ltxtable over ltablex? The only difference I see is the first requiring a separate file but I fear I'm missing something such as they behaviour with labels or captions.
    – carandraug
    Sep 11 '15 at 13:40








  • 2




    @carandraug well partly it's that I wrote that one, but ltablex redefines all tabularx whether or not they are intended to break over a page, which can have some side effects sometimes.
    – David Carlisle
    Jan 3 '16 at 19:35








1




1




But ltablex is in Tex Live and MiKTeX. I'm not saying your package isn't superior (I've never used either) but it does require manual installation.
– cfr
Mar 16 '14 at 0:12




But ltablex is in Tex Live and MiKTeX. I'm not saying your package isn't superior (I've never used either) but it does require manual installation.
– cfr
Mar 16 '14 at 0:12




1




1




@cfr I didn't install it manually, just picked it from texlive default install
– David Carlisle
Mar 16 '14 at 0:15




@cfr I didn't install it manually, just picked it from texlive default install
– David Carlisle
Mar 16 '14 at 0:15




1




1




How odd. I was just going by ctan.org/pkg/ltxtable in comparison with ctan.org/pkg/ltablex. I didn't check against my own installation (which does include it, as you say).
– cfr
Mar 16 '14 at 0:18




How odd. I was just going by ctan.org/pkg/ltxtable in comparison with ctan.org/pkg/ltablex. I didn't check against my own installation (which does include it, as you say).
– cfr
Mar 16 '14 at 0:18












could you please expand on the preference of ltxtable over ltablex? The only difference I see is the first requiring a separate file but I fear I'm missing something such as they behaviour with labels or captions.
– carandraug
Sep 11 '15 at 13:40






could you please expand on the preference of ltxtable over ltablex? The only difference I see is the first requiring a separate file but I fear I'm missing something such as they behaviour with labels or captions.
– carandraug
Sep 11 '15 at 13:40






2




2




@carandraug well partly it's that I wrote that one, but ltablex redefines all tabularx whether or not they are intended to break over a page, which can have some side effects sometimes.
– David Carlisle
Jan 3 '16 at 19:35




@carandraug well partly it's that I wrote that one, but ltablex redefines all tabularx whether or not they are intended to break over a page, which can have some side effects sometimes.
– David Carlisle
Jan 3 '16 at 19:35










up vote
21
down vote













With the correct code, it works fine. No table environment – a long table cannot possibly be a float, and the caption just after begin{tabularx}.



    documentclass[11pt]{article}
usepackage[utf8]{inputenc}
usepackage{booktabs}
usepackage{ltablex}

begin{document}

label{tab:daypack}
begin{tabularx}{linewidth}{@{}cX@{}}
caption{Example of an table}\
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead

$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{tabularx}

end{document}


enter image description here






share|improve this answer























  • Thank you! :) the result looks perfect. However, I try and try but in the original document i get ! LaTeX Error: There's no line here to end. Have you any idea why?
    – alex
    Mar 16 '14 at 1:13










  • Impossible to say without seeing the code and the .log. Probably you inserted a `` or a blankline just after the end of an environment. Usually, the .log tells you where this happens.
    – Bernard
    Mar 16 '14 at 1:43










  • Thank you very much. Somehow in ltablex seems to create trouble inside my template. Therefore I've chosen the proposal from David Carlisle. However, this solution works in an normal environment and is very elegant!
    – alex
    Mar 16 '14 at 2:35












  • How could one force the table to break at an specific line, @Bernard? Thank you.
    – pceccon
    Mar 31 '17 at 17:24










  • @Bernard That solution worked automagically
    – user877329
    Aug 6 '17 at 16:23















up vote
21
down vote













With the correct code, it works fine. No table environment – a long table cannot possibly be a float, and the caption just after begin{tabularx}.



    documentclass[11pt]{article}
usepackage[utf8]{inputenc}
usepackage{booktabs}
usepackage{ltablex}

begin{document}

label{tab:daypack}
begin{tabularx}{linewidth}{@{}cX@{}}
caption{Example of an table}\
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead

$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{tabularx}

end{document}


enter image description here






share|improve this answer























  • Thank you! :) the result looks perfect. However, I try and try but in the original document i get ! LaTeX Error: There's no line here to end. Have you any idea why?
    – alex
    Mar 16 '14 at 1:13










  • Impossible to say without seeing the code and the .log. Probably you inserted a `` or a blankline just after the end of an environment. Usually, the .log tells you where this happens.
    – Bernard
    Mar 16 '14 at 1:43










  • Thank you very much. Somehow in ltablex seems to create trouble inside my template. Therefore I've chosen the proposal from David Carlisle. However, this solution works in an normal environment and is very elegant!
    – alex
    Mar 16 '14 at 2:35












  • How could one force the table to break at an specific line, @Bernard? Thank you.
    – pceccon
    Mar 31 '17 at 17:24










  • @Bernard That solution worked automagically
    – user877329
    Aug 6 '17 at 16:23













up vote
21
down vote










up vote
21
down vote









With the correct code, it works fine. No table environment – a long table cannot possibly be a float, and the caption just after begin{tabularx}.



    documentclass[11pt]{article}
usepackage[utf8]{inputenc}
usepackage{booktabs}
usepackage{ltablex}

begin{document}

label{tab:daypack}
begin{tabularx}{linewidth}{@{}cX@{}}
caption{Example of an table}\
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead

$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{tabularx}

end{document}


enter image description here






share|improve this answer














With the correct code, it works fine. No table environment – a long table cannot possibly be a float, and the caption just after begin{tabularx}.



    documentclass[11pt]{article}
usepackage[utf8]{inputenc}
usepackage{booktabs}
usepackage{ltablex}

begin{document}

label{tab:daypack}
begin{tabularx}{linewidth}{@{}cX@{}}
caption{Example of an table}\
toprule
textbf{Column 1} & textbf{Column 2} \[6pt]
midrule
endhead

$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
bottomrule
end{tabularx}

end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Aug 21 '16 at 14:17

























answered Mar 15 '14 at 23:39









Bernard

162k767192




162k767192












  • Thank you! :) the result looks perfect. However, I try and try but in the original document i get ! LaTeX Error: There's no line here to end. Have you any idea why?
    – alex
    Mar 16 '14 at 1:13










  • Impossible to say without seeing the code and the .log. Probably you inserted a `` or a blankline just after the end of an environment. Usually, the .log tells you where this happens.
    – Bernard
    Mar 16 '14 at 1:43










  • Thank you very much. Somehow in ltablex seems to create trouble inside my template. Therefore I've chosen the proposal from David Carlisle. However, this solution works in an normal environment and is very elegant!
    – alex
    Mar 16 '14 at 2:35












  • How could one force the table to break at an specific line, @Bernard? Thank you.
    – pceccon
    Mar 31 '17 at 17:24










  • @Bernard That solution worked automagically
    – user877329
    Aug 6 '17 at 16:23


















  • Thank you! :) the result looks perfect. However, I try and try but in the original document i get ! LaTeX Error: There's no line here to end. Have you any idea why?
    – alex
    Mar 16 '14 at 1:13










  • Impossible to say without seeing the code and the .log. Probably you inserted a `` or a blankline just after the end of an environment. Usually, the .log tells you where this happens.
    – Bernard
    Mar 16 '14 at 1:43










  • Thank you very much. Somehow in ltablex seems to create trouble inside my template. Therefore I've chosen the proposal from David Carlisle. However, this solution works in an normal environment and is very elegant!
    – alex
    Mar 16 '14 at 2:35












  • How could one force the table to break at an specific line, @Bernard? Thank you.
    – pceccon
    Mar 31 '17 at 17:24










  • @Bernard That solution worked automagically
    – user877329
    Aug 6 '17 at 16:23
















Thank you! :) the result looks perfect. However, I try and try but in the original document i get ! LaTeX Error: There's no line here to end. Have you any idea why?
– alex
Mar 16 '14 at 1:13




Thank you! :) the result looks perfect. However, I try and try but in the original document i get ! LaTeX Error: There's no line here to end. Have you any idea why?
– alex
Mar 16 '14 at 1:13












Impossible to say without seeing the code and the .log. Probably you inserted a `` or a blankline just after the end of an environment. Usually, the .log tells you where this happens.
– Bernard
Mar 16 '14 at 1:43




Impossible to say without seeing the code and the .log. Probably you inserted a `` or a blankline just after the end of an environment. Usually, the .log tells you where this happens.
– Bernard
Mar 16 '14 at 1:43












Thank you very much. Somehow in ltablex seems to create trouble inside my template. Therefore I've chosen the proposal from David Carlisle. However, this solution works in an normal environment and is very elegant!
– alex
Mar 16 '14 at 2:35






Thank you very much. Somehow in ltablex seems to create trouble inside my template. Therefore I've chosen the proposal from David Carlisle. However, this solution works in an normal environment and is very elegant!
– alex
Mar 16 '14 at 2:35














How could one force the table to break at an specific line, @Bernard? Thank you.
– pceccon
Mar 31 '17 at 17:24




How could one force the table to break at an specific line, @Bernard? Thank you.
– pceccon
Mar 31 '17 at 17:24












@Bernard That solution worked automagically
– user877329
Aug 6 '17 at 16:23




@Bernard That solution worked automagically
– user877329
Aug 6 '17 at 16:23










up vote
4
down vote













Use longtable of the package longtable



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{tabularx}
usepackage{ltablex}
usepackage{longtable}
begin{document}

begin{longtable}{cc}
caption{Example of an table} \
textbf{Column 1} & textbf{Column 2} \[6pt]
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
end{longtable}

end{document}





share|improve this answer























  • Thank you very much! This solution is very similar (aside of alignment) to David Carlisle. However it works fine and I rated it positively. Have a nice day!
    – alex
    Mar 16 '14 at 2:43










  • We could extend possibilities of the longtable package by loading the tabu package, ctan.org/pkg/tabu. Then we would use the longtabu environment instead of longtable.
    – Malipivo
    Mar 16 '14 at 18:47

















up vote
4
down vote













Use longtable of the package longtable



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{tabularx}
usepackage{ltablex}
usepackage{longtable}
begin{document}

begin{longtable}{cc}
caption{Example of an table} \
textbf{Column 1} & textbf{Column 2} \[6pt]
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
end{longtable}

end{document}





share|improve this answer























  • Thank you very much! This solution is very similar (aside of alignment) to David Carlisle. However it works fine and I rated it positively. Have a nice day!
    – alex
    Mar 16 '14 at 2:43










  • We could extend possibilities of the longtable package by loading the tabu package, ctan.org/pkg/tabu. Then we would use the longtabu environment instead of longtable.
    – Malipivo
    Mar 16 '14 at 18:47















up vote
4
down vote










up vote
4
down vote









Use longtable of the package longtable



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{tabularx}
usepackage{ltablex}
usepackage{longtable}
begin{document}

begin{longtable}{cc}
caption{Example of an table} \
textbf{Column 1} & textbf{Column 2} \[6pt]
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
end{longtable}

end{document}





share|improve this answer














Use longtable of the package longtable



documentclass[11pt]{article}
usepackage{booktabs}
usepackage{tabularx}
usepackage{ltablex}
usepackage{longtable}
begin{document}

begin{longtable}{cc}
caption{Example of an table} \
textbf{Column 1} & textbf{Column 2} \[6pt]
$R$ & 1This is an example sentence \[6pt]
$R$ & 2As well as the line before \[6pt]
$A$ & 3Also this is an example \[6pt]
$R$ & 4This is an example sentence \[6pt]
$R$ & 5As well as the line before \[6pt]
$A$ & 6Also this is an example \[6pt]
$R$ & 7This is an example sentence \[6pt]
$R$ & 8As well as the line before \[6pt]
$A$ & 9Also this is an example \[6pt]
$R$ & 10This is an example sentence \[6pt]
$R$ & 11As well as the line before \[6pt]
$A$ & 12Also this is an example \[6pt]
$R$ & 13This is an example sentence \[6pt]
$R$ & 14As well as the line before \[6pt]
$A$ & 15Also this is an example \[6pt]
$R$ & 16This is an example sentence \[6pt]
$R$ & 17As well as the line before \[6pt]
$A$ & 18Also this is an example \[6pt]
$R$ & 19This is an example sentence \[6pt]
$R$ & 20As well as the line before \[6pt]
$A$ & 21Also this is an example \[6pt]
$R$ & 22This is an example sentence \[6pt]
$R$ & 23As well as the line before \[6pt]
$A$ & 24Also this is an example \[6pt]
$R$ & 25This is an example sentence \[6pt]
$R$ & 26As well as the line before \[6pt]
$A$ & 27Also this is an example \[6pt]
$R$ & 28This is an example sentence \[6pt]
$R$ & 29As well as the line before \[6pt]
$A$ & 30Also this is an example \[6pt]
$R$ & 31This is an example sentence \[6pt]
$R$ & 32As well as the line before \[6pt]
$A$ & 33Also this is an example \[6pt]
$R$ & 34This is an example sentence \[6pt]
$R$ & 35As well as the line before \[6pt]
$A$ & 36Also this is an example \[6pt]
$R$ & 37This is an example sentence \[6pt]
end{longtable}

end{document}






share|improve this answer














share|improve this answer



share|improve this answer








edited Mar 15 '14 at 23:29

























answered Mar 15 '14 at 23:23









Maarten Dhondt

4,65141636




4,65141636












  • Thank you very much! This solution is very similar (aside of alignment) to David Carlisle. However it works fine and I rated it positively. Have a nice day!
    – alex
    Mar 16 '14 at 2:43










  • We could extend possibilities of the longtable package by loading the tabu package, ctan.org/pkg/tabu. Then we would use the longtabu environment instead of longtable.
    – Malipivo
    Mar 16 '14 at 18:47




















  • Thank you very much! This solution is very similar (aside of alignment) to David Carlisle. However it works fine and I rated it positively. Have a nice day!
    – alex
    Mar 16 '14 at 2:43










  • We could extend possibilities of the longtable package by loading the tabu package, ctan.org/pkg/tabu. Then we would use the longtabu environment instead of longtable.
    – Malipivo
    Mar 16 '14 at 18:47


















Thank you very much! This solution is very similar (aside of alignment) to David Carlisle. However it works fine and I rated it positively. Have a nice day!
– alex
Mar 16 '14 at 2:43




Thank you very much! This solution is very similar (aside of alignment) to David Carlisle. However it works fine and I rated it positively. Have a nice day!
– alex
Mar 16 '14 at 2:43












We could extend possibilities of the longtable package by loading the tabu package, ctan.org/pkg/tabu. Then we would use the longtabu environment instead of longtable.
– Malipivo
Mar 16 '14 at 18:47






We could extend possibilities of the longtable package by loading the tabu package, ctan.org/pkg/tabu. Then we would use the longtabu environment instead of longtable.
– Malipivo
Mar 16 '14 at 18:47




















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f165793%2fhow-to-make-a-table-on-more-than-one-page-by-using-the-table-environment%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

Accessing regular linux commands in Huawei's Dopra Linux

Can't connect RFCOMM socket: Host is down

Kernel panic - not syncing: Fatal Exception in Interrupt