LaTeX forum ⇒ Graphics, Figures & Tablesunexpected wide column in longtable

Information and discussion about graphics, figures & tables in LaTeX documents.
Posts: 3
Joined: Thu Nov 14, 2019 10:00 pm

unexpected wide column in longtable

Postby jibbah » Fri Nov 15, 2019 12:38 am

Hi, I did a long table with 57 columns but I get a formatting I am not quit satisfied with, with the 5th column being much broader than the others, although I set it to the same width as the others. What is happening here?
I appended the example file and the pdf resulting. This example contains only two lines (the table has 83 lines otherwise).
(7.14 KiB) Downloaded 8 times
(31.98 KiB) Downloaded 5 times

User avatar
Site Moderator
Posts: 4098
Joined: Thu Nov 01, 2012 4:08 pm

Postby Johannes_B » Fri Nov 15, 2019 7:03 am

Welcome to the forum,
i can reproduce your issue, but i currently have no idea why i is happening.

Have you thought about a slightly different table design? I guess the final result will be quite hard to read.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Posts: 3
Joined: Thu Nov 14, 2019 10:00 pm

Postby jibbah » Fri Nov 15, 2019 1:06 pm

Hi Johannes_B, I resolved the problem by myself: the multicolumn header and footnote to be displayed on each page after the first one were spread over more columns than I actually have, i.e. I had \multicolumn{59}{r}{\textit{Continued from previous page}} for 57 columns. I is a bit odd though, since commenting out the header and then removing commenting mark will give a different output.
I did not see any alternative design beside the one where 1.000 and 0.000 are replaced by full numbers (file appended here), but the output is a bit odd.
(101.02 KiB) Downloaded 4 times
(112.19 KiB) Downloaded 6 times

Posts: 250
Joined: Sun Nov 16, 2014 8:51 pm

Postby rais » Sun Nov 17, 2019 5:43 pm

I'm not sure what you expect, but p{0.02cm} is way too small to hold any text: 0.02 cm = 0.2 mm is less than 8/1000 of an inch (around 0.57 pt).
Which means your text protrudes into the space that's between the columns (\tabcolsep worth on each side of each column).


Posts: 3
Joined: Thu Nov 14, 2019 10:00 pm

Postby jibbah » Mon Nov 18, 2019 10:20 am

text is displayed vertically in these columns, so it fits. The pdf output looks also nice.

Return to “Graphics, Figures & Tables”

Who is online

Users browsing this forum: No registered users and 3 guests