0

I'm writing a document which contains a lot of big figures and tables. Usually I use [htb] for the float position, however, when the float occupies an entire page, it's placed in the next page, O.K!, but when I continue writing, the float jumps to the last page, E. G.:

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\blindtext
\begin{table}[htb]
\centering
\caption{Example table}
\begin{tabularx}{\textwidth}{X}
\toprule
\blindtext
\blindtext
\blindtext\\
\bottomrule
\end{tabularx}
\end{table}
\Blindtext
\end{document} 

enter image description here

Why the table is placed in the last page intead of the second page and continues the text in the last page? how can I avoid this?

4

1 Answer 1

3

If you allow the table to be placed on its own page by adding p to the floating arguments, the table will not be pushed to the end.

\documentclass[12pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{blindtext}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\blindtext
\begin{table}[htbp]
\centering
\caption{Example table}
\begin{tabularx}{\textwidth}{X}
\toprule
\blindtext
\blindtext
\blindtext\\
\bottomrule
\end{tabularx}
\end{table}
\Blindtext
\end{document} 

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .