I use the package longtable for build tables. But the table has many columns, then it to fall outside the limits page.
How do I fix this? And how to change the margin for tables?
Look at the example:
Thanks.
longtablemargins
I use the package longtable for build tables. But the table has many columns, then it to fall outside the limits page.
How do I fix this? And how to change the margin for tables?
Look at the example:
Thanks.
Best Answer
If you need the table to be a bit wider than the normal text width and have it leak into the margins slightly you can set the left margin to be negative, for example
alternatives are to use a smaller font, for example putting
\small
before thelongtable
. Also you have not shown your TeX code but it looks like you have usedc
columns. As in a standardtabular
c
columns never wrap over a line automatically, so you may want to make some of your columns fixed width withp{3cm}
or whatever width is suitable, then TeX will linebreak and justify the entries to that width.