I'm currently trying to make the final amendments to a paper I've written and wondered if anyone could help.
I have a theorem and a number of definitions in a section (Section 4, for reference) and I want them labelled as :
Theorem 4.1,
Definition 4.2,
Definition 4.3, etc.
The issue is that it currently says Theorem 4.1 and then Definition 4.1, Definition 4.2 etc. How do I get it so that the labels are as stated above? i.e so that the Definition recognises the numbering of the previous Theorem?
I currently have
\documentclass[11pt, a4 paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\geometry{a4 paper, total={170mm, 257mm}, left=20mm, top=20mm,}
\usepackage{amsthm}
\usepackage{textcomp}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{tipa}
\usepackage{graphicx}
\usepackage{enumerate}
\usepackage{ dsfont }
\graphicspath{{Images/}}
\newtheorem{theorem}{Theorem}[section]
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\usepackage{soul}
\tolerance=1
\emergencystretch=\maxdimen
\hyphenpenalty=10000
\hbadness=10000
\begin{document}
\maketitle
\section{Section 4}
\begin{theorem} Theorem \end{theorem}
\begin{definition} Definition \end{definition}
\begin{definition} Definition \end{definition}
\end{document}
I have tried to use \newtheorem{definition}[theorem]{definition}, as I read that this would fix the problem but instead it creates a new page at the start of my project that has "[theorem]definition" on it, and the rest of the page is blank.
Any advice or help would be greatly appreciated!!


\usepackage{amsthm}as well? As far as I know the\newtheorem{}[]{}way is introduced byamsthm(and later by other packages as well) – Mar 11 '17 at 18:28figureandtablecounters withdefinitionandtheorem– Mar 11 '17 at 18:38\newtheorem{definition}[theorem]{Definition}works for me under TL 2016 – Mar 11 '17 at 19:03a4 paperand\maketitlewithout defining\title– Mar 11 '17 at 21:19\tolerance=1 \emergencystretch=\maxdimen \hyphenpenalty=10000 \hbadness=10000? Are you trying to emulate MS Word? ;-) – GuM Mar 11 '17 at 23:14