Math & ScienceCase environment in theorem proofs

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
buenasdiaz
Posts: 4
Joined: Tue Jul 20, 2010 5:33 pm

Case environment in theorem proofs

Post by buenasdiaz »

Hi! I'm trying to divide my proof on cases. So I use \begin{case}-environment and I would like to have something like that:
Case 1. Text
Case 1.1. Text
Case 1.2. Text
Case 2.
But in the result I get the following:
Case 1.
Case 2.
Case 3.
How to make subcases?
Last edited by buenasdiaz on Tue Jul 20, 2010 8:37 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Case environment in theorem proofs

Post by Stefan Kottwitz »

It seems to be complex - you could use an enumerate environment instead. It may be nested.

Stefan
LaTeX.org admin
buenasdiaz
Posts: 4
Joined: Tue Jul 20, 2010 5:33 pm

Re: Case environment in theorem proofs

Post by buenasdiaz »

I have solved this problem myself as follows:
...
\newtheorem{case}{Case}
\newtheorem{subcase}{Case}
\numberwithin{subcase}{case}
\begin{document}
...
\begin{case}
...
\begin{subcase}
...
\end{subcase}
...
\end{case}
...
With such code I'v got exactly what I wanted.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Re: Case environment in theorem proofs

Post by Stefan Kottwitz »

It would be good to mark the topic as solved then. In this forum it can be done by editing the first post and choosing the checkmark.

Stefan
LaTeX.org admin
Post Reply