TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to fit landscape multi-page table to textwidth

I am trying to fit a longtable in a page with the following specifications:

\textbf{Week} & \textbf{Content} & \textbf{Assessments}\tabularnewline
\textbf{Week} & \textbf{Content} & \textbf{Assessments}\tabularnewline
Week 1 & Unit 1
&HW, Q, T\tabularnewline
Week 2 & Unit 2
&HW, Q, T\tabularnewline

Note that to the naked eye, the table seems to be perfect, but I know that one can make the long table to span through the entire text width. I am looking for improvements and how to achieve the above effect (use of the text width.) If a similar question has been asked please redirect me.

share|improve this question

marked as duplicate by Mico, egreg, percusse, Marco Daniel, Martin Schröder Aug 15 '12 at 17:00

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

I'm not sure what your question is: longtable always uses the full text width by default. There is (as always with latex tables) a tabcolsep at either side which you could remove by putting @{} at the start an end of the column specification. Or is your question that you want the p column widths to be automatic, like tabularx X columns in which case you might look at ltxtable or perhaps tabu – David Carlisle Jun 28 '12 at 15:26

Page 7 of the user guide of the longtable package suggests issuing the commands

\begin{longtable}{@{\extracolsep{\fill}}...} % replace "..." with actual column specifiers

to get a longtable that's automatically as wide as \textwidth. For the case of your table, you'd either issue the two \setlength commands in the preamble (to make them apply to all longtable environments) or localize them in a TeX group (so that they only apply to the longtable(s) within that group). Then, you'd use the command


to force this particular longtable to occupy the entire width of the text block.

Addendum: After posting this answer, I came across this question which deals, in essence, with the very same topic. I should have remembered this earlier, given that I was one of the persons who posted an answer...

share|improve this answer
If it is a duplicate, please close. :-) – azetina Jun 28 '12 at 19:10

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