TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've created my own environment example, similar to theorem. Now I want to generate a list of examples, similar to list of tables or list of figures. How can I achieve this?

share|improve this question
up vote 7 down vote accepted

The package thmtools by U. Schwarz is what you need:

\renewcommand{\listoftheoremname}{List of examples}

For a footnote in a theorem label, you can do with the usual trick of \footnotemark and \footnotetext, but another trick is needed in order to avoid the footnote mark in the list of theorems:

\renewcommand{\listoftheoremname}{List of examples}
\begin{example}[name=Nice example\protect\footnotemark]
\footnotetext{Due to E. X. Ample}%
This is a very nice example

You don't want the footnote mark in the list, do you? :)

--- Additional formatting ---

The macro responsible for writing the entry in the loe file that is read for typesetting the list of examples is \ll@example. You can obtain a list showing only the names of the example by saying, just after the relevant \declaretheorem

  \protect\numberline{\csname the\thmt@envname\endcsname}%
share|improve this answer
Why I can't put footnote in theorem note when I use thmtools? – jesper Apr 24 '11 at 13:38
In a minimal example I built, footnotes are OK. – egreg Apr 24 '11 at 13:55
An how can I change default style of list of theorems? I want to change entries format... If I can't do that I will be very angry that I spend all my day.. – jesper Apr 24 '11 at 17:14
To be more specific: Example (Example of somthing) have to be Example of seomthing – jesper Apr 24 '11 at 17:20

There are several package you can use for this purpose:

  • caption using \DeclareCaptionType

  • float and its commands \newfloat and \listof

  • floatrow and \DeclareNewFloatType

  • tocloft, a comprehensive package for customizing such lists, providing \newlistof and related commands

If you follow these links, you can find the documentation. Just look for the mentioned commands. Check out further features which may help deciding which package you might use.

share|improve this answer
They are too complicated. I just want to get list of examples created by \newtheorem{example}. I've tried tocloft and I can't get such list. – jesper Apr 24 '11 at 13:56

Why don't you use float as already suggested? It's similar to figures and tables and well documented:

Add this before \begin{document}:


Add this to where you want the list:

\listof{example}{List of examples}

Add this if you also want this in your tableofcontents:

\addcontentsline{toc}{chapter}{List of examples}

And of course define a small example:

    This is a small example.
    \caption[Small example]{Small example - you can add links and other stuff here}

And reference it:

As you can see in Example \ref{example:foo}, ...

Full documentation of float

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.