

And because d=… in the table head is something like math, you should set it in math mode. And I would not center the elements of the first table row but left-align them.

Remove spacing between lines tabular latex manual#
So just removes the distance.Īdditional note: I would recommend to avoid vertical rules in tables (see the manual of package booktabs) and to use package siunitx for number columns. I would like the entries to be closer together. I am very pleased with the result exept for one small detail: The spacing between the ToC-entries. based on this post I was able to customize the appearence of my table of contents. If you use the code of the argument of is added instead of the distance. Set spacing of ToC entries for custom 'sections'. So you have the distance \tabcolsep before the first and after the last column and 2\tabcolsep between two columns. To explain some more: By default LaTeX adds \hskip\tabcolsep before it starts a column and after it has finished a column.

To avoid this, you should add before the first column of the inner tabular and after the last column of the inner tabular: \documentclass In your case you have such a distance before and after the column of the inner tabular of \testmode and before and after the column of the outer tabular. Note: LaTeX adds a distance of \tabcolsep before and after each column. Of course there will always be some documents where the automatic float positioning is bad and you can. In your example you have doubled the column separation using a tabular inside a tabular. Latex moves floats to get better spacing at page breaks and H just disables floating so will naturally give worse spacing, or rather requires you to manually move or re-write text to achieve a good page break.
