category-theory-for-program.../pandoc/options.tex
2017-09-07 19:44:59 +02:00

16 lines
404 B
TeX

% center images
\usepackage[export]{adjustbox}
\LetLtxMacro{\OldIncludegraphics}{\includegraphics}
\renewcommand{\includegraphics}[2][]{
\begin{center}
\OldIncludegraphics[max width=8cm,max height=4cm,#1]{#2}
\end{center}
}
% avoid that figures get a whole page
\renewcommand{\floatpagefraction}{.8}%
% start new page with each section
\usepackage{etoolbox}
\pretocmd{\section}{\clearpage}{}{}