Graphics, Figures & TablesTable with Width of Text exceeds Bottom Margin

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
bliss00
Posts: 1
Joined: Fri Apr 12, 2013 3:16 pm

Table with Width of Text exceeds Bottom Margin

Post by bliss00 »

Hello,

I am working on tables for my thesis and using tabular*. Since my table has larger rows than columns, I adjust it with text width. I don't know why but the table exceeds the bottom margin which I set up in the beginning (1 inch). I would like to keep tabular* instead of tabularx.

Code: Select all

\documentclass[12pt,openright,twoside]{report}
\usepackage{graphicx}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{fullpage}
\usepackage{pdflscape}
\usepackage{subfig}
\usepackage{appendix}
\usepackage{setspace}
\usepackage[margin=1in]{geometry}
\usepackage{natbib}
\usepackage{fancyhdr}
\usepackage{booktabs} %change in mine
\usepackage{array}

\begin{document}
\begin{table}[h!]
\caption{table test}
\begin{tabular*}{\textwidth}{@{}>{\bfseries}l@{\extracolsep{\fill}}*{4}{c}@{}}
\multicolumn{1}{c}{} & \multicolumn{1}{c}{(1)} & \multicolumn{1}{c}{(2)} & \multicolumn{1}{c}{(3)} & \multicolumn{1}{c}{(4)} \\
\end{tabular*}
\caption*{Notes:table description}
\end{table}
\end{document}
Could you help? I am searching but I haven't found an answer. Thank you in advance!

Recommended reading 2024:

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

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

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Table with Width of Text exceeds Bottom Margin

Post by localghost »

These environments don't allow page breaks. Seems that the use of packages like ltablex or ltxtable instead of tabular* is inevitable. Possible solutions can for sure be found by a search in the forum.


Remarks:
  • Do not use the fullpage package. It does settings in the background which are not documented and can cause trouble. The geometry package is way to go.

Thorsten
Post Reply