Generalsubsubsections numbered as theorems

LaTeX specific issues not fitting into one of the other forums of this category.
raulastur
Posts: 5
Joined: Tue Sep 30, 2008 8:56 pm

subsubsections numbered as theorems

Post by raulastur »

hi, i'm trying to put the same counter on the subsubsection that i have for theorems.
theorem 3.4.5
3.4.1 (my subsubsection name)
this is what i have and i'd like to have:
theorem 3.4.5
3.4.6 (my subsubsection name)
any ideas????
thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

subsubsections numbered as theorems

Post by Stefan Kottwitz »

Hi Raulastur,

welcome to the board!
With the amsthm package you can definine a theorem environment that uses the subsubsection counter:

Code: Select all

\newtheorem{thm}[subsubsection]{Theorem}
Stefan
LaTeX.org admin
raulastur
Posts: 5
Joined: Tue Sep 30, 2008 8:56 pm

Re: subsubsections numbered as theorems

Post by raulastur »

thank you, but what i want is the converse: the subsubsection must use the counter of the theorem
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: subsubsections numbered as theorems

Post by Stefan Kottwitz »

The theorems and the subsections are sharing the same counter with the line above.
What doesn't work for you if you try it the way I've suggested above?

Stefan
LaTeX.org admin
raulastur
Posts: 5
Joined: Tue Sep 30, 2008 8:56 pm

Re: subsubsections numbered as theorems

Post by raulastur »

i was wrong, i checked your way and it works!! thank you very much
raulastur
Posts: 5
Joined: Tue Sep 30, 2008 8:56 pm

Re: subsubsections numbered as theorems

Post by raulastur »

i was wrong, i checked your way and it works!! can you tell me how to do the same with the lemmas and propositions (all sharing the same counter) . before i had this
\newtheorem{theorem}{Teorema} [subsection]
\newtheorem{lemma}[theorem]{Lema}
\newtheorem{proposition}[theorem]{Proposición}
\newtheorem{corollary}[theorem]{Corolario}

if i replace the first line (to get theorems and the subsections sharing the same counter) with \newtheorem{theorem}[subsubsection]{Theorem} it doesn't work.
thank you very much
raulastur
Posts: 5
Joined: Tue Sep 30, 2008 8:56 pm

Re: subsubsections numbered as theorems

Post by raulastur »

i solved it:
\newtheorem{theorem}[subsubsection]{Teorema}
\newtheorem{lemma}[subsubsection]{Lema}
\newtheorem{proposition}[subsubsection]{Proposición}
\newtheorem{corollary}[subsubsection]{Corolario}

now works, thank you stefan
lb5962
Posts: 3
Joined: Wed Oct 08, 2008 2:31 pm

Re: subsubsections numbered as theorems

Post by lb5962 »

hey guys, thanks for this thread it was very helpful. Just a quick addition I hope you can help me with though...

Quite often my lecturers separate the numbering of definitions (which is also done subsection-wise) from the numbering of Theorems, Lemmas, Propositions, etc...

Any idea how I would do this whilst having, say, "Definition 3.1" in small caps [namely: \textsc{Definition}].

I guess my main issue is the fact that when choosing the fonts of theorems I can only choose from "Definition, Remark and Plain" [namely \theoremstyle{plain},etc...]... can't I ???

Oh yer...

Also I would like the definitions of my project to be enumerated seperately to the Lemmas, Theorems, Propositions, etc... for example:
Theorem 3.1.1
Lemma 3.1.2
Theorem 3.1.3
Definition 3.1.1
Theorem 3.1.4
Definition 3.1.2

Any Ideas?

I'm not asking for much am I! :oops:

Thanks :D

L
Last edited by lb5962 on Wed Oct 08, 2008 2:59 pm, edited 1 time in total.
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

subsubsections numbered as theorems

Post by Stefan Kottwitz »

Hi,

you could define your own style by the command \newtheoremstyle, it's documented in Using the amsthm Package 4.3 New theorem styles. Concerning the numbering have a look at 3 Numbering modifications in the same document.

Stefan
LaTeX.org admin
lb5962
Posts: 3
Joined: Wed Oct 08, 2008 2:31 pm

Re: subsubsections numbered as theorems

Post by lb5962 »

Thanks Stefan :D very helpful!

I'm still having trouble with using the newtheoremstyle to get my definitions to be in small caps (\textsc)... can you be more specific?

L
Post Reply