In a tabularx, I try to set the text color for a complete column as follows:


Hello & World\\
Hello & World\\\hline


How can I prevent the the \color{blue} to cause extra white space in the top of each cell? enter image description here

  • 5
    see tex.stackexchange.com/questions/47050/… and then you can use \leavevmode\color{blue} – cmhughes Oct 22 '15 at 12:50
  • @cmhughes since Harish has deleted his answer could you make this comment an answer:-) (extra points if you include It's not David's fault in the text) – David Carlisle Oct 22 '15 at 13:26
  • @DavidCarlisle you're very generous, but I feel that you deserve the rep :) please post an answer, I'll happily vote for it. Unless, of course, you consider it a duplicate? If so, do you have a golden hammer that allows you to close? – cmhughes Oct 22 '15 at 15:18
  • @cmhughes no hammer, but voted – David Carlisle Oct 22 '15 at 15:19
  • 1
    On reflection, I'm not entirely sure the question is a duplicate. The answer is the same, but not the question... – cmhughes Oct 22 '15 at 18:30

Browse other questions tagged or ask your own question.