I'm not sure if I could ask this question here, but I have to do a presentation and I want to number theorems by sections and subsections.
I have to do this in Spanish and so far, the only way I could change "Theorem" for "Teorema" is using
\newtheorem... but that way the theorems don't get numbered properly. The theorems get assigned a number and doesn't matter which section or subsection they are part of.
Is there a way I could do this?