0

I would like to have the following numbering based only on the section number:

Section 1, Theorem 1.1, Example 1.2, Example 1.3, Corollary 1.4, Section 2, Theorem 2.1, etc...

How do I obtain this?

My current setup is

\documentclass[a4paper,8pt]{report}
\usepackage{amsmath}
\usepackage{amsthm}

\newtheoremstyle{break}
  {\topsep}{\topsep}%
  {\upshape}{}%
  {\bfseries}{}%
  {\newline}{}%
\theoremstyle{break}
  \newtheorem{teor}[section]{Teorema}
  \newtheorem{cor}[section]{Corollario}

I've only reported mythm and mycor as an example.

Here's what happens with

\chapter{} %Parte 1%
\section{}

\begin{teor}
\end{teor}
\begin{cor}
\end{cor}
\section{}
\section{}

enter image description here

3
  • Basically it means adding things like \renewcommand{\thetheorem}{\thesection.arabic{theorem}} Feb 29, 2020 at 14:28
  • 1
    Welcome to TeX SX! Could you post a small complete code illustrating the problem?
    – Bernard
    Feb 29, 2020 at 14:28
  • @Bernard Edited
    – Leonardo
    Feb 29, 2020 at 16:41

1 Answer 1

1

You should use a trailing [section] optional argument for one of the statement types, and then define the others as sharing the same counter as the main one.

\documentclass[a4paper]{report}
\usepackage{amsmath}
\usepackage{amsthm}

\newtheoremstyle{break}
  {\topsep}{\topsep}%
  {\upshape}{}%
  {\bfseries}{}%
  {\newline}{}%

\theoremstyle{break}
\newtheorem{teor}{Teorema}[section]
\newtheorem{cor}[teor]{Corollario}

and similarly for the others.

If you want to remove the initial chapter number (but don't), add also

\renewcommand{\theteor}{\arabic{section}.\arabic{teor}}

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.