I'm typesetting a math paper, where at many points I need to break proofs into several cases. I've been putting these just in an itemize environment, but this is a confusing, because things like "Case 1" are no longer uniquely-defined; I want the names to have global scope, so I can refer back to sub-cases of previous theorems.

Ideally, I'd like something like itemize, but with a separate counter indicating how many times the environment has been used. Then the cases should show as something like (A1) (A2) (A3) in the first appearance of the environment, (B1) (B2) (B3) in the second, etc.

Is there a package or other easy way to handle this?


I'm against enumerated or itemized lists in a proof; they just confuse the reader with moved margins.

Here's an implementation that mimics lists in that it allows \label without adding unwanted spaces.



  \everypar=\expandafter{\the\everypar{\setbox0=\lastbox}\everypar{}Case \theproofcase\ }%



There exists a talking mule.

We shall prove the statements in a few steps.

Go to a suitable cinema.

It's that easy.

\section{The tough thing}

We can do it!
Go in an old castle.

Ensure you have a pretty assistant.

Send the other assistant to get a brain.

That's it.

Case~\ref{talkingmule-start} may be difficult. Case~\ref{Igor} can
have unexpected consequences.


enter image description here

  • Interesting -- hadn't really thought about the indentation as a problem, but I see your point! Accepting this as the highest-voted answer, since I think either is workable for me. – Mark Nov 6 '14 at 16:24
  • can this be extended to allow for subcases? i imagine that would require indentation so it is more "would it make sense to extend to allow subcases?" – afiori Mar 16 '17 at 16:54
  • @KiriaKasis It certainly can be extended; the problem is: do you really need cross references to subcases? – egreg Mar 16 '17 at 17:49
  • @egreg actually I needed something else (one day when it clearer to me what i want i will likely post a questio), basically I work in proof theory and there are lots of subcases in three or more levels, right now i'm using some quick and dirty \subparagraphs with manual cross references – afiori Mar 18 '17 at 21:30

Here is an elementary implementation that shows how you could use enumitem to create a customized list environment, say thmcases, that prints Case X.# for every case, where X is the theorem number, and # is the case number. Of course, you can modify this to suit your needs.

enter image description here


  label=\textbf{\upshape Case~\thetheorem.\arabic*},


This is a theorem.
  \item This is the first case
  \item This is the second case\label{casetwo}
  \item This is the last case

See Case~\ref{casetwo} that you should \ldots


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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