dotfiles/emacs-lisp/setupfiles/latex-base.org
magic_rb a447b73f50
Don't let floats float beyond sections in LaTeX
Signed-off-by: magic_rb <magic_rb@redalder.org>
2023-11-18 13:43:20 +01:00

28 lines
1.1 KiB
Org Mode

#+options: ^:{}
#+latex_header: \usepackage{xcolor}
#+latex_header: \usepackage{algorithm2e}
#+latex_header: \SetKwProg{Fn}{Function}{:}{end}
#+latex_header: \usepackage{textcomp}
#+latex_header: \usepackage{tikz}
#+latex_header: \usepackage{circuitikz}
#+latex_header: \usetikzlibrary{shapes.geometric, shapes.misc}
#+latex_header: \usetikzlibrary{fit, tikzmark, calc}
#+latex_header: \usepackage{mathtools}
#+latex_header: \usepackage{fancyvrb}
#+latex_header: \usepackage{blkarray}
#+latex_header: \usepackage{ifthen}
#+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