Prevent table from going off page, how?How to vertically-center the text of the cells?Adjusting table to linewidth and continue on next pagesStop table going off pageLaTeX prevent oversized table from getting cut offStop table going off page (vertically)Table off the pageTable keeps going off the text widthResulting table off page limitsLaTeX table floating off pagecsvsimple table going off of pageThe contents of table in LaTeX are going off pagePrevent table from going out of the page
Can a Canadian Travel to the USA twice, less than 180 days each time?
Does IPv6 have similar concept of network mask?
Does the Linux kernel need a file system to run?
Picking the different solutions to the time independent Schrodinger eqaution
How much character growth crosses the line into breaking the character
Terse Method to Swap Lowest for Highest?
Has any country ever had 2 former presidents in jail simultaneously?
How does the math work for Perception checks?
Is there an injective, monotonically increasing, strictly concave function from the reals, to the reals?
Creepy dinosaur pc game identification
Multiplicative persistence
Why is it that I can sometimes guess the next note?
Strong empirical falsification of quantum mechanics based on vacuum energy density
Can disgust be a key component of horror?
How to hide some fields of struct in C?
What is the highest possible scrabble score for placing a single tile
How to explain what's wrong with this application of the chain rule?
How to cover method return statement in Apex Class?
Calculating total slots
Can a stoichiometric mixture of oxygen and methane exist as a liquid at standard pressure and some (low) temperature?
What are some good ways to treat frozen vegetables such that they behave like fresh vegetables when stir frying them?
Need help understanding what a natural log transformation is actually doing and why specific transformations are required for linear regression
15% tax on $7.5k earnings. Is that right?
Pre-mixing cryogenic fuels and using only one fuel tank
Prevent table from going off page, how?
How to vertically-center the text of the cells?Adjusting table to linewidth and continue on next pagesStop table going off pageLaTeX prevent oversized table from getting cut offStop table going off page (vertically)Table off the pageTable keeps going off the text widthResulting table off page limitsLaTeX table floating off pagecsvsimple table going off of pageThe contents of table in LaTeX are going off pagePrevent table from going out of the page
How can I prevent this table from going off the page please?
I need solution for both vertical overflowing and horizontal overflowing
- For horizontal, it exceeds the page on the right side. How to limit and scale it so that it fit the page width. See MWE 1
- For vertical, the table does not break and continue of the next page. It just stops at the very bottom of the first page and is incomplete. See MWE 2
- MWE 3 has both types of overflow. Basically, I want to scale the table to linewidth, and let it continue on next page.
Thank you in advance
Here is my MWE 1 for horizontal overflowing
documentclassarticle
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabularl
hline
textbfAttention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfRelevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfConfidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfSatisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
endtabular
endtable
enddocument
Here is my MWE 2 for vertical overflowing
documentclassarticle
begindocument
begintable
centering
begintabular
hline
Test 1 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 2 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 3 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 4 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 5 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 6 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 7 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
endtabular
endtable
enddocument
MWE 3 needing horizontal scaling and flow to next page
documentclassarticle
usepackagemultirow
begindocument
begintable
centering
begintabularl
hline
multirow3*Suspendisse maximus & Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
multirow3*Suspendisse maximus & feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
multirow9*Suspendisse maximus & multirow3*Mauris~ & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & venenatis~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline2-4
& multirow3*feugiat~ & venenatis~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline2-4
& multirow3*Mauris~ & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
hline
Suspendisse maximus & habitasse~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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
& & multicolumn2lbegintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
hline
endtabular
endtable
enddocument
tables
add a comment |
How can I prevent this table from going off the page please?
I need solution for both vertical overflowing and horizontal overflowing
- For horizontal, it exceeds the page on the right side. How to limit and scale it so that it fit the page width. See MWE 1
- For vertical, the table does not break and continue of the next page. It just stops at the very bottom of the first page and is incomplete. See MWE 2
- MWE 3 has both types of overflow. Basically, I want to scale the table to linewidth, and let it continue on next page.
Thank you in advance
Here is my MWE 1 for horizontal overflowing
documentclassarticle
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabularl
hline
textbfAttention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfRelevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfConfidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfSatisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
endtabular
endtable
enddocument
Here is my MWE 2 for vertical overflowing
documentclassarticle
begindocument
begintable
centering
begintabular
hline
Test 1 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 2 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 3 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 4 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 5 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 6 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 7 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
endtabular
endtable
enddocument
MWE 3 needing horizontal scaling and flow to next page
documentclassarticle
usepackagemultirow
begindocument
begintable
centering
begintabularl
hline
multirow3*Suspendisse maximus & Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
multirow3*Suspendisse maximus & feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
multirow9*Suspendisse maximus & multirow3*Mauris~ & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & venenatis~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline2-4
& multirow3*feugiat~ & venenatis~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline2-4
& multirow3*Mauris~ & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
hline
Suspendisse maximus & habitasse~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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
& & multicolumn2lbegintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
hline
endtabular
endtable
enddocument
tables
What do you want to do with the text? Do you want to have a line break, in what section of the text?
– manooooh
yesterday
When adding an example you should add enough code to make it compilable
– Raven
yesterday
Updated the MWE. Thanks
– Nadeem Muhammad
yesterday
add a comment |
How can I prevent this table from going off the page please?
I need solution for both vertical overflowing and horizontal overflowing
- For horizontal, it exceeds the page on the right side. How to limit and scale it so that it fit the page width. See MWE 1
- For vertical, the table does not break and continue of the next page. It just stops at the very bottom of the first page and is incomplete. See MWE 2
- MWE 3 has both types of overflow. Basically, I want to scale the table to linewidth, and let it continue on next page.
Thank you in advance
Here is my MWE 1 for horizontal overflowing
documentclassarticle
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabularl
hline
textbfAttention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfRelevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfConfidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfSatisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
endtabular
endtable
enddocument
Here is my MWE 2 for vertical overflowing
documentclassarticle
begindocument
begintable
centering
begintabular
hline
Test 1 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 2 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 3 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 4 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 5 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 6 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 7 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
endtabular
endtable
enddocument
MWE 3 needing horizontal scaling and flow to next page
documentclassarticle
usepackagemultirow
begindocument
begintable
centering
begintabularl
hline
multirow3*Suspendisse maximus & Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
multirow3*Suspendisse maximus & feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
multirow9*Suspendisse maximus & multirow3*Mauris~ & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & venenatis~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline2-4
& multirow3*feugiat~ & venenatis~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline2-4
& multirow3*Mauris~ & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
hline
Suspendisse maximus & habitasse~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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
& & multicolumn2lbegintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
hline
endtabular
endtable
enddocument
tables
How can I prevent this table from going off the page please?
I need solution for both vertical overflowing and horizontal overflowing
- For horizontal, it exceeds the page on the right side. How to limit and scale it so that it fit the page width. See MWE 1
- For vertical, the table does not break and continue of the next page. It just stops at the very bottom of the first page and is incomplete. See MWE 2
- MWE 3 has both types of overflow. Basically, I want to scale the table to linewidth, and let it continue on next page.
Thank you in advance
Here is my MWE 1 for horizontal overflowing
documentclassarticle
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabularl
hline
textbfAttention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfRelevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfConfidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfSatisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
endtabular
endtable
enddocument
Here is my MWE 2 for vertical overflowing
documentclassarticle
begindocument
begintable
centering
begintabular
hline
Test 1 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 2 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 3 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 4 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 5 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 6 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
Test 7 & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. Suspendisse maximus nunc quis arcu auctor, a auctor nunc faucibus. Quisque id lorem ut mauris imperdiet facilisis. 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 augue, nec. \
hline
endtabular
endtable
enddocument
MWE 3 needing horizontal scaling and flow to next page
documentclassarticle
usepackagemultirow
begindocument
begintable
centering
begintabularl
hline
multirow3*Suspendisse maximus & Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
multirow3*Suspendisse maximus & feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& feugiat~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
cline2-4
& Mauris~ & multicolumn2lNulla vel venenatis tellus. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
multirow9*Suspendisse maximus & multirow3*Mauris~ & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & venenatis~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline2-4
& multirow3*feugiat~ & venenatis~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline2-4
& multirow3*Mauris~ & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & habitasse~ & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
cline3-4
& & dictumst & begintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
hline
Suspendisse maximus & habitasse~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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~ ~ ~ & multicolumn2lLorem 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
& & multicolumn2lbegintabular[c]@l@begintabular@labelitemihspacedimexprlabelsep+0.5tabcolseplUt 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~ ~endtabularendtabular \
hline
endtabular
endtable
enddocument
tables
tables
edited yesterday
Nadeem Muhammad
asked yesterday
Nadeem MuhammadNadeem Muhammad
505
505
What do you want to do with the text? Do you want to have a line break, in what section of the text?
– manooooh
yesterday
When adding an example you should add enough code to make it compilable
– Raven
yesterday
Updated the MWE. Thanks
– Nadeem Muhammad
yesterday
add a comment |
What do you want to do with the text? Do you want to have a line break, in what section of the text?
– manooooh
yesterday
When adding an example you should add enough code to make it compilable
– Raven
yesterday
Updated the MWE. Thanks
– Nadeem Muhammad
yesterday
What do you want to do with the text? Do you want to have a line break, in what section of the text?
– manooooh
yesterday
What do you want to do with the text? Do you want to have a line break, in what section of the text?
– manooooh
yesterday
When adding an example you should add enough code to make it compilable
– Raven
yesterday
When adding an example you should add enough code to make it compilable
– Raven
yesterday
Updated the MWE. Thanks
– Nadeem Muhammad
yesterday
Updated the MWE. Thanks
– Nadeem Muhammad
yesterday
add a comment |
2 Answers
2
active
oldest
votes
Assuming that by "going off the page" you mean overflowing the page margin instead of adding a line break, you can fix the problem by using the p
(Paragraph) column type that takes a width argument:
documentclassarticle
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabular
hline
textbfAttention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfRelevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfConfidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfSatisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
endtabular
endtable
enddocument
This works. Thanks. Now how do I center the Attention, Relevance etc. in the middle of the cell?
– Nadeem Muhammad
yesterday
I have added another question concerning vertical overflow, can you help ?
– Nadeem Muhammad
yesterday
@NadeemMuhammad: If you want your table to automatically be continued on a second page, you will need thelongtable
package.
– leandriis
yesterday
1
@NadeemMuhammad it is really bad practice to edit your question to include new questions after an answer has been made that covers the original question. In the future, please create a new question for that. Apart from that leandriis is right: If you want your table to continue on another page you need a longtable. For centering you can addnewcolumntypeP[1]>centeringarraybackslashp#1
after also havingusepackagearray
and then use theP
column type instead of thep
one
– Raven
yesterday
1
i took liberty and add picture of table generated by suggested solution.
– Zarko
yesterday
|
show 3 more comments
i would use tabularx
table environment:
documentclassarticle
usepackagetabularx
%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabularxlinewidth>bfseriesl
hline
Attention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Relevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Confidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Satisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
endtabularx
endtable
enddocument
which gives
(red lines indicate text borders).
add a comment |
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%2f480652%2fprevent-table-from-going-off-page-how%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Assuming that by "going off the page" you mean overflowing the page margin instead of adding a line break, you can fix the problem by using the p
(Paragraph) column type that takes a width argument:
documentclassarticle
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabular
hline
textbfAttention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfRelevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfConfidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfSatisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
endtabular
endtable
enddocument
This works. Thanks. Now how do I center the Attention, Relevance etc. in the middle of the cell?
– Nadeem Muhammad
yesterday
I have added another question concerning vertical overflow, can you help ?
– Nadeem Muhammad
yesterday
@NadeemMuhammad: If you want your table to automatically be continued on a second page, you will need thelongtable
package.
– leandriis
yesterday
1
@NadeemMuhammad it is really bad practice to edit your question to include new questions after an answer has been made that covers the original question. In the future, please create a new question for that. Apart from that leandriis is right: If you want your table to continue on another page you need a longtable. For centering you can addnewcolumntypeP[1]>centeringarraybackslashp#1
after also havingusepackagearray
and then use theP
column type instead of thep
one
– Raven
yesterday
1
i took liberty and add picture of table generated by suggested solution.
– Zarko
yesterday
|
show 3 more comments
Assuming that by "going off the page" you mean overflowing the page margin instead of adding a line break, you can fix the problem by using the p
(Paragraph) column type that takes a width argument:
documentclassarticle
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabular
hline
textbfAttention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfRelevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfConfidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfSatisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
endtabular
endtable
enddocument
This works. Thanks. Now how do I center the Attention, Relevance etc. in the middle of the cell?
– Nadeem Muhammad
yesterday
I have added another question concerning vertical overflow, can you help ?
– Nadeem Muhammad
yesterday
@NadeemMuhammad: If you want your table to automatically be continued on a second page, you will need thelongtable
package.
– leandriis
yesterday
1
@NadeemMuhammad it is really bad practice to edit your question to include new questions after an answer has been made that covers the original question. In the future, please create a new question for that. Apart from that leandriis is right: If you want your table to continue on another page you need a longtable. For centering you can addnewcolumntypeP[1]>centeringarraybackslashp#1
after also havingusepackagearray
and then use theP
column type instead of thep
one
– Raven
yesterday
1
i took liberty and add picture of table generated by suggested solution.
– Zarko
yesterday
|
show 3 more comments
Assuming that by "going off the page" you mean overflowing the page margin instead of adding a line break, you can fix the problem by using the p
(Paragraph) column type that takes a width argument:
documentclassarticle
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabular
hline
textbfAttention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfRelevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfConfidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfSatisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
endtabular
endtable
enddocument
Assuming that by "going off the page" you mean overflowing the page margin instead of adding a line break, you can fix the problem by using the p
(Paragraph) column type that takes a width argument:
documentclassarticle
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabular
hline
textbfAttention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfRelevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfConfidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
textbfSatisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra.~ \
hline
endtabular
endtable
enddocument
edited yesterday
Zarko
127k868167
127k868167
answered yesterday
RavenRaven
1,139114
1,139114
This works. Thanks. Now how do I center the Attention, Relevance etc. in the middle of the cell?
– Nadeem Muhammad
yesterday
I have added another question concerning vertical overflow, can you help ?
– Nadeem Muhammad
yesterday
@NadeemMuhammad: If you want your table to automatically be continued on a second page, you will need thelongtable
package.
– leandriis
yesterday
1
@NadeemMuhammad it is really bad practice to edit your question to include new questions after an answer has been made that covers the original question. In the future, please create a new question for that. Apart from that leandriis is right: If you want your table to continue on another page you need a longtable. For centering you can addnewcolumntypeP[1]>centeringarraybackslashp#1
after also havingusepackagearray
and then use theP
column type instead of thep
one
– Raven
yesterday
1
i took liberty and add picture of table generated by suggested solution.
– Zarko
yesterday
|
show 3 more comments
This works. Thanks. Now how do I center the Attention, Relevance etc. in the middle of the cell?
– Nadeem Muhammad
yesterday
I have added another question concerning vertical overflow, can you help ?
– Nadeem Muhammad
yesterday
@NadeemMuhammad: If you want your table to automatically be continued on a second page, you will need thelongtable
package.
– leandriis
yesterday
1
@NadeemMuhammad it is really bad practice to edit your question to include new questions after an answer has been made that covers the original question. In the future, please create a new question for that. Apart from that leandriis is right: If you want your table to continue on another page you need a longtable. For centering you can addnewcolumntypeP[1]>centeringarraybackslashp#1
after also havingusepackagearray
and then use theP
column type instead of thep
one
– Raven
yesterday
1
i took liberty and add picture of table generated by suggested solution.
– Zarko
yesterday
This works. Thanks. Now how do I center the Attention, Relevance etc. in the middle of the cell?
– Nadeem Muhammad
yesterday
This works. Thanks. Now how do I center the Attention, Relevance etc. in the middle of the cell?
– Nadeem Muhammad
yesterday
I have added another question concerning vertical overflow, can you help ?
– Nadeem Muhammad
yesterday
I have added another question concerning vertical overflow, can you help ?
– Nadeem Muhammad
yesterday
@NadeemMuhammad: If you want your table to automatically be continued on a second page, you will need the
longtable
package.– leandriis
yesterday
@NadeemMuhammad: If you want your table to automatically be continued on a second page, you will need the
longtable
package.– leandriis
yesterday
1
1
@NadeemMuhammad it is really bad practice to edit your question to include new questions after an answer has been made that covers the original question. In the future, please create a new question for that. Apart from that leandriis is right: If you want your table to continue on another page you need a longtable. For centering you can add
newcolumntypeP[1]>centeringarraybackslashp#1
after also having usepackagearray
and then use the P
column type instead of the p
one– Raven
yesterday
@NadeemMuhammad it is really bad practice to edit your question to include new questions after an answer has been made that covers the original question. In the future, please create a new question for that. Apart from that leandriis is right: If you want your table to continue on another page you need a longtable. For centering you can add
newcolumntypeP[1]>centeringarraybackslashp#1
after also having usepackagearray
and then use the P
column type instead of the p
one– Raven
yesterday
1
1
i took liberty and add picture of table generated by suggested solution.
– Zarko
yesterday
i took liberty and add picture of table generated by suggested solution.
– Zarko
yesterday
|
show 3 more comments
i would use tabularx
table environment:
documentclassarticle
usepackagetabularx
%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabularxlinewidth>bfseriesl
hline
Attention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Relevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Confidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Satisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
endtabularx
endtable
enddocument
which gives
(red lines indicate text borders).
add a comment |
i would use tabularx
table environment:
documentclassarticle
usepackagetabularx
%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabularxlinewidth>bfseriesl
hline
Attention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Relevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Confidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Satisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
endtabularx
endtable
enddocument
which gives
(red lines indicate text borders).
add a comment |
i would use tabularx
table environment:
documentclassarticle
usepackagetabularx
%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabularxlinewidth>bfseriesl
hline
Attention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Relevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Confidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Satisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
endtabularx
endtable
enddocument
which gives
(red lines indicate text borders).
i would use tabularx
table environment:
documentclassarticle
usepackagetabularx
%---------------- show page layout. don't use in a real document!
usepackageshowframe
renewcommandShowFrameLinethickness0.15pt
renewcommand*ShowFrameColorcolorred
%---------------------------------------------------------------%
begindocument
begintable
centering
captionRelationship of the lesson with the ARCS model
begintabularxlinewidth>bfseriesl
hline
Attention & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Relevance & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Confidence & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
Satisfaction & 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. In hac habitasse platea dictumst. Donec pretium metus sit amet erat tristique, non mollis velit pharetra. \
hline
endtabularx
endtable
enddocument
which gives
(red lines indicate text borders).
answered yesterday
ZarkoZarko
127k868167
127k868167
add a comment |
add a comment |
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%2f480652%2fprevent-table-from-going-off-page-how%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
What do you want to do with the text? Do you want to have a line break, in what section of the text?
– manooooh
yesterday
When adding an example you should add enough code to make it compilable
– Raven
yesterday
Updated the MWE. Thanks
– Nadeem Muhammad
yesterday