Don't let floats float beyond sections in LaTeX

Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
magic_rb 2023-11-18 13:43:20 +01:00
parent be6024d662
commit a447b73f50
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E

View file

@ -14,4 +14,14 @@
#+latex_header: \usepackage{array}
#+latex_header: \newenvironment*{dummyenv}{}{}
#+latex_header: \newcommand{\BlankLineEm}{\vskip 1em}
#+latex_header: \usepackage{placeins}
#+latex_header: \let\Oldsection\section
#+latex_header: \renewcommand{\section}{\FloatBarrier\Oldsection}
#+latex_header: \let\Oldsubsection\subsection
#+latex_header: \renewcommand{\subsection}{\FloatBarrier\Oldsubsection}
#+latex_header: \let\Oldsubsubsection\subsubsection
#+latex_header: \renewcommand{\subsubsection}{\FloatBarrier\Oldsubsubsection}
#+startup: latexpreview