Graphics, Figures & TablesTable overlaps with page number

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bicek
Posts: 2
Joined: Thu Dec 29, 2016 2:45 pm

Table overlaps with page number

Post by bicek »

Hi all,

I am using code written below and experiencing some issues with tables and page numbers. I expect table not to overlap with page numbers but it does. How can I solve this problem ? Thanks.

Code: Select all

\begin{table}[htbp]
\centering
\scriptsize
\caption{T1}

\label{tab:table1}

\begin{tabularx}{\textwidth}{p{1em} X | X X X X X X }
\toprule
...
\midrule
...
\bottomrule
\end{tabularx}
\end{table}
Last edited by Stefan Kottwitz on Tue Jan 03, 2017 6:28 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Table overlaps with page number

Post by Johannes_B »

The table is probably too big. Does it take up the whole page?

Use longtable to split the table to two pages. That way, you can also use a bigger font size, which people are actually able 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.
bicek
Posts: 2
Joined: Thu Dec 29, 2016 2:45 pm

Table overlaps with page number

Post by bicek »

First, thank you for the answer.

Yes table takes up the whole page and its too big.

I have implemented your suggestion about longtable but, in this case I couldn't have any labels or tags and table is not referenced by my template thesis file. So, I understand that I have to use table environment and require another solution using table environment. Do you have any alternatives ?

Thank you
User avatar
Johannes_B
Site Moderator
Posts: 4182
Joined: Thu Nov 01, 2012 4:08 pm

Table overlaps with page number

Post by Johannes_B »

longtable works with captions, referencing works as well. Hundreds of people use the package everyday.

So, either your template messes stuff up, which indicates a problem with the template, or you aren't using package longtable properly. Please prepare a minimal working example so we can reproduce your issue.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.
Post Reply