General ⇒ Placing a table at the end of chapter
Placing a table at the end of chapter
I need to place a single table at the end of chapter (or section), but other tables should remain at their places (so, endfloat isn't a solution). How to achieve this?
And one more question: how to apply empty or plain page style on the page on which table appears ?
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Placing a table at the end of chapter
you could put the table already in the source code at the end of the chapter or section. To prevent floating before or after you could use the H option with the float package or the \FloatBarrier command from the placeins package, in that case you could write \FloatBarrier a the end of the chapter or section, place the figure code and write \FloatBarrier again before the next section. Chapters would make \clearpage automatically, \FloatBarrier wouldn't be necessary before the next chapter. You can reach similar by using \clearpage before/after the figure.
For some more details and examples have a look here: Prevent floating of figures or tables.
Stefan
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Placing a table at the end of chapter
Declare the table at the end of the chapter and put a simple \clearpage (or \cleardoublepage) right behind the table environment to force its output. This should already be sufficient.meho_r wrote:[...] I need to place a single table at the end of chapter (or section), but other tables should remain at their places (so, endfloat isn't a solution). How to achieve this? [...]
You can use either fancyhdr or titlesec to declare page styles. Both allow to declare a special page layout for float pages. Refer to the documentation of fancyhdr (Section 14 - Special page layout for float pages, p. 14f) or titlesec (Section 5.3 - Running heads with floats, p. 13f) to see how to realise this. Perhaps both versions require that you place the figure with a special parameter on a separate (float) page.meho_r wrote:[...] And one more question: how to apply empty or plain page style on the page on which table appears? [...]
Code: Select all
\begin{figure}[!p]
\centering
...
\caption{Figure on a separate page}\label{fig:sep}
\end{figure}
Best regards
Thorsten¹
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Placing a table at the end of chapter

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Placing a table at the end of chapter
It's not possible to comprehend that without any code. So, please provide a minimal working example (MWE) that shows this effect.meho_r wrote:[...] When the table is on that last page and it's alone on it, it is placed right on the center (vertically). How to make it appears on the top of the page?
Edit: Somehow I confused two topics hence this post makes no sense.
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Placing a table at the end of chapter

Here it is:
Code: Select all
\documentclass[a4paper,10pt]{book}
\usepackage{lipsum}
\begin{document}
\lipsum[1-5]
\begin{table}[hb]
\centering
\caption{Test table}
\begin{tabular}{lll}
\hline
Text 1 & Text 2 & Text 3 \\
Text 4 & Text 5 & Text 6 \\
Text 1 & Text 2 & Text 3 \\
Text 4 & Text 5 & Text 6 \\
Text 1 & Text 2 & Text 3 \\
Text 4 & Text 5 & Text 6 \\
\hline
\end{tabular}
\end{table}
\end{document}
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Placing a table at the end of chapter
it could be achieved by:
Code: Select all
\makeatletter
\setlength{\@fptop}{0pt}
\makeatother
Stefan
Re: Placing a table at the end of chapter

- Stefan Kottwitz
- Site Admin
- Posts: 10360
- Joined: Mon Mar 10, 2008 9:44 pm
Placing a table at the end of chapter
Stefan
Re: Placing a table at the end of chapter
