When trying to do what is described here, I tried to compile the code given there:
\documentclass{article}
\usepackage{caption}
\DeclareCaptionType{mytype}[Typename][List of mytype]
\newenvironment{myenv}{}{}
\begin{document}
\listofmytypes
\section{abc}
\begin{myenv}
\captionof{mytype}{blub} something in my type
\end{myenv}
\end{document}
But I get the error message \DeclareCaptionType Undefined control sequence . I'm running on Fedora. What might be the source of this problem?
yum? – yohbs Apr 23 '12 at 8:13yumuse repositories? I appreciate it's probably a little different thanUbuntu, but still have a look at best-way-to-install-packages-for-texlive-in-ubuntu – cmhughes Apr 23 '12 at 9:02\DeclareCaptionTypeis available since late 2007, so one need at least TeXlive 2008 for using this command without updating thecaptionpackage manually. – Axel Sommerfeldt Apr 23 '12 at 19:25