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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
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: 10359
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