Adjusting table to linewidth and continue on next pagesContinue header of a long table in next pageHow to...

When were female captains banned from Starfleet?

How to convince somebody that he is fit for something else, but not this job?

Has the laser at Magurele, Romania reached a tenth of the Sun's power?

Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?

Do we have to expect a queue for the shuttle from Watford Junction to Harry Potter Studio?

Why do ¬, ∀ and ∃ have the same precedence?

Why is it that I can sometimes guess the next note?

Why does Carol not get rid of the Kree symbol on her suit when she changes its colours?

Is there a way to have vectors outlined in a Vector Plot?

Which was the first story featuring espers?

Doesn't the system of the Supreme Court oppose justice?

Microchip documentation does not label CAN buss pins on micro controller pinout diagram

Multiplicative persistence

Plot of a tornado shape like surface

Mimic lecturing on blackboard, facing audience

Is there any evidence that Cleopatra and Caesarion considered fleeing to India to escape the Romans?

Has any country ever had 2 former presidents in jail simultaneously?

Make a Bowl of Alphabet Soup

Will number of steps recorded on FitBit/any fitness tracker add up distance in PokemonGo?

C++ copy constructor called at return

Can I cause damage to electrical appliances by unplugging them when they are turned on?

Showing a sum is positive

Delete multiple columns using awk or sed

"It doesn't matter" or "it won't matter"?



Adjusting table to linewidth and continue on next pages


Continue header of a long table in next pageHow to continue table on multiple pages?How to continue a very long table on multiple pages?Adjusting table to textwidthMake a linewidth table with booktabsTable not adjusting to pageTable next to tableTabular: continue to the next line if too long horizontallyHow to continue table on the next page?I want to continue this table on multiple pages. need solution













0















I need to have this table adjusted to the line width as it is exceeding the page. I also need it to continue on the next page. How can I do this? Thank you in advance.



Here is my MWE



documentclass{article}
usepackage{multirow}

begin{document}

begin{table}
centering
begin{tabular}{|l|l|l|l|}
hline
multirow{3}{*}{Suspendisse maximus} & Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
hline
multirow{3}{*}{Suspendisse maximus} & feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
hline
multirow{9}{*}{Suspendisse maximus} & multirow{3}{*}{Mauris~} & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis, \turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor. \Donec vel mi quam. Phasellus tincidunt quam in nisl elementum \porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & venenatis~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{2-4}
& multirow{3}{*}{feugiat~} & venenatis~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{2-4}
& multirow{3}{*}{Mauris~} & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
hline
Suspendisse maximus & habitasse~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
& & multicolumn{2}{l|}{begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular}} \
hline
end{tabular}
end{table}
end{document}








share


















  • 1





    Do you know package longtable? Longtables can span pages. Can you please add an screenshot of your resulting table to your question?

    – Kurt
    2 mins ago


















0















I need to have this table adjusted to the line width as it is exceeding the page. I also need it to continue on the next page. How can I do this? Thank you in advance.



Here is my MWE



documentclass{article}
usepackage{multirow}

begin{document}

begin{table}
centering
begin{tabular}{|l|l|l|l|}
hline
multirow{3}{*}{Suspendisse maximus} & Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
hline
multirow{3}{*}{Suspendisse maximus} & feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
hline
multirow{9}{*}{Suspendisse maximus} & multirow{3}{*}{Mauris~} & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis, \turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor. \Donec vel mi quam. Phasellus tincidunt quam in nisl elementum \porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & venenatis~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{2-4}
& multirow{3}{*}{feugiat~} & venenatis~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{2-4}
& multirow{3}{*}{Mauris~} & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
hline
Suspendisse maximus & habitasse~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
& & multicolumn{2}{l|}{begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular}} \
hline
end{tabular}
end{table}
end{document}








share


















  • 1





    Do you know package longtable? Longtables can span pages. Can you please add an screenshot of your resulting table to your question?

    – Kurt
    2 mins ago
















0












0








0








