0

I set the section numbering style to \Roman but now my theorems are numbered like so:

Theorem IV.2. instead of Theorem 4.2.

Is there a way of getting the latter but preserving the section numbering in Roman?

I've tried this Change theorem numbering from Roman to Arabic

\renewcommand\thetheorem{\arabic{section}.\arabic{theorem}}
\newtheorem{teo}{Theorem}[section]
\newtheorem{lemma}{Lemma}[section] 

I get

LaTex Error: \thetheorem command undefined.

Apparently this may work on other classes than article (in which I am)

Thanks in advance.

  • 1
    Please show in code what you have done not words. – daleif Aug 20 at 17:18
2

The problem is that you're trying to redefine \thetheorem before it's been defined. Move your \renewcommand after the \newtheorem command.

Also, the numbering for your theorems will follow the naming of the environments you've created so you should do, e.g.,

\renewcommand\theteo{\arabic{section}.\arabic{teo}}

and similarly for lemma.

| improve this answer | |
  • Thanks! works perfectly – Ramita Aug 20 at 18:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.