[Tex/LaTex] Create caption without float *and* without caption package

captionsfloatskoma-script

In the appendix of my thesis, there is a large number of tables and longtables which does not need to float, as they shall appear one after the other just how they fit on the pages (and it is no problem if the bottom third of a page would stay empty).

(The appendix is structured by some headings and sometimes there is also a short paragraph or two to explain something about the data shown in the tables. So I explicitely do want to appear the tables directly and not float "elsewhere" – apart from the explaining text.)

So I thought it would be easier to let pdflatex typeset the tables (tabular) directly, which works well as long as I don't need captions.
But I found that I can not use the \caption-command in those tabulars.

This question was asked already, but both solutions require the use of the caption package which seems to be incompatible with longtable or KOMA-script classes (which I need).

So is there another way to use \captions without floats?

I'm using the KOMA-script class scrbook.

Best Answer

The package caption isn't incompatible with KOMA or longtable.

You don't need the package caption because KOMA provides the command captionof

\documentclass{scrartcl}
\begin{document}
\listoffigures
\section{foo}
\begin{center}
\rule{3cm}{3cm}
\captionof{figure}{bla}
\end{center}
\end{document}