Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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:

enter image description here

Thanks.

share|improve this question
    
use package ltablex or ltxtable. Documentations are available by running texdoc <package name> –  Herbert Jun 3 '12 at 8:20
    
Thanks @Herbert it useful for me. –  mark Jun 3 '12 at 8:55
add comment

1 Answer

up vote 3 down vote accepted

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

\setlength\LTleft{-1cm}

alternatives are to use a smaller font, for example putting \small before the longtable. Also you have not shown your TeX code but it looks like you have used c columns. As in a standard tabular c columns never wrap over a line automatically, so you may want to make some of your columns fixed width with p{3cm} or whatever width is suitable, then TeX will linebreak and justify the entries to that width.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.