I need to put a caption for a list of items (itemize environment). I found this macro on the web which seems to solve the issue:
Code: Select all
\makeatletter
\def\captionof#1#2{{\def\@captype{#1}#2}}
\makeatother
Code: Select all
\captionof{table}{\caption{un titre ici}\label{foo}}
Cheers!