Adjusting table to linewidth and continue on next pages
Strong empirical falsification of quantum mechanics based on vacuum energy density?
awk assign to multiple variables at once
Why do some congregations only make noise at certain occasions of Haman?
How to draw a matrix with arrows in limited space
Why does the Sun have different day lengths, but not the gas giants?
What is the English pronunciation of "pain au chocolat"?
Review your own paper in Mathematics
What is the highest possible scrabble score for placing a single tile
The IT department bottlenecks progress, how should I handle this?
Will number of steps recorded on FitBit/any fitness tracker add up distance in PokemonGo?
How to get directions in deep space?
Pre-mixing cryogenic fuels and using only one fuel tank
Why is it that I can sometimes guess the next note?
15% tax on $7.5k earnings. Is that right?
What (the heck) is a Super Worm Equinox Moon?
Is there a nicer/politer/more positive alternative for "negates"?
Why do Radio Buttons not fill the entire outer circle?
A variation to the phrase "hanging over my shoulders"
What is going on with gets(stdin) on the site coderbyte?
Why Shazam when there is already Superman?
What kind of floor tile is this?
C++ check if statement can be evaluated constexpr
Biological Blimps: Propulsion
Did the UK lift the requirement for registering SIM cards?
Adjusting table to linewidth and continue on next pages
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
add a comment |
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
add a comment |
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
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
tables
asked 1 min ago
Nadeem MuhammadNadeem Muhammad
405
405
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%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
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f480848%2fadjusting-table-to-linewidth-and-continue-on-next-pages%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown