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?

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.