1. Mar 11, 2014

### HJ Farnsworth

Greetings,

I am using LyX. When I type

in the preamble, the theorem numbering is reset at each section, as desired. Similarly, when I type

in the preamble, the theorem numbering is reset at each subsection, as desired. However, when I type

in the preamble, the command is ignored entirely. Does anyone know how to get it working, i.e., how to get the theorem numbering reset at each subsubsection?

Thanks very much for any help that you can give.

-HJ Farnsworth

2. Mar 12, 2014

### AlephZero

The \@addtoreset command doesn't do its thing when a \section command, etc is executed. It does its thing when the counter named "section" is incremented, inside the \section command. That only happens if the section is numbered.

If you make an unnumbered section with

that will not reset the thm counter either.

By default, everything down to \subsection is numbered but \subsubsection (and lower levels) are not. You can change that be setting the counter secnumdepth. The default value is 2, so

\setcounter{secnumdepth}{3}

in your preamble will give you subsubsection numbers.

3. Mar 13, 2014

### HJ Farnsworth

Hi, thanks for the response AlephZero.

So I just tried the secnumdepth thing you suggested, but it didn't work. The subsubsections are already numbered in the document, with or without secnumdepth. However, what I need is for the theorem counter to reset each time a new subsubsection is started. \@addtoreset does this correctly for anything higher than a subsubsection, but doesn't work for a subsubsection.

Does anyone know how to get \@addtoreset working for things lower than subsection?

Thanks again.

4. Mar 13, 2014

### AlephZero

Can you attach the .tex code for a complete (short) document that doesn't work?

The fact that
is probably sigmificant, but playing 20 questions to guess why it's significant is probably not a good way to debug the problem.