mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Don't let floats float beyond sections in LaTeX
Signed-off-by: magic_rb <magic_rb@redalder.org>
This commit is contained in:
parent
be6024d662
commit
a447b73f50
|
@ -14,4 +14,14 @@
|
||||||
#+latex_header: \usepackage{array}
|
#+latex_header: \usepackage{array}
|
||||||
#+latex_header: \newenvironment*{dummyenv}{}{}
|
#+latex_header: \newenvironment*{dummyenv}{}{}
|
||||||
#+latex_header: \newcommand{\BlankLineEm}{\vskip 1em}
|
#+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
|
#+startup: latexpreview
|
||||||
|
|
Loading…
Reference in a new issue