TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

Should one treat commutative diagrams as figures within the figure environment? If not, is there a way to add a label/caption and have the page number and caption show in the Table of Figures (without the figure environment)?


share|improve this question
up vote 3 down vote accepted

If there aren't many of the diagrams, it's better to just use figure for all of them. If the number is significant and you want to distinguish them from other figures, you can use, for example, the float package to create a new type of floats:



\floatname{commut}{Commutative diagram}


  \caption{Hello World}

  I am the content

\listof{commut}{List of Commutative Diagrams}

share|improve this answer
Thanks. Is there a way to create a new float for CDs but have them show up in Table of Contents in the front matter? The code you gave only shows the \listof after the CDs. – user02138 Jun 12 '11 at 8:15
@user02138: You can put \listof anywhere you like, just as \listoffigures etc. Only remember to run LaTeX twice at least. – Andrey Vihrov Jun 12 '11 at 8:18

If you treat them like figures (caption, entry in list of figures) you could also use a figure environment, that would just be consistent.

Regarding the placement, you still can customize it by options to the figure (some of !htbp). If they are small, they can be easily placed by LaTeX. If they are big, there's even more reason to let them float.

If you don't want them to float, you can use for example a minipage and the \captionof command of the caption package, such as

\captionof{figure}{Your diagram caption}

Here a minipage is good for keeping caption and diagram together without a page break between.

caption provides a \DeclareCaptionType command, you could use it to create diagram environments and a list of diagrams, if you like. Also even if you float instead, caption offers a lot of features and a great interface for customizing captions.

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.