Automatic Float barrier in (sub)section

This commit is contained in:
Eric Teunis de Boone 2022-08-29 17:08:22 +02:00
parent f49badf6a5
commit 63fd43d633

View file

@ -17,6 +17,7 @@
\usepackage{todo}
% Graphics
\usepackage{placeins}
\usepackage{xcolor}
\usepackage{graphicx}
\usepackage{epstopdf}
@ -52,6 +53,15 @@
\setlength{\parindent}{0cm}
%% Automatic float barriers for section and subsection
\let\Oldsection\section
\renewcommand{\section}{\FloatBarrier\Oldsection}
\let\Oldsubsection\subsection
\renewcommand{\subsection}{\FloatBarrier\Oldsubsection}
%\let\Oldsubsubsection\subsubsection
%\renewcommand{\subsubsection}{\FloatBarrier\Oldsubsubsection}
%%%
%%% Shortcuts