- MacKichan Software
- Technical Support Pages
- Free Trial Versions
In my (book) document I start a new chapter without starting a section.
I expect the first definition in this chapter to be numbered with "2.0.1". However, the definition is numbered "2.0.2".
I have tried adding following command within the preamble:
\makeatletter
after
\@addtoreset{theorem}{section}
\makeatother
\newtheorem{definition}[theorem]{Definition}
or after
\newtheorem{theorem}{Theorem}[section]
but it did not help. What should I do?
Attachment | Size |
---|---|
template.tex | 2.29 KB |
template.pdf | 30.98 KB |
The problem is that your
The problem is that your definition environment is numbered as if it is a theorem. Define the definition environment in your document preamble as
\newtheorem{definition}{Definition}[section]
Instead of
\newtheorem{definition}[theorem]{Definition}