\documentclass{mwrep}
\usepackage[font=small,compatibility=false]{caption}
\usepackage[chapter]{minted}
\usepackage{lipsum}
\begin{document}
\chapter{Test}
\lipsum[2-3]
\captionof{listing}{Caption of listing}
\lipsum[2-3]
\end{document}
In the provided example, using of \captionof
causes all paragraph indents to disappear (after \captionof
). How can it be fixed?
Best Answer
One way is to use
\captionof
inside a group.