\newtheorem{prop}[thm]
, etc commands. However this leads to the "missing \begin{document}" error. If I put \begin{document}
before \newtheorem{prop}[thm]
, it prints [thm]
, etc in the first page. What is the solution?
Code: Select all
\documentclass[12pt,twoside,A4]{report}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{theoremref}
\newtheorem{thm}{Theorem}[section]
\newtheorem{prop}[thm]{Proposition}[section]
\newtheorem{lem}[thm]{Lemma}[section]
\newtheorem{cor}[thm]{Corollary}[section]
\begin{document}
test
\end{document}