When I have a list such as

% List contents here...


% List contents here...

How can I caption it, eg. as "List 1.1"? I could put it inside a table environment, but then the caption would say "Table 1.1", and this isn't a table.

  • 1
    do you want the environment to float?
    – cmhughes
    May 27, 2014 at 2:25
  • @cmhughes No, but I'd prefer to have an answer for either option.
    – Superbest
    May 27, 2014 at 3:46
  • 1
    ok, I'll update my answer later today
    – cmhughes
    May 27, 2014 at 16:18
  • I've updated my answer to include a non-floating example at the end
    – cmhughes
    May 28, 2014 at 4:10

1 Answer 1


Here's one way that you can do it using the newfloat package.

Notice that it is completely compatible with the caption and hyperref package, and that it provides the command


to give a list of your floats.

% arara: pdflatex




\begin{listenv}{More details}\label{list1}
\item one
\item two
\item three

See list \ref{list1} or figure \ref{fig1}.

\caption{A real figure}\label{fig1}


If you want a non-floating version, you can tweak this to, for example,


and then

\begin{nonfloatlistenv}{Non floating}\label{list1}
    \item one
    \item two
    \item three

Tweak this how you see fit.

  • The demonstration looks quite complex, could you please explain the different parts and add some comments?
    – Superbest
    Jun 2, 2014 at 20:50
  • Also, this labels my lists incorrectly. I expect my lists in section n to be labeled List n.1, List n.2, and so on. Your MWE labels it List 1 no matter how many sections I add.
    – Superbest
    Jun 2, 2014 at 20:59
  • @Superbest sounds like you want to use the \numberwithin command
    – cmhughes
    Jun 2, 2014 at 23:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .