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?
Math & Science ⇒ Case environment in theorem proofs
-
- Posts: 4
- Joined: Tue Jul 20, 2010 5:33 pm
Case environment in theorem proofs
Last edited by buenasdiaz on Tue Jul 20, 2010 8:37 pm, edited 1 time in total.
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
LaTeX.org admin
-
- Posts: 4
- Joined: Tue Jul 20, 2010 5:33 pm
Re: Case environment in theorem proofs
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.
...
\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.
- Stefan Kottwitz
- Site Admin
- Posts: 10345
- Joined: Mon Mar 10, 2008 9:44 pm
Re: Case environment in theorem proofs
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
Stefan
LaTeX.org admin