I need to have this table adjusted to the line width as it is exceeding the page. I also need it to continue on the next page. How can I do this? Thank you in advance.



Here is my MWE



documentclass{article}
usepackage{multirow}

begin{document}

begin{table}
centering
begin{tabular}{|l|l|l|l|}
hline
multirow{3}{*}{Suspendisse maximus} & Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
hline
multirow{3}{*}{Suspendisse maximus} & feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
hline
multirow{9}{*}{Suspendisse maximus} & multirow{3}{*}{Mauris~} & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis, \turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor. \Donec vel mi quam. Phasellus tincidunt quam in nisl elementum \porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & venenatis~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{2-4}
& multirow{3}{*}{feugiat~} & venenatis~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{2-4}
& multirow{3}{*}{Mauris~} & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
hline
Suspendisse maximus & habitasse~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
& & multicolumn{2}{l|}{begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular}} \
hline
end{tabular}
end{table}
end{document}








share














I need to have this table adjusted to the line width as it is exceeding the page. I also need it to continue on the next page. How can I do this? Thank you in advance.



Here is my MWE



documentclass{article}
usepackage{multirow}

begin{document}

begin{table}
centering
begin{tabular}{|l|l|l|l|}
hline
multirow{3}{*}{Suspendisse maximus} & Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
hline
multirow{3}{*}{Suspendisse maximus} & feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& feugiat~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
cline{2-4}
& Mauris~ & multicolumn{2}{l|}{Nulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.} \
hline
multirow{9}{*}{Suspendisse maximus} & multirow{3}{*}{Mauris~} & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis, \turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor. \Donec vel mi quam. Phasellus tincidunt quam in nisl elementum \porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & venenatis~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{2-4}
& multirow{3}{*}{feugiat~} & venenatis~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{2-4}
& multirow{3}{*}{Mauris~} & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & habitasse~ & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
cline{3-4}
& & dictumst & begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular} \
hline
Suspendisse maximus & habitasse~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
Suspendisse maximus & habitasse~ ~ ~ & multicolumn{2}{l|}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus dignissim molestie massa, ac mattis massa varius nec. Morbi vitae ullamcorper est. Phasellus mollis tristique ipsum sed ullamcorper. Nulla vel venenatis tellus.~ ~ ~} \
hline
& & multicolumn{2}{l|}{begin{tabular}[c]{@{}l@{}}begin{tabular}{@{labelitemihspace{dimexprlabelsep+0.5tabcolsep}}l}Ut interdum, mauris vitae molestie venenatis,\turpis turpis varius felis, eget imperdiet leo nulla laoreet tortor.\Donec vel mi quam. Phasellus tincidunt quam in nisl elementum\porta. Mauris a augue nisl. Proin viverra feugiat~ ~end{tabular}end{tabular}} \
hline
end{tabular}
end{table}
end{document}






tables





share












share










share



share










asked 8 mins ago









Nadeem MuhammadNadeem Muhammad

405




405








  • 1





    Do you know package longtable? Longtables can span pages. Can you please add an screenshot of your resulting table to your question?

    – Kurt
    2 mins ago
















  • 1





    Do you know package longtable? Longtables can span pages. Can you please add an screenshot of your resulting table to your question?

    – Kurt
    2 mins ago










1




1





Do you know package longtable? Longtables can span pages. Can you please add an screenshot of your resulting table to your question?

– Kurt
2 mins ago







Do you know package longtable? Longtables can span pages. Can you please add an screenshot of your resulting table to your question?

– Kurt
2 mins ago












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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480848%2fadjusting-table-to-linewidth-and-continue-on-next-pages%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
















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%2f480848%2fadjusting-table-to-linewidth-and-continue-on-next-pages%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

Can't compile dgruyter and caption packagesLaTeX templates/packages for writing a patent specificationLatex...

Schneeberg (Smreczany) Bibliografia | Menu...

Hans Bellmer Spis treści Życiorys | Upamiętnienie | Przypisy | Bibliografia | Linki zewnętrzne |...