On 4/17/2010 4:42 PM, iustifico wrote:
When I do
\usepackage{chngcntr}
\counterwithin{definition}{subsection}
in the preamble of Lyx, it tells me definition is not a counter. I assume, that e.g.
propositions or definitions have a "counter variable".
But how do I get their names?
Kind regards,
iustifico
All the theorem-like environments use the counter thm.
An alternative to the chngcntr package is to create a module to do this.
In LyX's layouts directory, you should have theorems-sec.module. Copy
it to your local layouts directory with the name theorems-subsec.module.
Open it with a plain text editor, change "section" to "subsection" in
lines 1, 3, 14 and 20 and save that. Reconfigure and restart LyX. In
your document, go to Document > Settings > Modules and load either
Theorems or Theorems (AMS), followed by the new Theorems (By Subsection)
module. That should do it.
/Paul