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.

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

I'm trying to make a time plan for a project using tables in LaTeX but I've run into a small problem. The table below will look fine until I try to colour individual cells by adding \usepackage[table,usenames,dvipsnames]{xcolor}. Doing this will stretch the middle column all the way out to the right edge of the paper. It does this even without me adding the \cellcolor{somecolor} command or making any other alterations to the table.

Here's a little bit more elaborate example than was originally posted:



% Document start



\section*{Time plan}

\noindent X\dotfill X

\noindent\begin{tabular*}{\textwidth}{r p{8cm} @{\extracolsep{\fill}} l}
Week & Task & Date \\
37 &\cellcolor{yellow} Project start & 2012-09-13 \\



And here's what it looks like:


I have seriously no idea of what's going on here so any help would be much appreciated! It might be worth pointing out that I'm also using the multirow package, if that has any impact on making coloring work. All packages seems to be up to date.

share|improve this question
Welcome to TeX.SE. While code snippets are useful in explanations, it is always best to compose a fully compilable MWE that illustrates the problem including the \documentclass and the appropriate packages so that those trying to help don't have to recreate it. – Peter Grill Sep 20 '12 at 21:45
I don't get that output. – egreg Sep 20 '12 at 23:04
@egreg I do get that output, on the top of the second page. TeXLive 2012, PDFTeX. – Canageek Sep 21 '12 at 15:58
up vote 5 down vote accepted

The trick to making a good MWE is to keep removing packages that are not used by the example until the problem goes away. In this case


is the tipping point. This presumably adds some whatsit nodes to enable the sync to happen that are messing up the colortbl spacing.

share|improve this answer
Sorry for not responding until now but: wow, thanks! It worked! :) – Markus Sep 24 '12 at 18:40

Your Answer


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.